Lines Matching refs:APInt
29 APInt Demanded) { in ShrinkDemandedConstant()
55 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in SimplifyDemandedInstructionBits()
56 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); in SimplifyDemandedInstructionBits()
69 bool InstCombiner::SimplifyDemandedBits(Use &U, const APInt &DemandedMask, in SimplifyDemandedBits()
70 APInt &KnownZero, APInt &KnownOne, in SimplifyDemandedBits()
103 Value *InstCombiner::SimplifyDemandedUseBits(Value *V, APInt DemandedMask, in SimplifyDemandedUseBits()
104 APInt &KnownZero, APInt &KnownOne, in SimplifyDemandedUseBits()
141 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0); in SimplifyDemandedUseBits()
142 APInt RHSKnownZero(BitWidth, 0), RHSKnownOne(BitWidth, 0); in SimplifyDemandedUseBits()
234 DemandedMask = APInt::getAllOnesValue(BitWidth); in SimplifyDemandedUseBits()
331 APInt IKnownZero = (RHSKnownZero & LHSKnownZero) | in SimplifyDemandedUseBits()
334 APInt IKnownOne = (RHSKnownZero & LHSKnownOne) | in SimplifyDemandedUseBits()
389 APInt NewMask = ~(LHSKnownOne & RHSKnownOne & DemandedMask); in SimplifyDemandedUseBits()
483 KnownZero |= APInt::getHighBitsSet(BitWidth, BitWidth - SrcBitWidth); in SimplifyDemandedUseBits()
490 APInt InputDemandedBits = DemandedMask & in SimplifyDemandedUseBits()
491 APInt::getLowBitsSet(BitWidth, SrcBitWidth); in SimplifyDemandedUseBits()
493 APInt NewBits(APInt::getHighBitsSet(BitWidth, BitWidth - SrcBitWidth)); in SimplifyDemandedUseBits()
532 APInt DemandedFromOps(APInt::getLowBitsSet(BitWidth, BitWidth-NLZ)); in SimplifyDemandedUseBits()
567 APInt DemandedMaskIn(DemandedMask.lshr(ShiftAmt)); in SimplifyDemandedUseBits()
572 DemandedMaskIn |= APInt::getHighBitsSet(BitWidth, ShiftAmt+1); in SimplifyDemandedUseBits()
574 DemandedMaskIn |= APInt::getHighBitsSet(BitWidth, ShiftAmt); in SimplifyDemandedUseBits()
584 KnownZero |= APInt::getLowBitsSet(BitWidth, ShiftAmt); in SimplifyDemandedUseBits()
593 APInt DemandedMaskIn(DemandedMask.shl(ShiftAmt)); in SimplifyDemandedUseBits()
598 DemandedMaskIn |= APInt::getLowBitsSet(BitWidth, ShiftAmt); in SimplifyDemandedUseBits()
608 APInt HighBits(APInt::getHighBitsSet(BitWidth, ShiftAmt)); in SimplifyDemandedUseBits()
634 APInt DemandedMaskIn(DemandedMask.shl(ShiftAmt)); in SimplifyDemandedUseBits()
643 DemandedMaskIn |= APInt::getLowBitsSet(BitWidth, ShiftAmt); in SimplifyDemandedUseBits()
650 APInt HighBits(APInt::getHighBitsSet(BitWidth, ShiftAmt)); in SimplifyDemandedUseBits()
655 APInt SignBit(APInt::getSignBit(BitWidth)); in SimplifyDemandedUseBits()
679 APInt RA = Rem->getValue().abs(); in SimplifyDemandedUseBits()
684 APInt LowBits = RA - 1; in SimplifyDemandedUseBits()
685 APInt Mask2 = LowBits | APInt::getSignBit(BitWidth); in SimplifyDemandedUseBits()
711 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0); in SimplifyDemandedUseBits()
720 APInt KnownZero2(BitWidth, 0), KnownOne2(BitWidth, 0); in SimplifyDemandedUseBits()
721 APInt AllOnes = APInt::getAllOnesValue(BitWidth); in SimplifyDemandedUseBits()
731 KnownZero = APInt::getHighBitsSet(BitWidth, Leaders) & DemandedMask; in SimplifyDemandedUseBits()
790 APInt DemandedElts = DemandedMask.zextOrTrunc(ArgWidth); in SimplifyDemandedUseBits()
795 KnownZero = APInt::getHighBitsSet(BitWidth, BitWidth - ArgWidth); in SimplifyDemandedUseBits()
799 KnownZero = APInt::getHighBitsSet(64, 32); in SimplifyDemandedUseBits()
833 const APInt &DemandedMask, in SimplifyShrShlDemandedBits()
834 APInt &KnownZero, in SimplifyShrShlDemandedBits()
835 APInt &KnownOne) { in SimplifyShrShlDemandedBits()
837 const APInt &ShlOp1 = cast<ConstantInt>(Shl->getOperand(1))->getValue(); in SimplifyShrShlDemandedBits()
838 const APInt &ShrOp1 = cast<ConstantInt>(Shr->getOperand(1))->getValue(); in SimplifyShrShlDemandedBits()
852 KnownZero = APInt::getBitsSet(KnownZero.getBitWidth(), 0, ShlAmt-1); in SimplifyShrShlDemandedBits()
855 APInt BitMask1(APInt::getAllOnesValue(BitWidth)); in SimplifyShrShlDemandedBits()
856 APInt BitMask2(APInt::getAllOnesValue(BitWidth)); in SimplifyShrShlDemandedBits()
906 Value *InstCombiner::SimplifyDemandedVectorElts(Value *V, APInt DemandedElts, in SimplifyDemandedVectorElts()
907 APInt &UndefElts, in SimplifyDemandedVectorElts()
910 APInt EltMask(APInt::getAllOnesValue(VWidth)); in SimplifyDemandedVectorElts()
983 APInt UndefElts2(VWidth, 0); in SimplifyDemandedVectorElts()
1011 APInt DemandedElts2 = DemandedElts; in SimplifyDemandedVectorElts()
1025 APInt LeftDemanded(LHSVWidth, 0), RightDemanded(LHSVWidth, 0); in SimplifyDemandedVectorElts()
1040 APInt UndefElts4(LHSVWidth, 0); in SimplifyDemandedVectorElts()
1045 APInt UndefElts3(LHSVWidth, 0); in SimplifyDemandedVectorElts()
1087 APInt LeftDemanded(DemandedElts), RightDemanded(DemandedElts); in SimplifyDemandedVectorElts()
1120 APInt InputDemandedElts(InVWidth, 0); in SimplifyDemandedVectorElts()
1121 UndefElts2 = APInt(InVWidth, 0); in SimplifyDemandedVectorElts()
1172 APInt SubUndef = UndefElts2.lshr(OutIdx * Ratio).zextOrTrunc(Ratio); in SimplifyDemandedVectorElts()
1326 UndefElts |= APInt::getHighBitsSet(VWidth, VWidth / 2); in SimplifyDemandedVectorElts()