Home | History | Annotate | Download | only in Analysis

Lines Matching full:bitwidth

664   // Suppose, W is the bitwidth of the return value.  We must be prepared for
927 unsigned BitWidth = getTypeSizeInBits(AR->getType());
957 Type *WideTy = IntegerType::get(getContext(), BitWidth * 2);
997 const SCEV *N = getConstant(APInt::getMinValue(BitWidth) -
1011 const SCEV *N = getConstant(APInt::getMaxValue(BitWidth) -
1044 unsigned BitWidth = SE->getTypeSizeInBits(Step->getType());
1047 return SE->getConstant(APInt::getSignedMinValue(BitWidth) -
1052 return SE->getConstant(APInt::getSignedMaxValue(BitWidth) -
1100 unsigned BitWidth = SE->getTypeSizeInBits(AR->getType());
1101 Type *WideTy = IntegerType::get(SE->getContext(), BitWidth * 2);
1193 unsigned BitWidth = getTypeSizeInBits(AR->getType());
1223 Type *WideTy = IntegerType::get(getContext(), BitWidth * 2);
1608 uint64_t BitWidth = getTypeSizeInBits(Ty);
1611 APInt AccumulatedConstant(BitWidth, 0);
1614 APInt(BitWidth, 1), *this)) {
2680 /// getEffectiveSCEVType - Return a type with the same bitwidth as
3177 /// it returns 2. If S is guaranteed to be 0, it returns the bitwidth of S.
3210 uint32_t BitWidth = getTypeSizeInBits(M->getType());
3212 SumOpRes != BitWidth && i != e; ++i)
3214 BitWidth);
3244 unsigned BitWidth = getTypeSizeInBits(U->getType());
3245 APInt Mask = APInt::getAllOnesValue(BitWidth);
3246 APInt Zeros(BitWidth, 0), Ones(BitWidth, 0);
3267 unsigned BitWidth = getTypeSizeInBits(S->getType());
3268 ConstantRange ConservativeResult(BitWidth, /*isFullSet=*/true);
3275 ConstantRange(APInt::getMinValue(BitWidth),
3276 APInt::getMaxValue(BitWidth).lshr(TZ).shl(TZ) + 1);
3315 ConservativeResult.intersectWith(X.zeroExtend(BitWidth)));
3321 ConservativeResult.intersectWith(X.signExtend(BitWidth)));
3327 ConservativeResult.intersectWith(X.truncate(BitWidth)));
3338 ConstantRange(C->getValue()->getValue(), APInt(BitWidth, 0)));
3345 getTypeSizeInBits(MaxBECount->getType()) <= BitWidth) {
3360 ConstantRange ExtStartRange = StartRange.zextOrTrunc(BitWidth*2+1);
3361 ConstantRange ExtStepRange = StepRange.sextOrTrunc(BitWidth*2+1);
3363 MaxBECountRange.zextOrTrunc(BitWidth*2+1);
3364 ConstantRange ExtEndRange = EndRange.zextOrTrunc(BitWidth*2+1);
3385 APInt Mask = APInt::getAllOnesValue(BitWidth);
3386 APInt Zeros(BitWidth, 0), Ones(BitWidth, 0);
3409 unsigned BitWidth = getTypeSizeInBits(S->getType());
3410 ConstantRange ConservativeResult(BitWidth, /*isFullSet=*/true);
3417 ConstantRange(APInt::getSignedMinValue(BitWidth),
3418 APInt::getSignedMaxValue(BitWidth).ashr(TZ).shl(TZ) + 1);
3457 ConservativeResult.intersectWith(X.zeroExtend(BitWidth)));
3463 ConservativeResult.intersectWith(X.signExtend(BitWidth)));
3469 ConservativeResult.intersectWith(X.truncate(BitWidth)));
3484 ConstantRange(APInt(BitWidth, 0),
3485 APInt::getSignedMinValue(BitWidth)));
3488 ConstantRange(APInt::getSignedMinValue(BitWidth),
3489 APInt(BitWidth, 1)));
3497 getTypeSizeInBits(MaxBECount->getType()) <= BitWidth) {
3512 ConstantRange ExtStartRange = StartRange.sextOrTrunc(BitWidth*2+1);
3513 ConstantRange ExtStepRange = StepRange.sextOrTrunc(BitWidth*2+1);
3515 MaxBECountRange.zextOrTrunc(BitWidth*2+1);
3516 ConstantRange ExtEndRange = EndRange.sextOrTrunc(BitWidth*2+1);
3543 ConstantRange(APInt::getSignedMinValue(BitWidth).ashr(NS - 1),
3544 APInt::getSignedMaxValue(BitWidth).ashr(NS - 1)+1)));
3643 unsigned BitWidth = A.getBitWidth();
3644 APInt AllOnes = APInt::getAllOnesValue(BitWidth);
3645 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
3648 APInt EffectiveMask = APInt::getLowBitsSet(BitWidth, BitWidth - LZ);
3653 IntegerType::get(getContext(), BitWidth - LZ)),
3731 uint32_t BitWidth = cast<IntegerType>(U->getType())->getBitWidth();
3733 // If the shift count is not less than the bitwidth, the result of
3737 if (SA->getValue().uge(BitWidth))
3741 APInt(BitWidth, 1).shl(SA->getZExtValue()));
3749 uint32_t BitWidth = cast<IntegerType>(U->getType())->getBitWidth();
3751 // If the shift count is not less than the bitwidth, the result of
3755 if (SA->getValue().uge(BitWidth))
3759 APInt(BitWidth, 1).shl(SA->getZExtValue()));
3770 uint64_t BitWidth = getTypeSizeInBits(U->getType());
3772 // If the shift count is not less than the bitwidth, the result of
3776 if (CI->getValue().uge(BitWidth))
3779 uint64_t Amt = BitWidth - CI->getZExtValue();
3780 if (Amt == BitWidth)
5190 uint32_t BitWidth = LC->getValue()->getValue().getBitWidth();
5194 APInt Two(BitWidth, 2);
5195 APInt Four(BitWidth, 4);
6096 unsigned BitWidth = getTypeSizeInBits(AddRec->getType());
6113 APInt Max = APInt::getSignedMaxValue(BitWidth);
6118 APInt Max = APInt::getMaxValue(BitWidth);
6165 getMinusSCEV(getConstant(APInt::getSignedMaxValue(BitWidth)),
6168 getMinusSCEV(getConstant(APInt::getMaxValue(BitWidth)),
6231 unsigned BitWidth = SE.getTypeSizeInBits(getType());
6232 if (!Range.contains(APInt(BitWidth, 0)))
6243 APInt One(BitWidth,1);