aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-09-12 17:03:16 +0000
committerChris Lattner <sabre@nondot.org>2005-09-12 17:03:16 +0000
commit331a1833e12b6229986f63f0a156062affbf3142 (patch)
tree368df54c13a3e430a2ebb0fe6b35110f5ce0aeb3 /include/llvm/Analysis
parentc6bae65b49f3b0bb457b6bdb60e29bd9a44e743a (diff)
downloadexternal_llvm-331a1833e12b6229986f63f0a156062affbf3142.zip
external_llvm-331a1833e12b6229986f63f0a156062affbf3142.tar.gz
external_llvm-331a1833e12b6229986f63f0a156062affbf3142.tar.bz2
new method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23314 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis')
-rw-r--r--include/llvm/Analysis/LoopInfo.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Analysis/LoopInfo.h b/include/llvm/Analysis/LoopInfo.h
index 9357d8f..839b47c 100644
--- a/include/llvm/Analysis/LoopInfo.h
+++ b/include/llvm/Analysis/LoopInfo.h
@@ -121,6 +121,12 @@ public:
///
BasicBlock *getLoopPreheader() const;
+ /// getLoopLatch - If there is a latch block for this loop, return it. A
+ /// latch block is the canonical backedge for a loop. A loop header in normal
+ /// form has two edges into it: one from a preheader and one from a latch
+ /// block.
+ BasicBlock *getLoopLatch() const;
+
/// getCanonicalInductionVariable - Check to see if the loop has a canonical
/// induction variable: an integer recurrence that starts at 0 and increments
/// by one each time through the loop. If so, return the phi node that