[clang] [llvm] [HLSL] Add WaveGetLaneCount() intrinsic to FE (PR #143127)
Nathan Gauër via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 6 08:48:21 PDT 2025
================
@@ -4909,6 +4909,12 @@ def HLSLWaveReadLaneAt : LangBuiltin<"HLSL_LANG"> {
let Prototype = "void(...)";
}
+def HLSLWaveGetLaneCount : LangBuiltin<"HLSL_LANG"> {
+ let Spellings = ["__builtin_hlsl_wave_get_lane_count"];
+ let Attributes = [NoThrow, Const];
+ let Prototype = "unsigned int()";
----------------
Keenuts wrote:
Not sure I understand, this is for `WaveGetLaneCount()` which returns the number of lanes. Or am I misunderstanding the comment?
https://github.com/llvm/llvm-project/pull/143127
More information about the llvm-commits
mailing list