llvm.org GIT mirror llvm / 32efba6
Change the argument to getIntegerSCEV to be an int64_t, rather than int. This will make it more convenient for LSR, which does a lot of things with int64_t offsets. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95281 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 10 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
516516
517517 /// getIntegerSCEV - Given a SCEVable type, create a constant for the
518518 /// specified signed integer value and return a SCEV for the constant.
519 const SCEV *getIntegerSCEV(int Val, const Type *Ty);
519 const SCEV *getIntegerSCEV(int64_t Val, const Type *Ty);
520520
521521 /// getUMaxFromMismatchedTypes - Promote the operands to the wider of
522522 /// the types using zero-extension, and then perform a umax operation
23502350
23512351 /// getIntegerSCEV - Given a SCEVable type, create a constant for the
23522352 /// specified signed integer value and return a SCEV for the constant.
2353 const SCEV *ScalarEvolution::getIntegerSCEV(int Val, const Type *Ty) {
2353 const SCEV *ScalarEvolution::getIntegerSCEV(int64_t Val, const Type *Ty) {
23542354 const IntegerType *ITy = cast(getEffectiveSCEVType(Ty));
23552355 return getConstant(ConstantInt::get(ITy, Val));
23562356 }