Home | History | Annotate | Download | only in Analysis

Lines Matching defs:BitWidth

683   // Suppose, W is the bitwidth of the return value.  We must be prepared for
946 unsigned BitWidth = getTypeSizeInBits(AR->getType());
976 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);
1212 unsigned BitWidth = getTypeSizeInBits(AR->getType());
1242 Type *WideTy = IntegerType::get(getContext(), BitWidth * 2);
1627 uint64_t BitWidth = getTypeSizeInBits(Ty);
1630 APInt AccumulatedConstant(BitWidth, 0);
1633 APInt(BitWidth, 1), *this)) {
2699 /// getEffectiveSCEVType - Return a type with the same bitwidth as
3196 /// it returns 2. If S is guaranteed to be 0, it returns the bitwidth of S.
3229 uint32_t BitWidth = getTypeSizeInBits(M->getType());
3231 SumOpRes != BitWidth && i != e; ++i)
3233 BitWidth);
3263 unsigned BitWidth = getTypeSizeInBits(U->getType());
3264 APInt Zeros(BitWidth, 0), Ones(BitWidth, 0);
3285 unsigned BitWidth = getTypeSizeInBits(S->getType());
3286 ConstantRange ConservativeResult(BitWidth, /*isFullSet=*/true);
3293 ConstantRange(APInt::getMinValue(BitWidth),
3294 APInt::getMaxValue(BitWidth).lshr(TZ).shl(TZ) + 1);
3333 ConservativeResult.intersectWith(X.zeroExtend(BitWidth)));
3339 ConservativeResult.intersectWith(X.signExtend(BitWidth)));
3345 ConservativeResult.intersectWith(X.truncate(BitWidth)));
3356 ConstantRange(C->getValue()->getValue(), APInt(BitWidth, 0)));
3363 getTypeSizeInBits(MaxBECount->getType()) <= BitWidth) {
3378 ConstantRange ExtStartRange = StartRange.zextOrTrunc(BitWidth*2+1);
3379 ConstantRange ExtStepRange = StepRange.sextOrTrunc(BitWidth*2+1);
3381 MaxBECountRange.zextOrTrunc(BitWidth*2+1);
3382 ConstantRange ExtEndRange = EndRange.zextOrTrunc(BitWidth*2+1);
3403 APInt Zeros(BitWidth, 0), Ones(BitWidth, 0);
3426 unsigned BitWidth = getTypeSizeInBits(S->getType());
3427 ConstantRange ConservativeResult(BitWidth, /*isFullSet=*/true);
3434 ConstantRange(APInt::getSignedMinValue(BitWidth),
3435 APInt::getSignedMaxValue(BitWidth).ashr(TZ).shl(TZ) + 1);
3474 ConservativeResult.intersectWith(X.zeroExtend(BitWidth)));
3480 ConservativeResult.intersectWith(X.signExtend(BitWidth)));
3486 ConservativeResult.intersectWith(X.truncate(BitWidth)));
3501 ConstantRange(APInt(BitWidth, 0),
3502 APInt::getSignedMinValue(BitWidth)));
3505 ConstantRange(APInt::getSignedMinValue(BitWidth),
3506 APInt(BitWidth, 1)));
3514 getTypeSizeInBits(MaxBECount->getType()) <= BitWidth) {
3529 ConstantRange ExtStartRange = StartRange.sextOrTrunc(BitWidth*2+1);
3530 ConstantRange ExtStepRange = StepRange.sextOrTrunc(BitWidth*2+1);
3532 MaxBECountRange.zextOrTrunc(BitWidth*2+1);
3533 ConstantRange ExtEndRange = EndRange.sextOrTrunc(BitWidth*2+1);
3560 ConstantRange(APInt::getSignedMinValue(BitWidth).ashr(NS - 1),
3561 APInt::getSignedMaxValue(BitWidth).ashr(NS - 1)+1)));
3660 unsigned BitWidth = A.getBitWidth();
3661 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
3664 APInt EffectiveMask = APInt::getLowBitsSet(BitWidth, BitWidth - LZ);
3669 IntegerType::get(getContext(), BitWidth - LZ)),
3747 uint32_t BitWidth = cast<IntegerType>(U->getType())->getBitWidth();
3749 // If the shift count is not less than the bitwidth, the result of
3753 if (SA->getValue().uge(BitWidth))
3757 APInt(BitWidth, 1).shl(SA->getZExtValue()));
3765 uint32_t BitWidth = cast<IntegerType>(U->getType())->getBitWidth();
3767 // If the shift count is not less than the bitwidth, the result of
3771 if (SA->getValue().uge(BitWidth))
3775 APInt(BitWidth, 1).shl(SA->getZExtValue()));
3786 uint64_t BitWidth = getTypeSizeInBits(U->getType());
3788 // If the shift count is not less than the bitwidth, the result of
3792 if (CI->getValue().uge(BitWidth))
3795 uint64_t Amt = BitWidth - CI->getZExtValue();
3796 if (Amt == BitWidth)
5359 uint32_t BitWidth = LC->getValue()->getValue().getBitWidth();
5363 APInt Two(BitWidth, 2);
5364 APInt Four(BitWidth, 4);
6265 unsigned BitWidth = getTypeSizeInBits(AddRec->getType());
6282 APInt Max = APInt::getSignedMaxValue(BitWidth);
6287 APInt Max = APInt::getMaxValue(BitWidth);
6334 getMinusSCEV(getConstant(APInt::getSignedMaxValue(BitWidth)),
6337 getMinusSCEV(getConstant(APInt::getMaxValue(BitWidth)),
6400 unsigned BitWidth = SE.getTypeSizeInBits(getType());
6401 if (!Range.contains(APInt(BitWidth, 0)))
6412 APInt One(BitWidth,1);