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

Farzon Lotfi via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 19 10:52:34 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)
----------------
farzonl wrote:

So this is correct.  And I can see the other wave intrinsics do this, but our default availability is 6.0. Is the thinking to do this that do the bookkeeping now so that it makes it easier to support pre 6.0 shader models i.e. FXC shaders at some point?

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


More information about the llvm-commits mailing list