[clang] [llvm] [HLSL][DXIL][SPIRV] Added WaveActiveBitOr HLSL intrinsic (PR #165156)
Farzon Lotfi via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 29 11:19:28 PDT 2025
================
@@ -3211,6 +3211,29 @@ bool SemaHLSL::CheckBuiltinFunctionCall(unsigned BuiltinID, CallExpr *TheCall) {
TheCall->setType(ArgTyExpr);
break;
}
+ case Builtin::BI__builtin_hlsl_wave_active_bit_or: {
+ if (SemaRef.checkArgCount(TheCall, 1))
+ return true;
+
+ // Ensure input expr type is a scalar/vector and the same as the return type
+ if (CheckAnyScalarOrVector(&SemaRef, TheCall, 0))
----------------
farzonl wrote:
`BI__builtin_hlsl_wave_active_max` does `CheckWaveActive` first. Why are yo doing `CheckAnyScalarOrVector`.?For predictability of Error orders can this be changed?
https://github.com/llvm/llvm-project/pull/165156
More information about the llvm-commits
mailing list