[gollvm] build failure (mangled name of 'prefetch' inconsistent between llvm and gollvm)

41 views
Skip to first unread message

Xiangdong JI

unread,
Aug 2, 2019, 8:34:14 AM8/2/19
to golang-nuts
Hello,

I got a build failures after syncing llvm, gollvm and gofront-end to their latest commits, llvm-goc errors out:

=================================================================
Intrinsic name not mangled correctly for type arguments! Should be: llvm.prefetch.p0i8
void (i8*, i32, i32, i32)* @llvm.prefetch.p0i8.i32.i32
=================================================================

commit c0702618c0e0a5c742aa20b831041bde366417f1
-    : Intrinsic<[], [ llvm_ptr_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty ],
+    : Intrinsic<[], [ llvm_anyptr_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty ],
    
The above commit submitted last week in llvm makes 'prefetch' an overloaded built-in now.
Gollvm considers all arguments of 'prefetch' being of overloaded type when calculating its mangled name, while llvm only takes the first which of iPTRAny, should gollvm be enhanced to align with llvm? 


Reply all
Reply to author
Forward
0 new messages