diff options
author | Owen Anderson <resistor@mac.com> | 2014-03-13 06:02:25 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2014-03-13 06:02:25 +0000 |
commit | abb90c9ddb5b3752564a1389685bde93d09b92db (patch) | |
tree | 19dee55c3591d57af72e082a3e83863a914b86d0 /clang/lib/Frontend/ASTConsumers.cpp | |
parent | 6ab29444b08df336af25e098c785ca868389e839 (diff) | |
download | bcm5719-llvm-abb90c9ddb5b3752564a1389685bde93d09b92db.tar.gz bcm5719-llvm-abb90c9ddb5b3752564a1389685bde93d09b92db.zip |
Phase 1 of refactoring the MachineRegisterInfo iterators to make them suitable
for use with C++11 range-based for-loops.
The gist of phase 1 is to remove the skipInstruction() and skipBundle()
methods from these iterators, instead splitting each iterator into a version
that walks operands, a version that walks instructions, and a version that
walks bundles. This has the result of making some "clever" loops in lib/CodeGen
more verbose, but also makes their iterator invalidation characteristics much
more obvious to the casual reader. (Making them concise again in the future is a
good motivating case for a pre-incrementing range adapter!)
Phase 2 of this undertaking with consist of removing the getOperand() method,
and changing operator*() of the operand-walker to return a MachineOperand&. At
that point, it should be possible to add range views for them that work as one
might expect.
llvm-svn: 203757
Diffstat (limited to 'clang/lib/Frontend/ASTConsumers.cpp')
0 files changed, 0 insertions, 0 deletions