[all-commits] [llvm/llvm-project] ae363d: [HLSL][Matrix] Make Matrix InitListExprs and AST r...
Deric C. via All-commits
all-commits at lists.llvm.org
Mon Mar 2 09:47:01 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ae363d50ad292b4d8c33bf795ad16c79eb640b19
https://github.com/llvm/llvm-project/commit/ae363d50ad292b4d8c33bf795ad16c79eb640b19
Author: Deric C. <cheung.deric at gmail.com>
Date: 2026-03-02 (Mon, 02 Mar 2026)
Changed paths:
M clang/include/clang/AST/TypeBase.h
M clang/lib/CodeGen/CGExprScalar.cpp
M clang/lib/Sema/SemaInit.cpp
M clang/test/AST/HLSL/matrix-constructors.hlsl
M clang/test/AST/HLSL/matrix-general-initializer.hlsl
A clang/test/AST/HLSL/matrix-init-list-row-major.hlsl
M clang/test/CodeGenHLSL/BasicFeatures/MatrixConstructor.hlsl
A clang/test/CodeGenHLSL/BasicFeatures/MatrixInitializerListOrder.hlsl
M clang/test/CodeGenHLSL/BasicFeatures/MatrixToAndFromVectorConstructors.hlsl
M clang/test/CodeGenHLSL/BoolMatrix.hlsl
Log Message:
-----------
[HLSL][Matrix] Make Matrix InitListExprs and AST row-major order, and respect /Zpr and /Zpc in codegen (#182904)
Fixes #166410 and #181902
This PR makes matrix initializer lists be kept in row-major order in
InitListExpr and the AST for HLSL by not reordering the element indices
in `InitListChecker::CheckMatrixType` in `clang/lib/Sema/SemaInit.cpp`.
This PR also makes the codegen respect /Zpr and /Zpc during codegen for
matrix initializer lists by adding a vector shuffle to
`VisitInitListExpr` in `clang/lib/CodeGen/CGExprScalar.cpp`.
Assisted-by: claude-opus-4.6
---------
Co-authored-by: Farzon Lotfi <farzonl at gmail.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list