[clang] [llvm] [HLSL][DXIL][SPIRV] QuadReadAcrossX intrinsic support (PR #184360)

Steven Perron via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 10 08:40:06 PDT 2026


================
@@ -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


More information about the cfe-commits mailing list