[clang] [HLSL] Preserve matrix layout as AST storage metadata (PR #225519)
Chris B via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 24 07:10:00 PDT 2026
================
@@ -2259,9 +2256,8 @@ Value *ScalarExprEmitter::VisitMatrixSubscriptExpr(MatrixSubscriptExpr *E) {
Value *Idx;
unsigned NumCols = MatrixTy->getNumColumns();
unsigned NumRows = MatrixTy->getNumRows();
- bool IsMatrixRowMajor =
- isMatrixRowMajor(CGF.getLangOpts(), E->getBase()->getType());
- Idx = MB.CreateIndex(RowIdx, ColumnIdx, NumRows, NumCols, IsMatrixRowMajor);
+ Idx = MB.CreateIndex(RowIdx, ColumnIdx, NumRows, NumCols,
+ /*IsRowMajor=*/false);
----------------
llvm-beanz wrote:
Would be good to call that out in the description.
https://github.com/llvm/llvm-project/pull/225519
More information about the cfe-commits
mailing list