[clang] [llvm] [AMDGPU] Refactor wave ID intrinsic handling and expose a Clang builtin (PR #247799)
Krzysztof Drewniak via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 2 16:01:30 PST 2026
================
@@ -284,6 +284,18 @@ Returns the total grid size in the Z dimension.
}];
}
+def DocABIWaveId : Documentation {
+ let Category = DocCatAMDGPUABI;
+ let Content = [{
+Returns the wave ID of the current wave in the workgroup.
+This has the property that, if you (without masking any lanes) compute the lane
----------------
krzysz00 wrote:
I think the mbcnt idiom does? Might be wrong though
https://github.com/llvm/llvm-project/pull/247799
More information about the cfe-commits
mailing list