This is to simplify the API. The multi-op entry point can be used directly. GreedyRewriteStrictness must now be specified explicitly.
Depends On: D142611
Paths
| Differential D142613
[mlir][NFC] GreedyPatternRewriteDriver: Remove single-op entry point ClosedPublic Authored by springerm on Jan 26 2023, 3:46 AM.
Details Summary This is to simplify the API. The multi-op entry point can be used directly. GreedyRewriteStrictness must now be specified explicitly. Depends On: D142611
Diff Detail
Event Timelinespringerm added a parent revision: D142611: [mlir] GreedyPatternRewriteDriver: Entry point takes single region.Jan 26 2023, 3:46 AM springerm retitled this revision from [mlir] GreedyPatternRewriteDriver: Remove single-op entry point to [mlir][NFC] GreedyPatternRewriteDriver: Remove single-op entry point. springerm added a child revision: D142614: [mlir] GreedyPatternRewriteDriver: All entry points take a config.Jan 26 2023, 3:50 AM Comment Actions
I'm a bit confused: how is this simplifying the API? From the client point of view at least it seems like it does not? This revision was landed with ongoing or failed builds. Closed by commit rGcadd5666a6d6: [mlir][NFC] GreedyPatternRewriteDriver: Remove OpPatternRewriteDriver (authored by springerm). · Explain Why This revision was automatically updated to reflect the committed changes. springerm removed a child revision: D142614: [mlir] GreedyPatternRewriteDriver: All entry points take a config.Jan 27 2023, 7:31 AM Comment Actions
Rebased it on top of all the other changes. There are now two almost identical overloads. There is a chance that the ArrayRef<Operation *> overload can be accidentally called because Operation * can implicitly convert to ArrayRef<Operation *>. And the first bool * parameter of each overload is a different one (erased vs changed). This revision is now accepted and ready to land.Jan 27 2023, 7:57 AM Closed by commit rG5706e9ca493e: [mlir][NFC] GreedyPatternRewriteDriver: Remove single-op entry point (authored by springerm). · Explain WhyJan 30 2023, 12:16 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 492691 mlir/include/mlir/Transforms/GreedyPatternRewriteDriver.h
mlir/lib/Dialect/Affine/Utils/LoopUtils.cpp
mlir/lib/Dialect/Affine/Utils/Utils.cpp
mlir/lib/Reducer/ReductionTreePass.cpp
|