Lines Matching full:bitwidth
280 unsigned BitWidth = VT->getElementType()->getPrimitiveSizeInBits();
281 assert((64 % BitWidth) == 0 && "Unexpected packed shift size");
282 unsigned NumSubElts = 64 / BitWidth;
288 Count = Count.shl(BitWidth);
299 unsigned BitWidth = SVT->getPrimitiveSizeInBits();
305 // Handle cases when Shift >= BitWidth.
306 if (Count.uge(BitWidth)) {
311 // If ArithmeticShift - clamp Shift to (BitWidth - 1).
312 Count = APInt(64, BitWidth - 1);
316 auto ShiftAmt = ConstantInt::get(SVT, Count.zextOrTrunc(BitWidth));
370 int BitWidth = SVT->getIntegerBitWidth();
373 // We also collect special cases: UNDEF = -1, OUT-OF-RANGE = BitWidth.
388 // If LogicalShift - set to BitWidth (special case).
389 // If ArithmeticShift - set to (BitWidth - 1) (sign splat).
391 if (ShiftVal.uge(BitWidth)) {
393 ShiftAmts.push_back(LogicalShift ? BitWidth : BitWidth - 1);
402 auto OutOfRange = [&](int Idx) { return (Idx < 0) || (BitWidth <= Idx); };
1406 uint32_t BitWidth = IT->getBitWidth();
1407 APInt KnownZero(BitWidth, 0);
1408 APInt KnownOne(BitWidth, 0);
1411 APInt Mask(APInt::getLowBitsSet(BitWidth, TrailingZeros));
1414 APInt(BitWidth, TrailingZeros)));
1424 uint32_t BitWidth = IT->getBitWidth();
1425 APInt KnownZero(BitWidth, 0);
1426 APInt KnownOne(BitWidth, 0);
1429 APInt Mask(APInt::getHighBitsSet(BitWidth, LeadingZeros));
1432 APInt(BitWidth, LeadingZeros)));