This is an archive of the discontinued LLVM Phabricator instance.

[PatternRewriter] Rename OwningRewritePatternList -> RewritePatternSet and insert -> add
ClosedPublic

Authored by lattner on Mar 22 2021, 3:02 PM.

Details

Summary

This maintains the old name to have minimal source impact on downstream codes, and
does not do the huge mechanical patch. I expect the huge mechanical patch to land
sometime this week, but we can keep around the old names for a couple weeks to reduce
impact on downstream projects.

Diff Detail

Event Timeline

lattner created this revision.Mar 22 2021, 3:02 PM
lattner requested review of this revision.Mar 22 2021, 3:02 PM
rriddle accepted this revision.Mar 22 2021, 3:07 PM

LGTM, Thanks!

mlir/include/mlir/IR/PatternMatch.h
755

Did you mean for this Note to be here?

899

Can you add a TODO or something here? Just so that the fact it is temporary doesn't get lost.

mlir/lib/Dialect/Math/Transforms/ExpandTanh.cpp
55

Was this change intended to be in the next one (the one that starts doing the renaming)?

This revision is now accepted and ready to land.Mar 22 2021, 3:07 PM
stellaraccident accepted this revision.Mar 22 2021, 3:23 PM
stellaraccident added a subscriber: stellaraccident.

Thank you for staging the change in this way. It does make such O(codebase) downstream work easier (and reduces bisectability barriers that show up with breaking API changes).

lattner marked an inline comment as done.Mar 22 2021, 4:18 PM
lattner added inline comments.
mlir/include/mlir/IR/PatternMatch.h
755

Nope, this one was a mistake, great catch.

899

Good point,done.

mlir/lib/Dialect/Math/Transforms/ExpandTanh.cpp
55

Yeah it was intentional, my thought was to include one change in this patch to show that it works.

lattner updated this revision to Diff 332468.Mar 22 2021, 4:18 PM
lattner marked an inline comment as done.

Improve some comments that River caught.

This revision was landed with ongoing or failed builds.Mar 22 2021, 4:33 PM
This revision was automatically updated to reflect the committed changes.