[llvm] [AMDGPU] Add new llvm.amdgcn.wave.shuffle intrinsic (PR #167372)

via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 20 07:49:13 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 32bit floating-point, integer,
+// or Boolean types, 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 0.
----------------
saxlungs wrote:

I went with just updating to say returns poison. I think keep the intrinsic simple for now, but let me know if you think the flag would be a need-to-have feature and I can add it

https://github.com/llvm/llvm-project/pull/167372


More information about the llvm-commits mailing list