This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Add `replaceAllUsesExcept` to rewriter
ClosedPublic

Authored by dcaballe on Dec 5 2022, 5:18 PM.

Details

Summary

This patch adds replaceAllUsesExcept to the rewriter class.
The implementation is copy-pasted from Value + calling
updateRootInPlace to notify the listeners about the
corresponding IR changes.

Diff Detail

Event Timeline

dcaballe created this revision.Dec 5 2022, 5:18 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 5 2022, 5:18 PM
dcaballe requested review of this revision.Dec 5 2022, 5:18 PM
Mogball accepted this revision.Dec 5 2022, 8:02 PM
Mogball added inline comments.
mlir/lib/IR/PatternMatch.cpp
327

please drop trivial braces

This revision is now accepted and ready to land.Dec 5 2022, 8:02 PM
This revision was landed with ongoing or failed builds.Dec 5 2022, 11:42 PM
This revision was automatically updated to reflect the committed changes.