This is an archive of the discontinued LLVM Phabricator instance.

[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 Timeline

springerm created this revision.Jan 26 2023, 3:46 AM
springerm requested review of this revision.Jan 26 2023, 3:46 AM
Herald added a project: Restricted Project. · View Herald Transcript
springerm retitled this revision from [mlir] GreedyPatternRewriteDriver: Remove single-op entry point to [mlir][NFC] GreedyPatternRewriteDriver: Remove single-op entry point.

This is to simplify the API

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 not accepted when it landed; it landed in state Needs Review.Jan 27 2023, 1:47 AM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
springerm reopened this revision.Jan 27 2023, 2:05 AM

Mixup in Differential Revision part of the commit message.

springerm updated this revision to Diff 492691.Jan 27 2023, 3:32 AM

restore diff

This is to simplify the API

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?

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).

mehdi_amini accepted this revision.Jan 27 2023, 7:57 AM
This revision is now accepted and ready to land.Jan 27 2023, 7:57 AM