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

Chris B via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 9 15:35:43 PDT 2025


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

I'm not sure why we need to do this checking. Shouldn't this all be done in the SemaHLSL code that validates the initializer list and transforms it to per-element initializers?

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


More information about the cfe-commits mailing list