[clang] [Matrix] Add a row\col major toggle in the clang driver (PR #167628)
Farzon Lotfi via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 21 06:19:18 PST 2025
================
@@ -0,0 +1,35 @@
+// RUN: %clang --target=x86_64-linux-gnu -fenable-matrix -fmatrix-memory-layout=column-major %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-COL-MAJOR
+// CHECK-COL-MAJOR: -fenable-matrix
+// CHECK-COL-MAJOR: -mllvm
+// CHECK-COL-MAJOR: -enable-matrix
+// CHECK-COL-MAJOR: -fmatrix-memory-layout=column-major
----------------
farzonl wrote:
I removed the use of the flags llvm needs for the lower-matrix-intrinsics pass based on @cofibrant feedback. There was concerns it was premature to change `-mllvm matrix-default-layout=*` before the row major load/store intrinsics were implemented.
https://github.com/llvm/llvm-project/pull/167628
More information about the cfe-commits
mailing list