[llvm] [AMDGPU] Intrinsic for launching whole wave functions (PR #145859)
Nicolai Hähnle via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 4 12:14:44 PDT 2025
================
@@ -2587,6 +2587,18 @@ def int_amdgcn_cs_chain:
],
[IntrConvergent, IntrNoReturn, ImmArg<ArgIndex<4>>]>;
+// Run a function with all the lanes enabled. Only direct calls are allowed. The
+// first argument is the callee, which must have the `amdgpu_gfx_whole_wave`
+// calling convention and must not be variadic. The remaining arguments to the
+// callee are taken from the arguments passed to the intrinsic. Lanes that are
+// inactive at the point of the call will receive poison. The return value is
+// the return value of the callee for the active lanes and poison for the
+// inactive ones.
----------------
nhaehnle wrote:
```suggestion
// inactive at the point of the call will receive poison. The return value is
// the return value of the callee for the active lanes (there is no return value
// in inactive lanes).
```
https://github.com/llvm/llvm-project/pull/145859
More information about the llvm-commits
mailing list