From 88d3ef2c744db0289223a4477669f24d542e6d97 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 18 Apr 2004 22:45:16 +0000 Subject: [PATCH] Add new method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13049 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Analysis/LoopInfo.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/llvm/Analysis/LoopInfo.h b/include/llvm/Analysis/LoopInfo.h index 84865d3a6ae..b85291f5516 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. // -- 2.34.1