Lines Matching refs:BitWidth

939       unsigned BitWidth = getTypeSizeInBits(AR->getType());
969 Type *WideTy = IntegerType::get(getContext(), BitWidth * 2);
1010 const SCEV *N = getConstant(APInt::getMinValue(BitWidth) -
1024 const SCEV *N = getConstant(APInt::getMaxValue(BitWidth) -
1057 unsigned BitWidth = SE->getTypeSizeInBits(Step->getType());
1060 return SE->getConstant(APInt::getSignedMinValue(BitWidth) -
1065 return SE->getConstant(APInt::getSignedMaxValue(BitWidth) -
1113 unsigned BitWidth = SE->getTypeSizeInBits(AR->getType());
1114 Type *WideTy = IntegerType::get(SE->getContext(), BitWidth * 2);
1205 unsigned BitWidth = getTypeSizeInBits(AR->getType());
1235 Type *WideTy = IntegerType::get(getContext(), BitWidth * 2);
1614 uint64_t BitWidth = getTypeSizeInBits(Ty);
1617 APInt AccumulatedConstant(BitWidth, 0);
1620 APInt(BitWidth, 1), *this)) {
3220 uint32_t BitWidth = getTypeSizeInBits(M->getType());
3222 SumOpRes != BitWidth && i != e; ++i)
3224 BitWidth);
3254 unsigned BitWidth = getTypeSizeInBits(U->getType());
3255 APInt Zeros(BitWidth, 0), Ones(BitWidth, 0);
3276 unsigned BitWidth = getTypeSizeInBits(S->getType());
3277 ConstantRange ConservativeResult(BitWidth, /*isFullSet=*/true);
3284 ConstantRange(APInt::getMinValue(BitWidth),
3285 APInt::getMaxValue(BitWidth).lshr(TZ).shl(TZ) + 1);
3324 ConservativeResult.intersectWith(X.zeroExtend(BitWidth)));
3330 ConservativeResult.intersectWith(X.signExtend(BitWidth)));
3336 ConservativeResult.intersectWith(X.truncate(BitWidth)));
3347 ConstantRange(C->getValue()->getValue(), APInt(BitWidth, 0)));
3354 getTypeSizeInBits(MaxBECount->getType()) <= BitWidth) {
3369 ConstantRange ExtStartRange = StartRange.zextOrTrunc(BitWidth*2+1);
3370 ConstantRange ExtStepRange = StepRange.sextOrTrunc(BitWidth*2+1);
3372 MaxBECountRange.zextOrTrunc(BitWidth*2+1);
3373 ConstantRange ExtEndRange = EndRange.zextOrTrunc(BitWidth*2+1);
3394 APInt Zeros(BitWidth, 0), Ones(BitWidth, 0);
3417 unsigned BitWidth = getTypeSizeInBits(S->getType());
3418 ConstantRange ConservativeResult(BitWidth, /*isFullSet=*/true);
3425 ConstantRange(APInt::getSignedMinValue(BitWidth),
3426 APInt::getSignedMaxValue(BitWidth).ashr(TZ).shl(TZ) + 1);
3465 ConservativeResult.intersectWith(X.zeroExtend(BitWidth)));
3471 ConservativeResult.intersectWith(X.signExtend(BitWidth)));
3477 ConservativeResult.intersectWith(X.truncate(BitWidth)));
3492 ConstantRange(APInt(BitWidth, 0),
3493 APInt::getSignedMinValue(BitWidth)));
3496 ConstantRange(APInt::getSignedMinValue(BitWidth),
3497 APInt(BitWidth, 1)));
3505 getTypeSizeInBits(MaxBECount->getType()) <= BitWidth) {
3520 ConstantRange ExtStartRange = StartRange.sextOrTrunc(BitWidth*2+1);
3521 ConstantRange ExtStepRange = StepRange.sextOrTrunc(BitWidth*2+1);
3523 MaxBECountRange.zextOrTrunc(BitWidth*2+1);
3524 ConstantRange ExtEndRange = EndRange.sextOrTrunc(BitWidth*2+1);
3551 ConstantRange(APInt::getSignedMinValue(BitWidth).ashr(NS - 1),
3552 APInt::getSignedMaxValue(BitWidth).ashr(NS - 1)+1)));
3651 unsigned BitWidth = A.getBitWidth();
3652 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
3655 APInt EffectiveMask = APInt::getLowBitsSet(BitWidth, BitWidth - LZ);
3660 IntegerType::get(getContext(), BitWidth - LZ)),
3738 uint32_t BitWidth = cast<IntegerType>(U->getType())->getBitWidth();
3744 if (SA->getValue().uge(BitWidth))
3748 APInt(BitWidth, 1).shl(SA->getZExtValue()));
3756 uint32_t BitWidth = cast<IntegerType>(U->getType())->getBitWidth();
3762 if (SA->getValue().uge(BitWidth))
3766 APInt(BitWidth, 1).shl(SA->getZExtValue()));
3777 uint64_t BitWidth = getTypeSizeInBits(U->getType());
3783 if (CI->getValue().uge(BitWidth))
3786 uint64_t Amt = BitWidth - CI->getZExtValue();
3787 if (Amt == BitWidth)
5352 uint32_t BitWidth = LC->getValue()->getValue().getBitWidth();
5356 APInt Two(BitWidth, 2);
5357 APInt Four(BitWidth, 4);
6306 unsigned BitWidth = getTypeSizeInBits(AddRec->getType());
6323 APInt Max = APInt::getSignedMaxValue(BitWidth);
6328 APInt Max = APInt::getMaxValue(BitWidth);
6375 getMinusSCEV(getConstant(APInt::getSignedMaxValue(BitWidth)),
6378 getMinusSCEV(getConstant(APInt::getMaxValue(BitWidth)),
6441 unsigned BitWidth = SE.getTypeSizeInBits(getType());
6442 if (!Range.contains(APInt(BitWidth, 0)))
6453 APInt One(BitWidth,1);