mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-28 16:11:29 +00:00
[libomptarget][nfc][amdgcn] Replace magic number with named intrinsic
This commit is contained in:
parent
e397a0a5c3
commit
84ac0dffd4
@ -47,8 +47,7 @@ DEVICE double __kmpc_impl_get_wtime() {
|
||||
|
||||
// Warp vote function
|
||||
DEVICE __kmpc_impl_lanemask_t __kmpc_impl_activemask() {
|
||||
// 33 is ICMP_NE from llvm/include/llvm/IR/InstrTypes.h
|
||||
return __builtin_amdgcn_uicmp(1, 0, 33);
|
||||
return __builtin_amdgcn_read_exec();
|
||||
}
|
||||
|
||||
DEVICE int32_t __kmpc_impl_shfl_sync(__kmpc_impl_lanemask_t, int32_t var,
|
||||
|
Loading…
Reference in New Issue
Block a user