Add new method.
authorChris Lattner <sabre@nondot.org>
Sun, 18 Apr 2004 22:45:16 +0000 (22:45 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 18 Apr 2004 22:45:16 +0000 (22:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13049 91177308-0d34-0410-b5e6-96231b3b80d8

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.
   //