[PATCH] D22751: AMDGPU Device Libs pass.
Yaxun Liu via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 26 14:42:10 PDT 2016
yaxunl added a comment.
Can we have a test like this:
int f() {
if (__oclc_option_mask() & X)
return 1
else if (__oclc_option_mask() & Y)
return 2;
}
then call it in different kernels.
================
Comment at: test/CodeGen/AMDGPU/device-libs.ll:44
@@ +43,3 @@
+entry:
+ %call = tail call i64 @get_option_mask2() #0
+ store i64 %call, i64 addrspace(1)* %out, align 4
----------------
Can we have another kernel calling get_option_mask2() with different function attributes?
https://reviews.llvm.org/D22751
More information about the llvm-commits
mailing list