aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis/LoopInfo.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-04-18 22:45:16 +0000
committerChris Lattner <sabre@nondot.org>2004-04-18 22:45:16 +0000
commit88d3ef2c744db0289223a4477669f24d542e6d97 (patch)
treed6a70a0bfa87e7865677c12f253b510768c5e3fb /include/llvm/Analysis/LoopInfo.h
parent59fb87d469b9b38b0f4c1e31a2f34fa8f09b981d (diff)
downloadexternal_llvm-88d3ef2c744db0289223a4477669f24d542e6d97.zip
external_llvm-88d3ef2c744db0289223a4477669f24d542e6d97.tar.gz
external_llvm-88d3ef2c744db0289223a4477669f24d542e6d97.tar.bz2
Add new method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13049 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/LoopInfo.h')
-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.
//