This is an archive of the discontinued LLVM Phabricator instance.

[MCRegInfo] Add forward sub and super register iterators. (NFC)
ClosedPublic

Authored by fhahn on Nov 21 2019, 1:49 PM.

Details

Summary

This patch adds forward iterators mc_difflist_iterator,
mc_subreg_iterator and mc_superreg_iterator, based on the existing
DiffListIterator. Those are used to provide iterator ranges over
sub- and super-register from TRI, which are slightly more convenient
than the existing MCSubRegIterator/MCSuperRegIterator. Unfortunately,
it duplicates a bit of functionality, but the new iterators are a bit
more convenient (and can be used with various existing iterator
utilities) and should probably replace the old iterators in the future.

This patch updates some existing users.

Event Timeline

fhahn created this revision.Nov 21 2019, 1:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 21 2019, 1:49 PM
qcolombet accepted this revision.Dec 2 2019, 1:57 PM
This revision is now accepted and ready to land.Dec 2 2019, 1:57 PM
This revision was automatically updated to reflect the committed changes.