Lines Matching full:bitwidth
694 // Suppose, W is the bitwidth of the return value. We must be prepared for
948 unsigned BitWidth = getTypeSizeInBits(AR->getType());
978 Type *WideTy = IntegerType::get(getContext(), BitWidth * 2);
1019 const SCEV *N = getConstant(APInt::getMinValue(BitWidth) -
1033 const SCEV *N = getConstant(APInt::getMaxValue(BitWidth) -
1066 unsigned BitWidth = SE->getTypeSizeInBits(Step->getType());
1069 return SE->getConstant(APInt::getSignedMinValue(BitWidth) -
1074 return SE->getConstant(APInt::getSignedMaxValue(BitWidth) -
1122 unsigned BitWidth = SE->getTypeSizeInBits(AR->getType());
1123 Type *WideTy = IntegerType::get(SE->getContext(), BitWidth * 2);
1214 unsigned BitWidth = getTypeSizeInBits(AR->getType());
1244 Type *WideTy = IntegerType::get(getContext(), BitWidth * 2);
1623 uint64_t BitWidth = getTypeSizeInBits(Ty);
1626 APInt AccumulatedConstant(BitWidth, 0);
1629 APInt(BitWidth, 1), *this)) {
2699 /// getEffectiveSCEVType - Return a type with the same bitwidth as
3234 /// it returns 2. If S is guaranteed to be 0, it returns the bitwidth of S.
3267 uint32_t BitWidth = getTypeSizeInBits(M->getType());
3269 SumOpRes != BitWidth && i != e; ++i)
3271 BitWidth);
3301 unsigned BitWidth = getTypeSizeInBits(U->getType());
3302 APInt Zeros(BitWidth, 0), Ones(BitWidth, 0);
3323 unsigned BitWidth = getTypeSizeInBits(S->getType());
3324 ConstantRange ConservativeResult(BitWidth, /*isFullSet=*/true);
3331 ConstantRange(APInt::getMinValue(BitWidth),
3332 APInt::getMaxValue(BitWidth).lshr(TZ).shl(TZ) + 1);
3371 ConservativeResult.intersectWith(X.zeroExtend(BitWidth)));
3377 ConservativeResult.intersectWith(X.signExtend(BitWidth)));
3383 ConservativeResult.intersectWith(X.truncate(BitWidth)));
3394 ConstantRange(C->getValue()->getValue(), APInt(BitWidth, 0)));
3401 getTypeSizeInBits(MaxBECount->getType()) <= BitWidth) {
3416 ConstantRange ExtStartRange = StartRange.zextOrTrunc(BitWidth*2+1);
3417 ConstantRange ExtStepRange = StepRange.sextOrTrunc(BitWidth*2+1);
3419 MaxBECountRange.zextOrTrunc(BitWidth*2+1);
3420 ConstantRange ExtEndRange = EndRange.zextOrTrunc(BitWidth*2+1);
3441 APInt Zeros(BitWidth, 0), Ones(BitWidth, 0);
3464 unsigned BitWidth = getTypeSizeInBits(S->getType());
3465 ConstantRange ConservativeResult(BitWidth, /*isFullSet=*/true);
3472 ConstantRange(APInt::getSignedMinValue(BitWidth),
3473 APInt::getSignedMaxValue(BitWidth).ashr(TZ).shl(TZ) + 1);
3512 ConservativeResult.intersectWith(X.zeroExtend(BitWidth)));
3518 ConservativeResult.intersectWith(X.signExtend(BitWidth)));
3524 ConservativeResult.intersectWith(X.truncate(BitWidth)));
3539 ConstantRange(APInt(BitWidth, 0),
3540 APInt::getSignedMinValue(BitWidth)));
3543 ConstantRange(APInt::getSignedMinValue(BitWidth),
3544 APInt(BitWidth, 1)));
3552 getTypeSizeInBits(MaxBECount->getType()) <= BitWidth) {
3567 ConstantRange ExtStartRange = StartRange.sextOrTrunc(BitWidth*2+1);
3568 ConstantRange ExtStepRange = StepRange.sextOrTrunc(BitWidth*2+1);
3570 MaxBECountRange.zextOrTrunc(BitWidth*2+1);
3571 ConstantRange ExtEndRange = EndRange.sextOrTrunc(BitWidth*2+1);
3598 ConstantRange(APInt::getSignedMinValue(BitWidth).ashr(NS - 1),
3599 APInt::getSignedMaxValue(BitWidth).ashr(NS - 1)+1)));
3698 unsigned BitWidth = A.getBitWidth();
3699 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
3702 APInt EffectiveMask = APInt::getLowBitsSet(BitWidth, BitWidth - LZ);
3707 IntegerType::get(getContext(), BitWidth - LZ)),
3785 uint32_t BitWidth = cast<IntegerType>(U->getType())->getBitWidth();
3787 // If the shift count is not less than the bitwidth, the result of
3791 if (SA->getValue().uge(BitWidth))
3795 APInt::getOneBitSet(BitWidth, SA->getZExtValue()));
3803 uint32_t BitWidth = cast<IntegerType>(U->getType())->getBitWidth();
3805 // If the shift count is not less than the bitwidth, the result of
3809 if (SA->getValue().uge(BitWidth))
3813 APInt::getOneBitSet(BitWidth, SA->getZExtValue()));
3824 uint64_t BitWidth = getTypeSizeInBits(U->getType());
3826 // If the shift count is not less than the bitwidth, the result of
3830 if (CI->getValue().uge(BitWidth))
3833 uint64_t Amt = BitWidth - CI->getZExtValue();
3834 if (Amt == BitWidth)
5444 uint32_t BitWidth = LC->getValue()->getValue().getBitWidth();
5448 APInt Two(BitWidth, 2);
5449 APInt Four(BitWidth, 4);
6406 unsigned BitWidth = getTypeSizeInBits(AddRec->getType());
6423 APInt Max = APInt::getSignedMaxValue(BitWidth);
6428 APInt Max = APInt::getMaxValue(BitWidth);
6475 getMinusSCEV(getConstant(APInt::getSignedMaxValue(BitWidth)),
6478 getMinusSCEV(getConstant(APInt::getMaxValue(BitWidth)),
6541 unsigned BitWidth = SE.getTypeSizeInBits(getType());
6542 if (!Range.contains(APInt(BitWidth, 0)))
6553 APInt One(BitWidth,1);