Lines Matching refs:APInt
37 const APInt &Demanded) { in ShrinkDemandedConstant()
43 const APInt *C; in ShrinkDemandedConstant()
70 APInt DemandedMask(APInt::getAllOnes(Known.getBitWidth())); in SimplifyDemandedInstructionBits()
90 const APInt &DemandedMask, in SimplifyDemandedBits()
126 Value *InstCombinerImpl::SimplifyDemandedUseBits(Value *V, APInt DemandedMask, in SimplifyDemandedUseBits()
187 auto simplifyOperandsBasedOnUnusedHighBits = [&](APInt &DemandedFromOps) { in SimplifyDemandedUseBits()
191 DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyDemandedUseBits()
339 const APInt *C; in SimplifyDemandedUseBits()
361 APInt NewMask = ~(LHSKnown.One & RHSKnown.One & DemandedMask); in SimplifyDemandedUseBits()
387 const APInt &DemandedMask) { in SimplifyDemandedUseBits()
388 const APInt *SelC; in SimplifyDemandedUseBits()
397 const APInt *CmpC; in SimplifyDemandedUseBits()
426 const APInt *C; in SimplifyDemandedUseBits()
444 APInt InputDemandedMask = DemandedMask.zextOrTrunc(SrcBitWidth); in SimplifyDemandedUseBits()
465 APInt InputDemandedBits = DemandedMask.trunc(SrcBitWidth); in SimplifyDemandedUseBits()
533 APInt DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyDemandedUseBits()
542 APInt DemandedFromLHS = DemandedFromOps; in SimplifyDemandedUseBits()
557 const APInt *C; in SimplifyDemandedUseBits()
575 APInt DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyDemandedUseBits()
584 APInt DemandedFromLHS = DemandedFromOps; in SimplifyDemandedUseBits()
605 APInt DemandedFromOps; in SimplifyDemandedUseBits()
614 const APInt *C; in SimplifyDemandedUseBits()
634 const APInt *SA; in SimplifyDemandedUseBits()
636 const APInt *ShrAmt; in SimplifyDemandedUseBits()
665 APInt DemandedMaskIn(DemandedMask.lshr(ShiftAmt)); in SimplifyDemandedUseBits()
679 KnownBits::makeConstant(APInt(BitWidth, ShiftAmt)), in SimplifyDemandedUseBits()
687 APInt DemandedFromOp(APInt::getLowBitsSet(BitWidth, BitWidth - CTLZ)); in SimplifyDemandedUseBits()
699 const APInt *SA; in SimplifyDemandedUseBits()
733 APInt DemandedMaskIn(DemandedMask.shl(ShiftAmt)); in SimplifyDemandedUseBits()
769 const APInt *SA; in SimplifyDemandedUseBits()
774 APInt DemandedMaskIn(DemandedMask.shl(ShiftAmt)); in SimplifyDemandedUseBits()
788 APInt HighBits(APInt::getHighBitsSet( in SimplifyDemandedUseBits()
816 const APInt *SA; in SimplifyDemandedUseBits()
820 APInt DemandedMaskIn = in SimplifyDemandedUseBits()
821 APInt::getHighBitsSet(BitWidth, BitWidth - RHSTrailingZeros); in SimplifyDemandedUseBits()
837 const APInt *Rem; in SimplifyDemandedUseBits()
843 APInt RA = Rem->abs(); in SimplifyDemandedUseBits()
848 APInt LowBits = RA - 1; in SimplifyDemandedUseBits()
849 APInt Mask2 = LowBits | APInt::getSignMask(BitWidth); in SimplifyDemandedUseBits()
876 APInt AllOnes = APInt::getAllOnes(BitWidth); in SimplifyDemandedUseBits()
977 const APInt *SA; in SimplifyDemandedUseBits()
987 APInt DemandedMaskLHS(DemandedMask.lshr(ShiftAmt)); in SimplifyDemandedUseBits()
988 APInt DemandedMaskRHS(DemandedMask.shl(BitWidth - ShiftAmt)); in SimplifyDemandedUseBits()
1023 const APInt *C; in SimplifyDemandedUseBits()
1035 const APInt *C; in SimplifyDemandedUseBits()
1089 Instruction *I, const APInt &DemandedMask, KnownBits &Known, unsigned Depth, in SimplifyMultipleUseDemandedBits()
1170 APInt DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyMultipleUseDemandedBits()
1189 APInt DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyMultipleUseDemandedBits()
1216 const APInt *ShiftRC; in SimplifyMultipleUseDemandedBits()
1217 const APInt *ShiftLC; in SimplifyMultipleUseDemandedBits()
1223 DemandedMask.isSubsetOf(APInt::getLowBitsSet( in SimplifyMultipleUseDemandedBits()
1263 Instruction *Shr, const APInt &ShrOp1, Instruction *Shl, in simplifyShrShlDemandedBits()
1264 const APInt &ShlOp1, const APInt &DemandedMask, KnownBits &Known) { in simplifyShrShlDemandedBits()
1281 APInt BitMask1(APInt::getAllOnes(BitWidth)); in simplifyShrShlDemandedBits()
1282 APInt BitMask2(APInt::getAllOnes(BitWidth)); in simplifyShrShlDemandedBits()
1338 APInt DemandedElts, in SimplifyDemandedVectorElts()
1339 APInt &PoisonElts, in SimplifyDemandedVectorElts()
1348 APInt EltMask(APInt::getAllOnes(VWidth)); in SimplifyDemandedVectorElts()
1419 APInt Demanded, APInt &Undef) { in SimplifyDemandedVectorElts()
1428 APInt PoisonElts2(VWidth, 0); in SimplifyDemandedVectorElts()
1429 APInt PoisonElts3(VWidth, 0); in SimplifyDemandedVectorElts()
1459 APInt PoisonEltsOp(VWidth, 0); in SimplifyDemandedVectorElts()
1485 APInt PreInsertDemandedElts = DemandedElts; in SimplifyDemandedVectorElts()
1530 APInt LeftDemanded(OpWidth, 1); in SimplifyDemandedVectorElts()
1531 APInt LHSPoisonElts(OpWidth, 0); in SimplifyDemandedVectorElts()
1540 APInt LeftDemanded(OpWidth, 0), RightDemanded(OpWidth, 0); in SimplifyDemandedVectorElts()
1555 APInt LHSPoisonElts(OpWidth, 0); in SimplifyDemandedVectorElts()
1558 APInt RHSPoisonElts(OpWidth, 0); in SimplifyDemandedVectorElts()
1680 APInt DemandedLHS(DemandedElts), DemandedRHS(DemandedElts); in SimplifyDemandedVectorElts()
1711 APInt InputDemandedElts(InVWidth, 0); in SimplifyDemandedVectorElts()
1712 PoisonElts2 = APInt(InVWidth, 0); in SimplifyDemandedVectorElts()
1757 APInt SubUndef = PoisonElts2.lshr(OutIdx * Ratio).zextOrTrunc(Ratio); in SimplifyDemandedVectorElts()
1780 APInt DemandedPtrs(APInt::getAllOnes(VWidth)), in SimplifyDemandedVectorElts()