diff options
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Analysis/ScalarEvolution.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/llvm/Analysis/ScalarEvolution.h b/include/llvm/Analysis/ScalarEvolution.h index e16e990bad..0786b51f53 100644 --- a/include/llvm/Analysis/ScalarEvolution.h +++ b/include/llvm/Analysis/ScalarEvolution.h @@ -29,9 +29,7 @@ namespace llvm { class APInt; class ConstantInt; - class Instruction; class Type; - class ConstantRange; class SCEVHandle; class ScalarEvolution; @@ -282,6 +280,11 @@ namespace llvm { /// object is returned. SCEVHandle getSCEVAtScope(Value *V, const Loop *L) const; + /// isLoopGuardedByCond - Test whether entry to the loop is protected by + /// a conditional between LHS and RHS. + bool isLoopGuardedByCond(const Loop *L, ICmpInst::Predicate Pred, + SCEV *LHS, SCEV *RHS); + /// getIterationCount - If the specified loop has a predictable iteration /// count, return it, otherwise return a SCEVCouldNotCompute object. SCEVHandle getIterationCount(const Loop *L) const; |