[Mlir-commits] [mlir] [mlir] Add apply_patterns.linalg.pad_vectorization TD Op (PR #112504)
Javed Absar
llvmlistbot at llvm.org
Thu Oct 17 05:41:06 PDT 2024
================
@@ -84,6 +84,23 @@ def ApplyFoldAddIntoDestPatternsOp : Op<Transform_Dialect,
let assemblyFormat = "attr-dict";
}
+def ApplyPadVectorizationPatternsOp : Op<Transform_Dialect,
+ "apply_patterns.linalg.pad_vectorization",
+ [DeclareOpInterfaceMethods<PatternDescriptorOpInterface>]> {
+ let description = [{
+ Apply patterns that take tensor.pad and rewrites it as
+ vector.transfer_read/vector.transfer_write Ops.
+
----------------
javedabsar1 wrote:
The sentences seem broken as two independent thoughts are packed together. My attempt to refine (maybe lost in translation) -
// These patterns will either fold `tensor.pad` with an existing `vector.transfer_read` or `vector.transfer_write`. Or rewrite // it together with `tensor.insert_slice` as a `vector.transfer_read + vector.transfer_write` pair.
Then explain about producer/consumer point
https://github.com/llvm/llvm-project/pull/112504
More information about the Mlir-commits
mailing list