mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Add range iterator for blocks in MemoryPhi
llvm-svn: 290504
This commit is contained in:
parent
29ce1efcdf
commit
88bb87cbe0
@ -387,6 +387,14 @@ public:
|
||||
return block_begin() + getNumOperands();
|
||||
}
|
||||
|
||||
iterator_range<block_iterator> blocks() {
|
||||
return make_range(block_begin(), block_end());
|
||||
}
|
||||
|
||||
iterator_range<const_block_iterator> blocks() const {
|
||||
return make_range(block_begin(), block_end());
|
||||
}
|
||||
|
||||
op_range incoming_values() { return operands(); }
|
||||
|
||||
const_op_range incoming_values() const { return operands(); }
|
||||
|
Loading…
Reference in New Issue
Block a user