Add a new transform op that applies patterns to a targeted payload op. Patterns can be registered by transform dialect extensions in a pattern registry.
Depends On: D151888
Paths
| Differential D151983
[mlir][transform] Add ApplyPatternsOp and PatternRegistry ClosedPublic Authored by springerm on Jun 2 2023, 3:10 AM.
Details Summary Add a new transform op that applies patterns to a targeted payload op. Patterns can be registered by transform dialect extensions in a pattern registry. Depends On: D151888
Diff Detail
Event Timelinespringerm added a child revision: D151984: [mlir][tensor][transform] Register tensor dialect patterns.Jun 2 2023, 3:22 AM springerm added a child revision: D151985: [mlir][vector][transform] Register vector dialect patterns.Jun 2 2023, 3:52 AM Comment Actions Nice!
This revision is now accepted and ready to land.Jun 2 2023, 4:31 AM
This revision was landed with ongoing or failed builds.Jun 2 2023, 6:04 AM Closed by commit rG0b52fa900aa3: [mlir][transform] Add ApplyPatternsOp and PatternRegistry (authored by springerm). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 527829 mlir/include/mlir/Dialect/Transform/IR/TransformDialect.h
mlir/include/mlir/Dialect/Transform/IR/TransformOps.h
mlir/include/mlir/Dialect/Transform/IR/TransformOps.td
mlir/include/mlir/Dialect/Transform/PDLExtension/PDLExtensionOps.h
mlir/lib/Dialect/Transform/IR/TransformOps.cpp
mlir/test/Dialect/Transform/ops-invalid.mlir
mlir/test/Dialect/Transform/test-pattern-application.mlir
mlir/test/lib/Dialect/Transform/TestTransformDialectExtension.cpp
|
Nit: I'd take PopulatePatternsFn && here to avoid an extra constructor of std::function with dynamic allocation.