================
@@ -3597,6 +3597,31 @@ 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 then
+ // set the return type to the arg type
+ QualType ArgType = TheCall->getArg(0)->getType();
+
+ if (!(ArgType->isScalarType())) {
----------------
tex3d wrote:
In this case, the comment above is correct - we should support scalar or
vector, but this code requires scalar.
https://github.com/llvm/llvm-project/pull/178056
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits