Home | History | Annotate | Download | only in Analysis

Lines Matching full:getvalue

131     WriteAsOperand(OS, cast<SCEVConstant>(this)->getValue(), false);
220 WriteAsOperand(OS, U->getValue(), false);
261 return SC->getValue()->isZero();
267 return SC->getValue()->isOne();
273 return SC->getValue()->isAllOnesValue();
358 if (ConstantExpr *VCE = dyn_cast<ConstantExpr>(getValue()))
375 if (ConstantExpr *VCE = dyn_cast<ConstantExpr>(getValue()))
400 if (ConstantExpr *VCE = dyn_cast<ConstantExpr>(getValue()))
462 const Value *LV = LU->getValue(), *RV = RU->getValue();
513 const APInt &LA = LC->getValue()->getValue();
514 const APInt &RA = RC->getValue()->getValue();
810 cast<ConstantInt>(ConstantExpr::getTrunc(SC->getValue(),
867 if (isa<UndefValue>(U->getValue()))
890 cast<ConstantInt>(ConstantExpr::getZExt(SC->getValue(),
1148 cast<ConstantInt>(ConstantExpr::getSExt(SC->getValue(),
1299 if (SC->getValue()->getValue().isNegative())
1333 if (isa<UndefValue>(U->getValue()))
1383 if (Scale != 1 || AccumulatedConstant != 0 || C->getValue()->isZero())
1385 AccumulatedConstant += Scale * C->getValue()->getValue();
1394 Scale * cast<SCEVConstant>(Mul->getOperand(0))->getValue()->getValue();
1484 Ops[0] = getConstant(LHSC->getValue()->getValue() +
1485 RHSC->getValue()->getValue());
1492 if (LHSC->getValue()->isZero()) {
1896 LHSC->getValue()->getValue() *
1897 RHSC->getValue()->getValue());
1905 if (cast<SCEVConstant>(Ops[0])->getValue()->equalsInt(1)) {
1908 } else if (cast<SCEVConstant>(Ops[0])->getValue()->isZero()) {
2114 if (RHSC->getValue()->equalsInt(1))
2119 if (!RHSC->getValue()->isZero()) {
2124 unsigned LZ = RHSC->getValue()->getValue().countLeadingZeros();
2128 if (!RHSC->getValue()->getValue().isPowerOf2())
2136 const APInt &StepInt = Step->getValue()->getValue();
2137 const APInt &DivInt = RHSC->getValue()->getValue();
2158 const APInt &StartInt = StartC->getValue()->getValue();
2204 Constant *LHSCV = LHSC->getValue();
2205 Constant *RHSCV = RHSC->getValue();
2384 APIntOps::smax(LHSC->getValue()->getValue(),
2385 RHSC->getValue()->getValue()));
2393 if (cast<SCEVConstant>(Ops[0])->getValue()->isMinValue(true)) {
2396 } else if (cast<SCEVConstant>(Ops[0])->getValue()->isMaxValue(true)) {
2488 APIntOps::umax(LHSC->getValue()->getValue(),
2489 RHSC->getValue()->getValue()));
2497 if (cast<SCEVConstant>(Ops[0])->getValue()->isMinValue(false)) {
2500 } else if (cast<SCEVConstant>(Ops[0])->getValue()->isMaxValue(false)) {
2637 assert(cast<SCEVUnknown>(S)->getValue() == V &&
2724 cast<ConstantInt>(ConstantExpr::getNeg(VC->getValue())));
2736 cast<ConstantInt>(ConstantExpr::getNot(VC->getValue())));
3181 return C->getValue()->getValue().countTrailingZeros();
3247 ComputeMaskedBits(U->getValue(), Mask, Zeros, Ones);
3265 return setUnsignedRange(C, ConstantRange(C->getValue()->getValue()));
3335 if (!C->getValue()->isZero())
3338 ConstantRange(C->getValue()->getValue(), APInt(BitWidth, 0)));
3387 ComputeMaskedBits(U->getValue(), Mask, Zeros, Ones, TD);
3407 return setSignedRange(C, ConstantRange(C->getValue()->getValue()));
3537 if (!U->getValue()->getType()->isIntegerTy() && !TD)
3539 unsigned NS = ComputeNumSignBits(U->getValue(), TD);
3636 const APInt &A = CI->getValue();
3667 const APInt &CIVal = CI->getValue();
3687 if (CI->getValue().isSignBit())
3702 LCI->getValue() == CI->getValue())
3713 if (APIntOps::isMask(Z0TySize, CI->getValue()))
3719 APInt Trunc = CI->getValue().trunc(Z0TySize);
3720 if (Trunc.zext(getTypeSizeInBits(UTy)) == CI->getValue() &&
3737 if (SA->getValue().uge(BitWidth))
3755 if (SA->getValue().uge(BitWidth))
3776 if (CI->getValue().uge(BitWidth))
3928 ConstantInt *ExitConst = ExitCount->getValue();
3931 if (ExitConst->getValue().getActiveBits() > 32)
3965 ConstantInt *Result = MulC->getValue();
3968 if (!Result || Result->getValue().getActiveBits() > 32)
4477 ICmpInst::makeConstantRange(Cond, RHSC->getValue()->getValue()));
4539 return cast<SCEVConstant>(Val)->getValue();
4643 if (cast<ConstantInt>(Result)->getValue().isMinValue()) {
4884 if (CondVal->getValue() == uint64_t(ExitWhen)) {
4930 if (Instruction *I = dyn_cast<Instruction>(SU->getValue())) {
4946 BTCC->getValue()->getValue(),
4978 C = SC->getValue();
4980 C = dyn_cast<Constant>(SU->getValue());
5190 uint32_t BitWidth = LC->getValue()->getValue().getBitWidth();
5191 const APInt &L = LC->getValue()->getValue();
5192 const APInt &M = MC->getValue()->getValue();
5193 const APInt &N = NC->getValue()->getValue();
5250 if (C->getValue()->isZero()) return C;
5273 R1->getValue(),
5274 R2->getValue()))) {
5323 bool CountDown = StepC->getValue()->getValue().isNegative();
5329 if (StepC->getValue()->equalsInt(1) || StepC->getValue()->isAllOnesValue()) {
5359 return SolveLinEquationWithOverflow(StepC->getValue()->getValue(),
5360 -StartC->getValue()->getValue(),
5377 if (!C->getValue()->isNullValue())
5423 if (const Instruction *AI = dyn_cast<Instruction>(AU->getValue()))
5424 if (const Instruction *BI = dyn_cast<Instruction>(BU->getValue()))
5444 LHSC->getValue(),
5445 RHSC->getValue())->isNullValue())
5471 const APInt &RA = RC->getValue()->getValue();
6206 if (!SC->getValue()->isZero()) {
6214 Range.subtract(SC->getValue()->getValue()), SE);
6244 APInt A = cast<SCEVConstant>(getOperand(1))->getValue()->getValue();
6255 if (Range.contains(Val->getValue()))
6261 ConstantInt::get(SE.getContext(), ExitVal - One), SE)->getValue()) &&
6284 R1->getValue(), R2->getValue()))) {
6292 R1->getValue(),
6294 if (Range.contains(R1Val->getValue())) {
6297 ConstantInt::get(SE.getContext(), R1->getValue()->getValue()+1);
6300 if (!Range.contains(R1Val->getValue()))
6308 ConstantInt::get(SE.getContext(), R1->getValue()->getValue()-1);
6310 if (Range.contains(R1Val->getValue()))
6590 if (Instruction *I = dyn_cast<Instruction>(cast<SCEVUnknown>(S)->getValue()))
6671 dyn_cast<Instruction>(cast<SCEVUnknown>(S)->getValue())) {