Add new method.
[oota-llvm.git] / include / llvm / Analysis / LoopInfo.h
index 84865d3a6aee64fcb1ae4b8dafe8dd49f1c06ff0..b85291f5516a1524f926e9632efbeed683599187 100644 (file)
@@ -34,7 +34,7 @@ namespace llvm {
 class DominatorSet;
 class LoopInfo;
 class PHINode;
-  class Instruction;
+class Instruction;
 
 //===----------------------------------------------------------------------===//
 /// Loop class - Instances of this class are used to represent loops that are 
@@ -84,6 +84,10 @@ public:
   ///
   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.
   //