[clang] [HLSL] Add matrix support to atan2 (PR #194984)

Deric C. via cfe-commits cfe-commits at lists.llvm.org
Fri May 1 12:01:26 PDT 2026


================
@@ -230,6 +230,404 @@ namespace hlsl {
     return fn((float4)V1, (float4)V2, (float4)V3);                             \
   }
 
+#define _DXC_COMPAT_BINARY_DOUBLE_MATRIX_OVERLOADS(fn)                         \
+  _DXC_DEPRECATED_64BIT_FN(fn)                                                 \
+  constexpr float1x1 fn(double1x1 y, double1x1 x) {                            \
+    return fn((float1x1)y, (float1x1)x);                                       \
+  }                                                                            \
----------------
Icohedron wrote:

I would revert back to using templates. These compat overloads just cast the arguments and re-call the same function with the casted arguments, so there are no behavioral differences since they end up resolving to the non-template-defined overloads.

https://github.com/llvm/llvm-project/pull/194984


More information about the cfe-commits mailing list