Lines Matching full:bitwidth
305 unsigned BitWidth,
321 unsigned DemandedSize = BitWidth - Demanded.countLeadingZeros();
325 for (; SmallVTBits < BitWidth; SmallVTBits = NextPowerOf2(SmallVTBits)) {
357 unsigned BitWidth = DemandedMask.getBitWidth();
358 assert(Op.getValueType().getScalarType().getSizeInBits() == BitWidth &&
364 KnownZero = KnownOne = APInt(BitWidth, 0);
376 NewMask = APInt::getAllOnesValue(BitWidth);
433 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl))
467 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl))
492 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl))
587 if (ShAmt >= BitWidth)
595 if (ShAmt && (NewMask & APInt::getLowBitsSet(BitWidth, ShAmt)) == 0) {
625 if (!APInt(BitWidth, ShAmt).isIntN(ShTy.getSizeInBits()))
640 KnownZero |= APInt::getLowBitsSet(BitWidth, SA->getZExtValue());
651 if (ShAmt >= BitWidth)
683 APInt HighBits = APInt::getHighBitsSet(BitWidth, ShAmt);
702 if (ShAmt >= BitWidth)
709 APInt HighBits = APInt::getHighBitsSet(BitWidth, ShAmt);
721 APInt SignBit = APInt::getSignBit(BitWidth).lshr(ShAmt);
737 APInt MsbMask = APInt::getHighBitsSet(BitWidth, 1);
749 SDValue ShiftAmt = TLO.DAG.getConstant(BitWidth - ShAmt, ShiftAmtTy);
757 APInt::getHighBitsSet(BitWidth,
758 BitWidth - ExVT.getScalarType().getSizeInBits());
765 APInt::getSignBit(ExVT.getScalarType().getSizeInBits()).zext(BitWidth);
767 APInt::getLowBitsSet(BitWidth,
804 APInt::getHighBitsSet(BitWidth, BitWidth - OperandBitWidth) & NewMask;
814 KnownZero = KnownZero.zext(BitWidth);
815 KnownOne = KnownOne.zext(BitWidth);
822 APInt InMask = APInt::getLowBitsSet(BitWidth, InBits);
823 APInt InSignBit = APInt::getBitsSet(BitWidth, InBits - 1, InBits);
841 KnownZero = KnownZero.zext(BitWidth);
842 KnownOne = KnownOne.zext(BitWidth);
868 KnownZero = KnownZero.zext(BitWidth);
869 KnownOne = KnownOne.zext(BitWidth);
881 KnownZero = KnownZero.trunc(BitWidth);
882 KnownOne = KnownOne.trunc(BitWidth);
909 OperandBitWidth - BitWidth);
910 HighBits = HighBits.lshr(ShAmt->getZExtValue()).trunc(BitWidth);
912 if (ShAmt->getZExtValue() < BitWidth && !(HighBits & NewMask)) {
934 APInt InMask = APInt::getLowBitsSet(BitWidth,
975 APInt LoMask = APInt::getLowBitsSet(BitWidth,
976 BitWidth - NewMask.countLeadingZeros());
984 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl))
1059 unsigned BitWidth = OpVT.getScalarType().getSizeInBits();
1062 return (KnownZero.countPopulation() == BitWidth - 1) &&
1336 unsigned BitWidth = N0.getValueSizeInBits();
1338 APInt::getHighBitsSet(BitWidth,
1339 BitWidth-1))) {