================
@@ -3607,6 +3607,28 @@ bool SemaHLSL::CheckBuiltinFunctionCall(unsigned
BuiltinID, CallExpr *TheCall) {
return true;
break;
}
+ case Builtin::BI__builtin_hlsl_wave_prefix_count_bits: {
+ if (SemaRef.checkArgCount(TheCall, 1))
+ return true;
+
+ QualType ArgType = TheCall->getArg(0)->getType();
+
+ if (!(ArgType->isScalarType())) {
----------------
inbelic wrote:
nit: I think you can use the `CheckScalarOrVector` helper function to do these
checks
https://github.com/llvm/llvm-project/pull/178059
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits