[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 09:10:52 PDT 2025


================
@@ -2350,6 +2350,10 @@ _HLSL_AVAILABILITY(shadermodel, 6.0)
 _HLSL_BUILTIN_ALIAS(__builtin_hlsl_wave_is_first_lane)
 __attribute__((convergent)) bool WaveIsFirstLane();
 
+_HLSL_AVAILABILITY(shadermodel, 6.0)
+_HLSL_BUILTIN_ALIAS(__builtin_hlsl_wave_get_lane_count)
+__attribute__((convergent)) bool WaveGetLaneCount();
----------------
Keenuts wrote:

Oh now I understand the other comment! Yes this should be a uint! bad c/c

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


More information about the llvm-commits mailing list