[Mlir-commits] [mlir] [mlir] Add apply_patterns.linalg.pad_vectorization TD Op (PR #112504)
Andrzej WarzyĆski
llvmlistbot at llvm.org
Sat Oct 19 04:53:02 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.
+
----------------
banach-space wrote:
Thank you for your suggestion - let me adapt it a bit. Hopefully with our joint efforts things will be clearer :)
I will work under the assumption that we want to remove `GenericPadOpVectorizationPattern>` from this list - it doesn't really belong here - it's not a "vectorization" pattern per se. I am already in the process of refactoring it:
* https://github.com/llvm/llvm-project/pull/111349
One step at a time though!
https://github.com/llvm/llvm-project/pull/112504
More information about the Mlir-commits
mailing list