[Mlir-commits] [mlir] [mlir][SPIR-V] Make Stride optional in KHR CooperativeMatrixLoad/Store per spec (PR #214194)
Arseniy Obolenskiy
llvmlistbot at llvm.org
Thu Oct 1 06:19:46 PDT 2026
================
@@ -32,6 +33,15 @@ verifyCoopMatrixAccess(Operation *op, Type pointer, Type coopMatrix,
<< pointeeType;
}
+ // Per the SPIR-V spec, Stride is required for the RowMajor and ColumnMajor
+ // layouts.
+ if (!stride &&
+ (matrixLayout == spirv::CooperativeMatrixLayoutKHR::RowMajor ||
+ matrixLayout == spirv::CooperativeMatrixLayoutKHR::ColumnMajor)) {
----------------
aobolensk wrote:
no gain, no loss. No objections, done
https://github.com/llvm/llvm-project/pull/214194
More information about the Mlir-commits
mailing list