[llvm] r290504 - Add range iterator for blocks in MemoryPhi
Daniel Berlin via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 24 13:52:10 PST 2016
Author: dannyb
Date: Sat Dec 24 15:52:10 2016
New Revision: 290504
URL: http://llvm.org/viewvc/llvm-project?rev=290504&view=rev
Log:
Add range iterator for blocks in MemoryPhi
Modified:
llvm/trunk/include/llvm/Transforms/Utils/MemorySSA.h
Modified: llvm/trunk/include/llvm/Transforms/Utils/MemorySSA.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Transforms/Utils/MemorySSA.h?rev=290504&r1=290503&r2=290504&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Transforms/Utils/MemorySSA.h (original)
+++ llvm/trunk/include/llvm/Transforms/Utils/MemorySSA.h Sat Dec 24 15:52:10 2016
@@ -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(); }
More information about the llvm-commits
mailing list