================ @@ -2466,6 +2466,16 @@ _HLSL_AVAILABILITY(shadermodel, 6.0) _HLSL_BUILTIN_ALIAS(__builtin_hlsl_wave_get_lane_count) __attribute__((convergent)) uint WaveGetLaneCount(); +//===----------------------------------------------------------------------===// +// WavePrefixOp builtins +//===----------------------------------------------------------------------===// +/// \brief Returns the count of bits of Expr set to 1 on prior lanes. +/// \param Expr The boolean expression to evaluate. +/// \return the count of bits set to 1 on prior lanes. +_HLSL_AVAILABILITY(shadermodel, 6.0) +_HLSL_BUILTIN_ALIAS(__builtin_hlsl_wave_prefix_count_bits) +__attribute__((convergent)) int WavePrefixCountBits(bool Expr); ---------------- tex3d wrote:
I think this should return `uint`. https://github.com/llvm/llvm-project/pull/178059 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
