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

Ashley Coleman via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 20 08:22:38 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)
----------------
V-FEXrt wrote:

I was just kind of following what others had done. But imo its worth keeping if for nothing else besides the documentation

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


More information about the cfe-commits mailing list