This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Add replaceUsesWithIf on Operation
ClosedPublic

Authored by bondhugula on Feb 19 2023, 5:27 AM.

Details

Summary

Add replaceUsesWithIf on Operation along the lines of
Value::replaceUsesWithIf. This had been missing on Operation and is
convenient to replace multi-result operations' results conditionally.

Diff Detail

Event Timeline

bondhugula created this revision.Feb 19 2023, 5:27 AM
bondhugula requested review of this revision.Feb 19 2023, 5:27 AM

Fix spacing.

lattner accepted this revision.Feb 19 2023, 7:03 AM

Seems reasonable to me

This revision is now accepted and ready to land.Feb 19 2023, 7:03 AM
This revision was automatically updated to reflect the committed changes.