[clang] [HLSL][Matrix] Add implicit type conversions for constant matrix types (PR #181939)
Farzon Lotfi via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 18 09:14:02 PST 2026
================
@@ -238,9 +238,10 @@ void matOrVec3(float4x4 F) {}
export void Case8(float2x3 f23, float4x4 f44, float3x3 f33, float3x2 f32) {
int2x2 i22 = f23;
- // expected-warning at -1{{implicit conversion truncates matrix: 'float2x3' (aka 'matrix<float, 2, 3>') to 'int2x2' (aka 'matrix<int, 2, 2>')}}
+ // expected-warning at -1{{implicit conversion truncates matrix: 'float2x3' (aka 'matrix<float, 2, 3>') to 'matrix<int, 2, 2>'}}
----------------
farzonl wrote:
hmm why do we need `adjustVectorOrConstantMatrixType` for this case? Seems like we already handled it but now we are doing an unecesary `getConstantMatrixType` which is a new type that doesn't have our syntactic sugar for hlsl
https://github.com/llvm/llvm-project/pull/181939
More information about the cfe-commits
mailing list