aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Analysis/ScalarEvolutionExpressions.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-07-09 15:25:17 +0000
committerDan Gohman <gohman@apple.com>2007-07-09 15:25:17 +0000
commit9a6ae965d69b131d692de8fc69545b6c7aaea0b2 (patch)
treef88567da61e759e66f4dfc237ac909cf568493ad /include/llvm/Analysis/ScalarEvolutionExpressions.h
parent2c8c3e2e31e641085060edce0ddde3833ffa53da (diff)
Move the APInt form of SCEVUnknown::getIntegerSCEV to SCEVConstant::get, and
use SCEVConstant::get instead of SCEVUnknown::get when constructing a SCEV for a ConstantInt. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@38457 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/ScalarEvolutionExpressions.h')
-rw-r--r--include/llvm/Analysis/ScalarEvolutionExpressions.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Analysis/ScalarEvolutionExpressions.h b/include/llvm/Analysis/ScalarEvolutionExpressions.h
index dd6871fdd1..957ddadcb5 100644
--- a/include/llvm/Analysis/ScalarEvolutionExpressions.h
+++ b/include/llvm/Analysis/ScalarEvolutionExpressions.h
@@ -33,13 +33,14 @@ namespace llvm {
///
class SCEVConstant : public SCEV {
ConstantInt *V;
- SCEVConstant(ConstantInt *v) : SCEV(scConstant), V(v) {}
+ explicit SCEVConstant(ConstantInt *v) : SCEV(scConstant), V(v) {}
virtual ~SCEVConstant();
public:
/// get method - This just gets and returns a new SCEVConstant object.
///
static SCEVHandle get(ConstantInt *V);
+ static SCEVHandle get(const APInt& Val);
ConstantInt *getValue() const { return V; }
@@ -511,7 +512,6 @@ namespace llvm {
/// getIntegerSCEV - Given an integer or FP type, create a constant for the
/// specified signed integer value and return a SCEV for the constant.
static SCEVHandle getIntegerSCEV(int Val, const Type *Ty);
- static SCEVHandle getIntegerSCEV(const APInt& Val);
Value *getValue() const { return V; }