[Mlir-commits] [mlir] [mlir][linalg] Introduce transpose semantic to 'linalg.matmul' ops. (PR #104783)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Oct 9 16:20:38 PDT 2024


================
@@ -821,6 +821,11 @@ DiagnosedSilenceableFailure transform::RewriteMatmulAsMmaSyncOp::applyToOne(
   bool fail = true;
   // TODO: more robust detection of matmulOp, with transposes etc.
   if (isa_and_nonnull<linalg::MatmulOp>(linalgOp.getOperation())) {
+    // Check to not let go the matmul with extended semantic, through this
+    // transform.
+    if (linalgOp.hasUserDefinedMaps())
----------------
MaheshRavishankar wrote:

Nit: Same here. Please add `{`..`}`

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


More information about the Mlir-commits mailing list