Lines Matching refs:BitWidth
321 unsigned BitWidth, in ShrinkDemandedOp() argument
337 unsigned DemandedSize = BitWidth - Demanded.countLeadingZeros(); in ShrinkDemandedOp()
341 for (; SmallVTBits < BitWidth; SmallVTBits = NextPowerOf2(SmallVTBits)) { in ShrinkDemandedOp()
373 unsigned BitWidth = DemandedMask.getBitWidth(); in SimplifyDemandedBits() local
374 assert(Op.getValueType().getScalarType().getSizeInBits() == BitWidth && in SimplifyDemandedBits()
380 KnownZero = KnownOne = APInt(BitWidth, 0); in SimplifyDemandedBits()
392 NewMask = APInt::getAllOnesValue(BitWidth); in SimplifyDemandedBits()
449 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl)) in SimplifyDemandedBits()
483 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl)) in SimplifyDemandedBits()
508 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl)) in SimplifyDemandedBits()
603 if (ShAmt >= BitWidth) in SimplifyDemandedBits()
611 if (ShAmt && (NewMask & APInt::getLowBitsSet(BitWidth, ShAmt)) == 0) { in SimplifyDemandedBits()
641 if (!APInt(BitWidth, ShAmt).isIntN(ShTy.getSizeInBits())) in SimplifyDemandedBits()
681 KnownZero |= APInt::getLowBitsSet(BitWidth, SA->getZExtValue()); in SimplifyDemandedBits()
692 if (ShAmt >= BitWidth) in SimplifyDemandedBits()
724 APInt HighBits = APInt::getHighBitsSet(BitWidth, ShAmt); in SimplifyDemandedBits()
743 if (ShAmt >= BitWidth) in SimplifyDemandedBits()
750 APInt HighBits = APInt::getHighBitsSet(BitWidth, ShAmt); in SimplifyDemandedBits()
762 APInt SignBit = APInt::getSignBit(BitWidth).lshr(ShAmt); in SimplifyDemandedBits()
775 TLO.DAG.getConstant(BitWidth - 1 - Log2, in SimplifyDemandedBits()
789 APInt MsbMask = APInt::getHighBitsSet(BitWidth, 1); in SimplifyDemandedBits()
801 SDValue ShiftAmt = TLO.DAG.getConstant(BitWidth - ShAmt, ShiftAmtTy); in SimplifyDemandedBits()
809 APInt::getHighBitsSet(BitWidth, in SimplifyDemandedBits()
810 BitWidth - ExVT.getScalarType().getSizeInBits()); in SimplifyDemandedBits()
817 APInt::getSignBit(ExVT.getScalarType().getSizeInBits()).zext(BitWidth); in SimplifyDemandedBits()
819 APInt::getLowBitsSet(BitWidth, in SimplifyDemandedBits()
856 APInt::getHighBitsSet(BitWidth, BitWidth - OperandBitWidth) & NewMask; in SimplifyDemandedBits()
866 KnownZero = KnownZero.zext(BitWidth); in SimplifyDemandedBits()
867 KnownOne = KnownOne.zext(BitWidth); in SimplifyDemandedBits()
874 APInt InMask = APInt::getLowBitsSet(BitWidth, InBits); in SimplifyDemandedBits()
875 APInt InSignBit = APInt::getBitsSet(BitWidth, InBits - 1, InBits); in SimplifyDemandedBits()
893 KnownZero = KnownZero.zext(BitWidth); in SimplifyDemandedBits()
894 KnownOne = KnownOne.zext(BitWidth); in SimplifyDemandedBits()
920 KnownZero = KnownZero.zext(BitWidth); in SimplifyDemandedBits()
921 KnownOne = KnownOne.zext(BitWidth); in SimplifyDemandedBits()
933 KnownZero = KnownZero.trunc(BitWidth); in SimplifyDemandedBits()
934 KnownOne = KnownOne.trunc(BitWidth); in SimplifyDemandedBits()
961 OperandBitWidth - BitWidth); in SimplifyDemandedBits()
962 HighBits = HighBits.lshr(ShAmt->getZExtValue()).trunc(BitWidth); in SimplifyDemandedBits()
964 if (ShAmt->getZExtValue() < BitWidth && !(HighBits & NewMask)) { in SimplifyDemandedBits()
986 APInt InMask = APInt::getLowBitsSet(BitWidth, in SimplifyDemandedBits()
1027 APInt LoMask = APInt::getLowBitsSet(BitWidth, in SimplifyDemandedBits()
1028 BitWidth - NewMask.countLeadingZeros()); in SimplifyDemandedBits()
1036 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl)) in SimplifyDemandedBits()
1111 unsigned BitWidth = OpVT.getScalarType().getSizeInBits(); in ValueHasExactlyOneBitSet() local
1114 return (KnownZero.countPopulation() == BitWidth - 1) && in ValueHasExactlyOneBitSet()
1398 unsigned BitWidth = N0.getValueSizeInBits(); in SimplifySetCC() local
1400 APInt::getHighBitsSet(BitWidth, in SimplifySetCC()
1401 BitWidth-1))) { in SimplifySetCC()