This is an archive of the discontinued LLVM Phabricator instance.

[MIBundle] Turn MachineOperandIteratorBase into a forward iterator.
ClosedPublic

Authored by fhahn on Nov 21 2019, 12:45 PM.

Details

Summary

This patch turns MachineOperandIteratorBase into a regular forward
iterator, which can be used with iterator_range.

It also adds mi_bundle_ops and const_mi_bundle_ops that return iterator
ranges over all operands in a bundle and updates a use of the old
iterator.

Diff Detail

Event Timeline

fhahn created this revision.Nov 21 2019, 12:45 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 21 2019, 12:45 PM
arsenm accepted this revision.Dec 2 2019, 8:08 AM

LGTM

This revision is now accepted and ready to land.Dec 2 2019, 8:08 AM
This revision was automatically updated to reflect the committed changes.