new method
authorChris Lattner <sabre@nondot.org>
Mon, 12 Sep 2005 17:03:16 +0000 (17:03 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 12 Sep 2005 17:03:16 +0000 (17:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23314 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/LoopInfo.h

index 9357d8fb6ea9ab4d17d5157a688bc56c2f7be805..839b47ca2972d22da89990136729d383d4ee0bbe 100644 (file)
@@ -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