[llvm] [AMDGPU] Add new llvm.amdgcn.wave.shuffle intrinsic (PR #167372)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 1 09:17:26 PST 2025
================
@@ -2718,6 +2718,17 @@ def int_amdgcn_call_whole_wave:
llvm_vararg_ty], // The arguments to the callee.
[IntrConvergent]>;
+// <result>
+// llvm.amdgcn.wave.shuffle <value> <id>
+// value and result can be a 32bit floating-point or
+// integer type, and must be the same type. Any index
+// value that's outside the valid range will wrap around,
+// and reading from an inactive lane will return poison.
+def int_amdgcn_wave_shuffle :
+ DefaultAttrsIntrinsic<[llvm_any_ty], // return types
+ [LLVMMatchType<0>, llvm_i32_ty], // arg types
+ [IntrConvergent, IntrNoMem]>; // flags
----------------
shiltian wrote:
The format/alignment is off here.
https://github.com/llvm/llvm-project/pull/167372
More information about the llvm-commits
mailing list