[clang] [llvm] [HLSL] Implement WaveActiveAnyTrue intrinsic (PR #115902)

Finn Plummer via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 19 13:26:46 PST 2024


================
@@ -2206,6 +2206,15 @@ float4 trunc(float4);
 // Wave* builtins
 //===----------------------------------------------------------------------===//
 
+/// \brief Returns true if the expression is true in any active lane in the
+/// current wave.
+///
+/// \param Val The boolean expression to evaluate.
+/// \return True if the expression is true in any lane.
+_HLSL_AVAILABILITY(shadermodel, 6.0)
----------------
inbelic wrote:

I had propagated this for the sake of user documentation as well.

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


More information about the cfe-commits mailing list