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

Chris Lattner lattner at cs.uiuc.edu
Sun Apr 18 17:45:01 PDT 2004


Changes in directory llvm/include/llvm/Analysis:

LoopInfo.h updated: 1.36 -> 1.37

---
Log message:

Add new method.


---
Diffs of the changes:  (+5 -1)

Index: llvm/include/llvm/Analysis/LoopInfo.h
diff -u llvm/include/llvm/Analysis/LoopInfo.h:1.36 llvm/include/llvm/Analysis/LoopInfo.h:1.37
--- llvm/include/llvm/Analysis/LoopInfo.h:1.36	Sun Apr 18 17:13:21 2004
+++ llvm/include/llvm/Analysis/LoopInfo.h	Sun Apr 18 17:45:16 2004
@@ -34,7 +34,7 @@
 class DominatorSet;
 class LoopInfo;
 class PHINode;
-  class Instruction;
+class Instruction;
 
 //===----------------------------------------------------------------------===//
 /// Loop class - Instances of this class are used to represent loops that are 
@@ -83,6 +83,10 @@
   /// getNumBackEdges - Calculate the number of back edges to the loop header
   ///
   unsigned getNumBackEdges() const;
+
+  /// isLoopInvariant - Return true if the specified value is loop invariant
+  ///
+  bool isLoopInvariant(Value *V) const;
 
   //===--------------------------------------------------------------------===//
   // APIs for simple analysis of the loop.





More information about the llvm-commits mailing list