Home | History | Annotate | Download | only in Analysis

Lines Matching defs:BitWidth

693   // Suppose, W is the bitwidth of the return value.  We must be prepared for
947 unsigned BitWidth = getTypeSizeInBits(AR->getType());
977 Type *WideTy = IntegerType::get(getContext(), BitWidth * 2);
1018 const SCEV *N = getConstant(APInt::getMinValue(BitWidth) -
1032 const SCEV *N = getConstant(APInt::getMaxValue(BitWidth) -
1065 unsigned BitWidth = SE->getTypeSizeInBits(Step->getType());
1068 return SE->getConstant(APInt::getSignedMinValue(BitWidth) -
1073 return SE->getConstant(APInt::getSignedMaxValue(BitWidth) -
1120 unsigned BitWidth = SE->getTypeSizeInBits(AR->getType());
1121 Type *WideTy = IntegerType::get(SE->getContext(), BitWidth * 2);
1229 unsigned BitWidth = getTypeSizeInBits(AR->getType());
1259 Type *WideTy = IntegerType::get(getContext(), BitWidth * 2);
1653 uint64_t BitWidth = getTypeSizeInBits(Ty);
1656 APInt AccumulatedConstant(BitWidth, 0);
1659 APInt(BitWidth, 1), *this)) {
2784 /// getEffectiveSCEVType - Return a type with the same bitwidth as
3329 /// it returns 2. If S is guaranteed to be 0, it returns the bitwidth of S.
3362 uint32_t BitWidth = getTypeSizeInBits(M->getType());
3364 SumOpRes != BitWidth && i != e; ++i)
3366 BitWidth);
3396 unsigned BitWidth = getTypeSizeInBits(U->getType());
3397 APInt Zeros(BitWidth, 0), Ones(BitWidth, 0);
3418 unsigned BitWidth = getTypeSizeInBits(S->getType());
3419 ConstantRange ConservativeResult(BitWidth, /*isFullSet=*/true);
3426 ConstantRange(APInt::getMinValue(BitWidth),
3427 APInt::getMaxValue(BitWidth).lshr(TZ).shl(TZ) + 1);
3466 ConservativeResult.intersectWith(X.zeroExtend(BitWidth)));
3472 ConservativeResult.intersectWith(X.signExtend(BitWidth)));
3478 ConservativeResult.intersectWith(X.truncate(BitWidth)));
3489 ConstantRange(C->getValue()->getValue(), APInt(BitWidth, 0)));
3496 getTypeSizeInBits(MaxBECount->getType()) <= BitWidth) {
3511 ConstantRange ExtStartRange = StartRange.zextOrTrunc(BitWidth*2+1);
3512 ConstantRange ExtStepRange = StepRange.sextOrTrunc(BitWidth*2+1);
3514 MaxBECountRange.zextOrTrunc(BitWidth*2+1);
3515 ConstantRange ExtEndRange = EndRange.zextOrTrunc(BitWidth*2+1);
3536 APInt Zeros(BitWidth, 0), Ones(BitWidth, 0);
3559 unsigned BitWidth = getTypeSizeInBits(S->getType());
3560 ConstantRange ConservativeResult(BitWidth, /*isFullSet=*/true);
3567 ConstantRange(APInt::getSignedMinValue(BitWidth),
3568 APInt::getSignedMaxValue(BitWidth).ashr(TZ).shl(TZ) + 1);
3607 ConservativeResult.intersectWith(X.zeroExtend(BitWidth)));
3613 ConservativeResult.intersectWith(X.signExtend(BitWidth)));
3619 ConservativeResult.intersectWith(X.truncate(BitWidth)));
3634 ConstantRange(APInt(BitWidth, 0),
3635 APInt::getSignedMinValue(BitWidth)));
3638 ConstantRange(APInt::getSignedMinValue(BitWidth),
3639 APInt(BitWidth, 1)));
3647 getTypeSizeInBits(MaxBECount->getType()) <= BitWidth) {
3662 ConstantRange ExtStartRange = StartRange.sextOrTrunc(BitWidth*2+1);
3663 ConstantRange ExtStepRange = StepRange.sextOrTrunc(BitWidth*2+1);
3665 MaxBECountRange.zextOrTrunc(BitWidth*2+1);
3666 ConstantRange ExtEndRange = EndRange.sextOrTrunc(BitWidth*2+1);
3693 ConstantRange(APInt::getSignedMinValue(BitWidth).ashr(NS - 1),
3694 APInt::getSignedMaxValue(BitWidth).ashr(NS - 1)+1)));
3794 unsigned BitWidth = A.getBitWidth();
3795 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
3799 APInt::getLowBitsSet(BitWidth, BitWidth - LZ - TZ).shl(TZ);
3802 ConstantInt::get(getContext(), APInt::getOneBitSet(BitWidth, TZ)));
3807 IntegerType::get(getContext(), BitWidth - LZ - TZ)),
3887 uint32_t BitWidth = cast<IntegerType>(U->getType())->getBitWidth();
3889 // If the shift count is not less than the bitwidth, the result of
3893 if (SA->getValue().uge(BitWidth))
3897 APInt::getOneBitSet(BitWidth, SA->getZExtValue()));
3905 uint32_t BitWidth = cast<IntegerType>(U->getType())->getBitWidth();
3907 // If the shift count is not less than the bitwidth, the result of
3911 if (SA->getValue().uge(BitWidth))
3915 APInt::getOneBitSet(BitWidth, SA->getZExtValue()));
3926 uint64_t BitWidth = getTypeSizeInBits(U->getType());
3928 // If the shift count is not less than the bitwidth, the result of
3932 if (CI->getValue().uge(BitWidth))
3935 uint64_t Amt = BitWidth - CI->getZExtValue();
3936 if (Amt == BitWidth)
5628 uint32_t BitWidth = LC->getValue()->getValue().getBitWidth();
5632 APInt Two(BitWidth, 2);
5633 APInt Four(BitWidth, 4);
6552 unsigned BitWidth = getTypeSizeInBits(RHS->getType());
6557 APInt MaxValue = APInt::getSignedMaxValue(BitWidth);
6566 APInt MaxValue = APInt::getMaxValue(BitWidth);
6581 unsigned BitWidth = getTypeSizeInBits(RHS->getType());
6586 APInt MinValue = APInt::getSignedMinValue(BitWidth);
6595 APInt MinValue = APInt::getMinValue(BitWidth);
6666 unsigned BitWidth = getTypeSizeInBits(LHS->getType());
6667 APInt Limit = IsSigned ? APInt::getSignedMaxValue(BitWidth) - (MinStride - 1)
6668 : APInt::getMaxValue(BitWidth) - (MinStride - 1);
6737 unsigned BitWidth = getTypeSizeInBits(LHS->getType());
6738 APInt Limit = IsSigned ? APInt::getSignedMinValue(BitWidth) + (MinStride - 1)
6739 : APInt::getMinValue(BitWidth) + (MinStride - 1);
6799 unsigned BitWidth = SE.getTypeSizeInBits(getType());
6800 if (!Range.contains(APInt(BitWidth, 0)))
6811 APInt One(BitWidth,1);