Add new SCEV, SCEVSMax. This allows LLVM to analyze do-while loops.
[oota-llvm.git] / include / llvm / Analysis / ScalarEvolution.h
index a52f273b2c716f90b66777ec2dd89818c41f7c77..d0886e8c64cba59bacc49d6331fd5033786460f2 100644 (file)
@@ -235,6 +235,8 @@ namespace llvm {
       std::vector<SCEVHandle> NewOp(Operands);
       return getAddRecExpr(NewOp, L);
     }
+    SCEVHandle getSMaxExpr(const SCEVHandle &LHS, const SCEVHandle &RHS);
+    SCEVHandle getSMaxExpr(std::vector<SCEVHandle> Operands);
     SCEVHandle getUnknown(Value *V);
 
     /// getNegativeSCEV - Return the SCEV object corresponding to -V.