[llvm-commits] CVS: llvm/include/llvm/Analysis/LoopInfo.h

Chris Lattner lattner at cs.uiuc.edu
Mon Sep 12 10:03:27 PDT 2005



Changes in directory llvm/include/llvm/Analysis:

LoopInfo.h updated: 1.49 -> 1.50
---
Log message:

new method


---
Diffs of the changes:  (+6 -0)

 LoopInfo.h |    6 ++++++
 1 files changed, 6 insertions(+)


Index: llvm/include/llvm/Analysis/LoopInfo.h
diff -u llvm/include/llvm/Analysis/LoopInfo.h:1.49 llvm/include/llvm/Analysis/LoopInfo.h:1.50
--- llvm/include/llvm/Analysis/LoopInfo.h:1.49	Wed Jun 29 12:41:25 2005
+++ llvm/include/llvm/Analysis/LoopInfo.h	Mon Sep 12 12:03:16 2005
@@ -121,6 +121,12 @@
   ///
   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






More information about the llvm-commits mailing list