aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Analysis/LoopInfo.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/Analysis/LoopInfo.h b/include/llvm/Analysis/LoopInfo.h
index 84865d3..b85291f 100644
--- a/include/llvm/Analysis/LoopInfo.h
+++ b/include/llvm/Analysis/LoopInfo.h
@@ -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.
//