aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Analysis/LoopIterator.h
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2011-08-10 01:59:05 +0000
committerAndrew Trick <atrick@apple.com>2011-08-10 01:59:05 +0000
commit2d31ae3d9dfb153f081a5521374b2b42befd50a1 (patch)
tree556cd60801e7ff953f76e136f5138e332d2f1cab /include/llvm/Analysis/LoopIterator.h
parent155a92a4918f290e56869bec6360fd8dd6e3950d (diff)
Cleanup. Added LoopBlocksDFS::perform for simple clients.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137195 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/LoopIterator.h')
-rw-r--r--include/llvm/Analysis/LoopIterator.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Analysis/LoopIterator.h b/include/llvm/Analysis/LoopIterator.h
index 2797e67b09..a8221f48a3 100644
--- a/include/llvm/Analysis/LoopIterator.h
+++ b/include/llvm/Analysis/LoopIterator.h
@@ -61,6 +61,9 @@ public:
Loop *getLoop() const { return L; }
+ /// Traverse the loop blocks and store the DFS result.
+ void perform(LoopInfo *LI);
+
/// Return true if postorder numbers are assigned to all loop blocks.
bool isComplete() const { return PostBlocks.size() == L->getNumBlocks(); }