[clang] [HLSL] Add matrix constructors using initalizer lists (PR #162743)

Farzon Lotfi via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 17 11:48:20 PDT 2025


================
@@ -1877,6 +1887,93 @@ void InitListChecker::CheckReferenceType(const InitializedEntity &Entity,
     AggrDeductionCandidateParamTypes->push_back(DeclType);
 }
 
+void InitListChecker::CheckMatrixType(const InitializedEntity &Entity,
----------------
farzonl wrote:

@llvm-beanz the `initializer list` work simplifies but does not make us remove `CheckMatrixType`. It simplifies it so that all we have to do is support the scalar case by looping over the number of inits and calling `CheckSubElementType`. So I deleted all the vector and matrix type handeling

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


More information about the cfe-commits mailing list