[Mlir-commits] [mlir] [MLIR][Linalg] Add pass to convert linalg.generic back to named ops (PR #95656)

Quinn Dawkins llvmlistbot at llvm.org
Wed Jun 19 09:41:47 PDT 2024


================
@@ -1395,6 +1395,24 @@ struct LinalgGeneralizationPattern
   }
 };
 
+struct LinalgSpecializationPattern
+    : public OpInterfaceRewritePattern<LinalgOp> {
+  using OpInterfaceRewritePattern<LinalgOp>::OpInterfaceRewritePattern;
----------------
qedawkins wrote:

This can just be an `OpRewritePattern<GenericOp>` instead of doing a cast from LinalgOp.

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


More information about the Mlir-commits mailing list