diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-04-18 22:45:16 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-04-18 22:45:16 +0000 |
| commit | d4d66c86c0c509b15032dc2595a2d78530694bae (patch) | |
| tree | c387e7b44a6c4a84b0789f1ea81adadb23ff49b5 | |
| parent | 827826320d204115d6a52ac7489e911ef7fab577 (diff) | |
| download | bcm5719-llvm-d4d66c86c0c509b15032dc2595a2d78530694bae.tar.gz bcm5719-llvm-d4d66c86c0c509b15032dc2595a2d78530694bae.zip | |
Add new method.
llvm-svn: 13049
| -rw-r--r-- | llvm/include/llvm/Analysis/LoopInfo.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/include/llvm/Analysis/LoopInfo.h b/llvm/include/llvm/Analysis/LoopInfo.h index 84865d3a6ae..b85291f5516 100644 --- a/llvm/include/llvm/Analysis/LoopInfo.h +++ b/llvm/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. // |

