1
0
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:
Daniel Berlin 2016-12-24 21:52:10 +00:00
parent 29ce1efcdf
commit 88bb87cbe0

View File

@ -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(); }