[PATCH] D70565: [MCRegInfo] Add forward sub and super register iterators. (NFC)
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 21 13:53:37 PST 2019
fhahn created this revision.
fhahn added reviewers: evandro, qcolombet, paquette, MatzeB, arsenm.
Herald added subscribers: atanasyan, jrtc27, hiraditya, wdng, sdardis.
Herald added a project: LLVM.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D70565
Files:
llvm/include/llvm/MC/MCRegisterInfo.h
llvm/lib/CodeGen/MachineVerifier.cpp
llvm/lib/CodeGen/RegisterScavenging.cpp
llvm/lib/Target/Mips/MCTargetDesc/MipsOptionRecord.cpp
llvm/lib/Target/X86/X86RegisterInfo.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70565.230528.patch
Type: text/x-patch
Size: 11233 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191121/3221d3f9/attachment.bin>
More information about the llvm-commits
mailing list