Home | History | Annotate | Download | only in Analysis

Lines Matching full:bitwidth

938   // Suppose, W is the bitwidth of the return value.  We must be prepared for
1153 unsigned BitWidth = SE->getTypeSizeInBits(Step->getType());
1156 return SE->getConstant(APInt::getSignedMinValue(BitWidth) -
1161 return SE->getConstant(APInt::getSignedMaxValue(BitWidth) -
1173 unsigned BitWidth = SE->getTypeSizeInBits(Step->getType());
1176 return SE->getConstant(APInt::getMinValue(BitWidth) -
1285 unsigned BitWidth = SE->getTypeSizeInBits(AR->getType());
1286 Type *WideTy = IntegerType::get(SE->getContext(), BitWidth * 2);
1450 unsigned BitWidth = getTypeSizeInBits(AR->getType());
1480 Type *WideTy = IntegerType::get(getContext(), BitWidth * 2);
1521 const SCEV *N = getConstant(APInt::getMinValue(BitWidth) -
1535 const SCEV *N = getConstant(APInt::getMaxValue(BitWidth) -
1663 unsigned BitWidth = getTypeSizeInBits(AR->getType());
1693 Type *WideTy = IntegerType::get(getContext(), BitWidth * 2);
2134 uint64_t BitWidth = getTypeSizeInBits(Ty);
2137 APInt AccumulatedConstant(BitWidth, 0);
2140 APInt(BitWidth, 1), *this)) {
3263 /// getEffectiveSCEVType - Return a type with the same bitwidth as
4105 /// it returns 2. If S is guaranteed to be 0, it returns the bitwidth of S.
4138 uint32_t BitWidth = getTypeSizeInBits(M->getType());
4140 SumOpRes != BitWidth && i != e; ++i)
4142 BitWidth);
4172 unsigned BitWidth = getTypeSizeInBits(U->getType());
4173 APInt Zeros(BitWidth, 0), Ones(BitWidth, 0);
4212 unsigned BitWidth = getTypeSizeInBits(S->getType());
4213 ConstantRange ConservativeResult(BitWidth, /*isFullSet=*/true);
4221 ConstantRange(APInt::getMinValue(BitWidth),
4222 APInt::getMaxValue(BitWidth).lshr(TZ).shl(TZ) + 1);
4225 APInt::getSignedMinValue(BitWidth),
4226 APInt::getSignedMaxValue(BitWidth).ashr(TZ).shl(TZ) + 1);
4267 ConservativeResult.intersectWith(X.zeroExtend(BitWidth)));
4273 ConservativeResult.intersectWith(X.signExtend(BitWidth)));
4279 ConservativeResult.intersectWith(X.truncate(BitWidth)));
4289 ConstantRange(C->getAPInt(), APInt(BitWidth, 0)));
4302 ConstantRange(APInt(BitWidth, 0),
4303 APInt::getSignedMinValue(BitWidth)));
4306 ConstantRange(APInt::getSignedMinValue(BitWidth),
4307 APInt(BitWidth, 1)));
4315 getTypeSizeInBits(MaxBECount->getType()) <= BitWidth) {
4324 MaxBECountRange.zextOrTrunc(BitWidth * 2 + 1);
4329 ConstantRange SExtStepSRange = StepSRange.sextOrTrunc(BitWidth * 2 + 1);
4337 StartURange.zextOrTrunc(BitWidth * 2 + 1);
4338 ConstantRange ZExtEndURange = EndURange.zextOrTrunc(BitWidth * 2 + 1);
4359 StartSRange.sextOrTrunc(BitWidth * 2 + 1);
4360 ConstantRange SExtEndSRange = EndSRange.sextOrTrunc(BitWidth * 2 + 1);
4390 APInt Zeros(BitWidth, 0), Ones(BitWidth, 0);
4401 ConstantRange(APInt::getSignedMinValue(BitWidth).ashr(NS - 1),
4402 APInt::getSignedMaxValue(BitWidth).ashr(NS - 1) + 1));
4593 unsigned BitWidth = A.getBitWidth();
4594 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
4599 APInt::getLowBitsSet(BitWidth, BitWidth - LZ - TZ).shl(TZ);
4602 ConstantInt::get(getContext(), APInt::getOneBitSet(BitWidth, TZ)));
4607 IntegerType::get(getContext(), BitWidth - LZ - TZ)),
4687 uint32_t BitWidth = cast<IntegerType>(U->getType())->getBitWidth();
4689 // If the shift count is not less than the bitwidth, the result of
4693 if (SA->getValue().uge(BitWidth))
4697 // shift by BitWidth - 1, so we avoid applying flags in that
4703 if (SA->getValue().ult(BitWidth - 1)) Flags = getNoWrapFlagsFromUB(U);
4706 APInt::getOneBitSet(BitWidth, SA->getZExtValue()));
4714 uint32_t BitWidth = cast<IntegerType>(U->getType())->getBitWidth();
4716 // If the shift count is not less than the bitwidth, the result of
4720 if (SA->getValue().uge(BitWidth))
4724 APInt::getOneBitSet(BitWidth, SA->getZExtValue()));
4735 uint64_t BitWidth = getTypeSizeInBits(U->getType());
4737 // If the shift count is not less than the bitwidth, the result of
4741 if (CI->getValue().uge(BitWidth))
4744 uint64_t Amt = BitWidth - CI->getZExtValue();
4745 if (Amt == BitWidth)
5744 // bitwidth(K) iterations.
5762 // stabilize to 0 in at most bitwidth(K) iterations.
5773 unsigned BitWidth = getTypeSizeInBits(RHS->getType());
5775 getConstant(getEffectiveSCEVType(RHS->getType()), BitWidth);
6494 uint32_t BitWidth = LC->getAPInt().getBitWidth();
6498 APInt Two(BitWidth, 2);
6499 APInt Four(BitWidth, 4);
8131 unsigned BitWidth = getTypeSizeInBits(RHS->getType());
8136 APInt MaxValue = APInt::getSignedMaxValue(BitWidth);
8145 APInt MaxValue = APInt::getMaxValue(BitWidth);
8160 unsigned BitWidth = getTypeSizeInBits(RHS->getType());
8165 APInt MinValue = APInt::getSignedMinValue(BitWidth);
8174 APInt MinValue = APInt::getMinValue(BitWidth);
8255 unsigned BitWidth = getTypeSizeInBits(LHS->getType());
8256 APInt Limit = IsSigned ? APInt::getSignedMaxValue(BitWidth) - (MinStride - 1)
8257 : APInt::getMaxValue(BitWidth) - (MinStride - 1);
8336 unsigned BitWidth = getTypeSizeInBits(LHS->getType());
8337 APInt Limit = IsSigned ? APInt::getSignedMinValue(BitWidth) + (MinStride - 1)
8338 : APInt::getMinValue(BitWidth) + (MinStride - 1);
8395 unsigned BitWidth = SE.getTypeSizeInBits(getType());
8396 if (!Range.contains(APInt(BitWidth, 0)))
8407 APInt One(BitWidth,1);