[clang] [HLSL] Preserve matrix layout as AST storage metadata (PR #225519)

Chris B via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 23 19:07:47 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:

Is there an intentional decision here to not support row major in C/C++?

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


More information about the cfe-commits mailing list