This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Add a method to `RewriteBase` to replace a `Value` selectively.
ClosedPublic

Authored by mravishankar on Jan 4 2023, 8:37 PM.

Details

Summary

This method allows to selectively control from the caller when to
replace the uses of a Value. Still notifies the rewriter that the
user is updated in-place.

Diff Detail

Event Timeline

mravishankar created this revision.Jan 4 2023, 8:37 PM
Herald added a project: Restricted Project. · View Herald Transcript
mravishankar requested review of this revision.Jan 4 2023, 8:37 PM
rriddle accepted this revision.Jan 12 2023, 10:53 AM
rriddle added inline comments.
mlir/include/mlir/IR/PatternMatch.h
521–522

I'd just merge these two lines

This revision is now accepted and ready to land.Jan 12 2023, 10:53 AM