[Mlir-commits] [mlir] [MLIR][SCF] Add an API to fuse consumer to a producer within scf loop (PR #88712)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon May 20 14:15:34 PDT 2024


================
@@ -131,6 +150,42 @@ def TilingInterface : OpInterface<"TilingInterface"> {
           return failure();
         }]
       >,
+      InterfaceMethod<
+        /*desc=*/[{
+          Method to generate the tiled implementation of an operation from
+          operand tile position.
----------------
MaheshRavishankar wrote:

I think if we are doing this this should just be an `InterfaceMethod` with a `defaultImplementation`. I was seeing a similar thing for tile consumer + fuse producer. Most of the operations seem to do similar thing. I wasnt fully sure that this always works, so I hadnt implemented it, but it would make sense to have a default implementation that can be overwritten.
I dont think this should be a `StaticInterfaceMethod`.

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


More information about the Mlir-commits mailing list