[Mlir-commits] [mlir] [mlir][tensor][linalg] Move Pack/Unpack Ops to Linalg (PR #123902)

Kunwar Grover llvmlistbot at llvm.org
Thu Jan 23 08:43:21 PST 2025


================
@@ -126,6 +126,28 @@ def ApplyPadVectorizationPatternsOp : Op<Transform_Dialect,
   let assemblyFormat = "attr-dict";
 }
 
+def ApplyFoldIntoPackAndUnpackPatternsOp : Op<Transform_Dialect,
+    "apply_patterns.tensor.fold_into_pack_and_unpack",
+    [DeclareOpInterfaceMethods<PatternDescriptorOpInterface>]> {
+  let description = [{
+    Indicates that operations like tensor.pad and tensor.extract_slice should
+    be folded into tensor.pack and tensor.unpack operations, respectively.
----------------
Groverkss wrote:

nit: tensor.pack/tensor.unpack -> linalg.pack/linalg.unpack

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


More information about the Mlir-commits mailing list