mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Provide an interface that is more convenient for iterating over the blocks
in a loop. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13052 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3280f7bd55
commit
4e77cc46ac
@ -74,6 +74,9 @@ public:
|
||||
/// getBlocks - Get a list of the basic blocks which make up this loop.
|
||||
///
|
||||
const std::vector<BasicBlock*> &getBlocks() const { return Blocks; }
|
||||
typedef std::vector<BasicBlock*>::const_iterator block_iterator;
|
||||
block_iterator block_begin() const { return Blocks.begin(); }
|
||||
block_iterator block_end() const { return Blocks.end(); }
|
||||
|
||||
/// isLoopExit - True if terminator in the block can branch to another block
|
||||
/// that is outside of the current loop.
|
||||
|
Loading…
Reference in New Issue
Block a user