Home | History | Annotate | Download | only in Analysis

Lines Matching refs:BitWidth

691   // Suppose, W is the bitwidth of the return value.  We must be prepared for
945 unsigned BitWidth = getTypeSizeInBits(AR->getType());
975 Type *WideTy = IntegerType::get(getContext(), BitWidth * 2);
1016 const SCEV *N = getConstant(APInt::getMinValue(BitWidth) -
1030 const SCEV *N = getConstant(APInt::getMaxValue(BitWidth) -
1063 unsigned BitWidth = SE->getTypeSizeInBits(Step->getType());
1066 return SE->getConstant(APInt::getSignedMinValue(BitWidth) -
1071 return SE->getConstant(APInt::getSignedMaxValue(BitWidth) -
1119 unsigned BitWidth = SE->getTypeSizeInBits(AR->getType());
1120 Type *WideTy = IntegerType::get(SE->getContext(), BitWidth * 2);
1211 unsigned BitWidth = getTypeSizeInBits(AR->getType());
1241 Type *WideTy = IntegerType::get(getContext(), BitWidth * 2);
1620 uint64_t BitWidth = getTypeSizeInBits(Ty);
1623 APInt AccumulatedConstant(BitWidth, 0);
1626 APInt(BitWidth, 1), *this)) {
2696 /// getEffectiveSCEVType - Return a type with the same bitwidth as
3193 /// it returns 2. If S is guaranteed to be 0, it returns the bitwidth of S.
3226 uint32_t BitWidth = getTypeSizeInBits(M->getType());
3228 SumOpRes != BitWidth && i != e; ++i)
3230 BitWidth);
3260 unsigned BitWidth = getTypeSizeInBits(U->getType());
3261 APInt Zeros(BitWidth, 0), Ones(BitWidth, 0);
3282 unsigned BitWidth = getTypeSizeInBits(S->getType());
3283 ConstantRange ConservativeResult(BitWidth, /*isFullSet=*/true);
3290 ConstantRange(APInt::getMinValue(BitWidth),
3291 APInt::getMaxValue(BitWidth).lshr(TZ).shl(TZ) + 1);
3330 ConservativeResult.intersectWith(X.zeroExtend(BitWidth)));
3336 ConservativeResult.intersectWith(X.signExtend(BitWidth)));
3342 ConservativeResult.intersectWith(X.truncate(BitWidth)));
3353 ConstantRange(C->getValue()->getValue(), APInt(BitWidth, 0)));
3360 getTypeSizeInBits(MaxBECount->getType()) <= BitWidth) {
3375 ConstantRange ExtStartRange = StartRange.zextOrTrunc(BitWidth*2+1);
3376 ConstantRange ExtStepRange = StepRange.sextOrTrunc(BitWidth*2+1);
3378 MaxBECountRange.zextOrTrunc(BitWidth*2+1);
3379 ConstantRange ExtEndRange = EndRange.zextOrTrunc(BitWidth*2+1);
3400 APInt Zeros(BitWidth, 0), Ones(BitWidth, 0);
3423 unsigned BitWidth = getTypeSizeInBits(S->getType());
3424 ConstantRange ConservativeResult(BitWidth, /*isFullSet=*/true);
3431 ConstantRange(APInt::getSignedMinValue(BitWidth),
3432 APInt::getSignedMaxValue(BitWidth).ashr(TZ).shl(TZ) + 1);
3471 ConservativeResult.intersectWith(X.zeroExtend(BitWidth)));
3477 ConservativeResult.intersectWith(X.signExtend(BitWidth)));
3483 ConservativeResult.intersectWith(X.truncate(BitWidth)));
3498 ConstantRange(APInt(BitWidth, 0),
3499 APInt::getSignedMinValue(BitWidth)));
3502 ConstantRange(APInt::getSignedMinValue(BitWidth),
3503 APInt(BitWidth, 1)));
3511 getTypeSizeInBits(MaxBECount->getType()) <= BitWidth) {
3526 ConstantRange ExtStartRange = StartRange.sextOrTrunc(BitWidth*2+1);
3527 ConstantRange ExtStepRange = StepRange.sextOrTrunc(BitWidth*2+1);
3529 MaxBECountRange.zextOrTrunc(BitWidth*2+1);
3530 ConstantRange ExtEndRange = EndRange.sextOrTrunc(BitWidth*2+1);
3557 ConstantRange(APInt::getSignedMinValue(BitWidth).ashr(NS - 1),
3558 APInt::getSignedMaxValue(BitWidth).ashr(NS - 1)+1)));
3657 unsigned BitWidth = A.getBitWidth();
3658 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
3661 APInt EffectiveMask = APInt::getLowBitsSet(BitWidth, BitWidth - LZ);
3666 IntegerType::get(getContext(), BitWidth - LZ)),
3744 uint32_t BitWidth = cast<IntegerType>(U->getType())->getBitWidth();
3746 // If the shift count is not less than the bitwidth, the result of
3750 if (SA->getValue().uge(BitWidth))
3754 APInt(BitWidth, 1).shl(SA->getZExtValue()));
3762 uint32_t BitWidth = cast<IntegerType>(U->getType())->getBitWidth();
3764 // If the shift count is not less than the bitwidth, the result of
3768 if (SA->getValue().uge(BitWidth))
3772 APInt(BitWidth, 1).shl(SA->getZExtValue()));
3783 uint64_t BitWidth = getTypeSizeInBits(U->getType());
3785 // If the shift count is not less than the bitwidth, the result of
3789 if (CI->getValue().uge(BitWidth))
3792 uint64_t Amt = BitWidth - CI->getZExtValue();
3793 if (Amt == BitWidth)
5361 uint32_t BitWidth = LC->getValue()->getValue().getBitWidth();
5365 APInt Two(BitWidth, 2);
5366 APInt Four(BitWidth, 4);
6315 unsigned BitWidth = getTypeSizeInBits(AddRec->getType());
6332 APInt Max = APInt::getSignedMaxValue(BitWidth);
6337 APInt Max = APInt::getMaxValue(BitWidth);
6384 getMinusSCEV(getConstant(APInt::getSignedMaxValue(BitWidth)),
6387 getMinusSCEV(getConstant(APInt::getMaxValue(BitWidth)),
6450 unsigned BitWidth = SE.getTypeSizeInBits(getType());
6451 if (!Range.contains(APInt(BitWidth, 0)))
6462 APInt One(BitWidth,1);