[clang] [llvm] [HLSL] Implement WaveActiveAnyTrue intrinsic (PR #115902)
Farzon Lotfi via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 19 10:58:32 PST 2024
================
@@ -4744,6 +4744,12 @@ def HLSLAny : LangBuiltin<"HLSL_LANG"> {
let Prototype = "bool(...)";
}
+def HLSLWaveActiveAnyTrue : LangBuiltin<"HLSL_LANG"> {
+ let Spellings = ["__builtin_hlsl_wave_active_any_true"];
+ let Attributes = [NoThrow, Const];
+ let Prototype = "bool(bool)";
----------------
farzonl wrote:
A note: The reason we didn't have to do a SemaHLSL change for `__builtin_hlsl_wave_active_any_true` is because we could define the prototype with only scalars. For HLSL`builtins` that take vectors we define the prototype variadic.
https://github.com/llvm/llvm-project/pull/115902
More information about the cfe-commits
mailing list