================
@@ -4069,6 +4069,20 @@ bool SemaHLSL::CheckBuiltinFunctionCall(unsigned 
BuiltinID, CallExpr *TheCall) {
     TheCall->setType(ArgTyExpr);
     break;
   }
+  case Builtin::BI__builtin_hlsl_quad_read_across_x: {
+    if (SemaRef.checkArgCount(TheCall, 1))
+      return true;
+
+    // Ensure input expr type is a scalar/vector and the same as the return 
type
----------------
s-perron wrote:

This comment is a little confusing because you check the type for the input, 
but set the return type. I think the code speaks for itself, and this comment 
can be removed.

https://github.com/llvm/llvm-project/pull/184360
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to