[clang] [llvm] [HLSL] Add WaveGetLaneCount() intrinsic to FE (PR #143127)

Farzon Lotfi via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 6 09:05:32 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();
----------------
farzonl wrote:

should this be a uint?

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


More information about the llvm-commits mailing list