[clang] [llvm] [AMDGPU] Add `wave_id` and `wave_shuffle` Clang builtins. (PR #179492)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 9 01:38:22 PST 2026
================
@@ -449,6 +449,10 @@ Value *CodeGenFunction::EmitAMDGPUBuiltinExpr(unsigned BuiltinID,
llvm::Function *F = CGM.getIntrinsic(IID, {Value->getType()});
return Builder.CreateCall(F, {Value, Strategy});
}
+ case AMDGPU::BI__builtin_amdgcn_wave_shuffle:
+ // TODO: can we unify this with wave_reduce?
----------------
easyonaadit wrote:
I didn't really understand this comment, what idea did you have to unify wave_reduce and shuffle?
https://github.com/llvm/llvm-project/pull/179492
More information about the cfe-commits
mailing list