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()
158 const APInt &DemandedMask, in SimplifyDemandedUseBits()
189 auto simplifyOperandsBasedOnUnusedHighBits = [&](APInt &DemandedFromOps) { in SimplifyDemandedUseBits()
193 DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyDemandedUseBits()
334 const APInt *C; in SimplifyDemandedUseBits()
356 APInt NewMask = ~(LHSKnown.One & RHSKnown.One & DemandedMask); in SimplifyDemandedUseBits()
380 const APInt &DemandedMask) { in SimplifyDemandedUseBits()
381 const APInt *SelC; in SimplifyDemandedUseBits()
390 const APInt *CmpC; in SimplifyDemandedUseBits()
423 const APInt *C; in SimplifyDemandedUseBits()
441 APInt InputDemandedMask = DemandedMask.zextOrTrunc(SrcBitWidth); in SimplifyDemandedUseBits()
462 APInt InputDemandedBits = DemandedMask.trunc(SrcBitWidth); in SimplifyDemandedUseBits()
529 APInt DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyDemandedUseBits()
538 APInt DemandedFromLHS = DemandedFromOps; in SimplifyDemandedUseBits()
553 const APInt *C; in SimplifyDemandedUseBits()
572 APInt DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyDemandedUseBits()
581 APInt DemandedFromLHS = DemandedFromOps; in SimplifyDemandedUseBits()
603 APInt DemandedFromOps; in SimplifyDemandedUseBits()
612 const APInt *C; in SimplifyDemandedUseBits()
632 const APInt *SA; in SimplifyDemandedUseBits()
634 const APInt *ShrAmt; in SimplifyDemandedUseBits()
686 APInt DemandedMaskIn(DemandedMask.lshr(ShiftAmt)); in SimplifyDemandedUseBits()
699 KnownBits::makeConstant(APInt(BitWidth, ShiftAmt)), in SimplifyDemandedUseBits()
707 APInt DemandedFromOp(APInt::getLowBitsSet(BitWidth, BitWidth - CTLZ)); in SimplifyDemandedUseBits()
719 const APInt *SA; in SimplifyDemandedUseBits()
768 APInt DemandedMaskIn(DemandedMask.shl(ShiftAmt)); in SimplifyDemandedUseBits()
803 const APInt *SA; in SimplifyDemandedUseBits()
808 APInt DemandedMaskIn(DemandedMask.shl(ShiftAmt)); in SimplifyDemandedUseBits()
831 Known, KnownBits::makeConstant(APInt(BitWidth, ShiftAmt)), in SimplifyDemandedUseBits()
840 const APInt *SA; in SimplifyDemandedUseBits()
844 APInt DemandedMaskIn = in SimplifyDemandedUseBits()
845 APInt::getHighBitsSet(BitWidth, BitWidth - RHSTrailingZeros); in SimplifyDemandedUseBits()
861 const APInt *Rem; in SimplifyDemandedUseBits()
867 APInt RA = Rem->abs(); in SimplifyDemandedUseBits()
872 APInt LowBits = RA - 1; in SimplifyDemandedUseBits()
873 APInt Mask2 = LowBits | APInt::getSignMask(BitWidth); in SimplifyDemandedUseBits()
1027 const APInt *SA; in SimplifyDemandedUseBits()
1037 APInt DemandedMaskLHS(DemandedMask.lshr(ShiftAmt)); in SimplifyDemandedUseBits()
1038 APInt DemandedMaskRHS(DemandedMask.shl(BitWidth - ShiftAmt)); in SimplifyDemandedUseBits()
1074 const APInt *C; in SimplifyDemandedUseBits()
1086 const APInt *C; in SimplifyDemandedUseBits()
1141 Instruction *I, const APInt &DemandedMask, KnownBits &Known, unsigned Depth, in SimplifyMultipleUseDemandedBits()
1222 APInt DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyMultipleUseDemandedBits()
1243 APInt DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyMultipleUseDemandedBits()
1272 const APInt *ShiftRC; in SimplifyMultipleUseDemandedBits()
1273 const APInt *ShiftLC; in SimplifyMultipleUseDemandedBits()
1279 DemandedMask.isSubsetOf(APInt::getLowBitsSet( in SimplifyMultipleUseDemandedBits()
1319 Instruction *Shr, const APInt &ShrOp1, Instruction *Shl, in simplifyShrShlDemandedBits()
1320 const APInt &ShlOp1, const APInt &DemandedMask, KnownBits &Known) { in simplifyShrShlDemandedBits()
1337 APInt BitMask1(APInt::getAllOnes(BitWidth)); in simplifyShrShlDemandedBits()
1338 APInt BitMask2(APInt::getAllOnes(BitWidth)); in simplifyShrShlDemandedBits()
1394 APInt DemandedElts, in SimplifyDemandedVectorElts()
1395 APInt &PoisonElts, in SimplifyDemandedVectorElts()
1404 APInt EltMask(APInt::getAllOnes(VWidth)); in SimplifyDemandedVectorElts()
1475 APInt Demanded, APInt &Undef) { in SimplifyDemandedVectorElts()
1484 APInt PoisonElts2(VWidth, 0); in SimplifyDemandedVectorElts()
1485 APInt PoisonElts3(VWidth, 0); in SimplifyDemandedVectorElts()
1515 APInt PoisonEltsOp(VWidth, 0); in SimplifyDemandedVectorElts()
1541 APInt PreInsertDemandedElts = DemandedElts; in SimplifyDemandedVectorElts()
1586 APInt LeftDemanded(OpWidth, 1); in SimplifyDemandedVectorElts()
1587 APInt LHSPoisonElts(OpWidth, 0); in SimplifyDemandedVectorElts()
1596 APInt LeftDemanded(OpWidth, 0), RightDemanded(OpWidth, 0); in SimplifyDemandedVectorElts()
1611 APInt LHSPoisonElts(OpWidth, 0); in SimplifyDemandedVectorElts()
1614 APInt RHSPoisonElts(OpWidth, 0); in SimplifyDemandedVectorElts()
1736 APInt DemandedLHS(DemandedElts), DemandedRHS(DemandedElts); in SimplifyDemandedVectorElts()
1767 APInt InputDemandedElts(InVWidth, 0); in SimplifyDemandedVectorElts()
1768 PoisonElts2 = APInt(InVWidth, 0); in SimplifyDemandedVectorElts()
1813 APInt SubUndef = PoisonElts2.lshr(OutIdx * Ratio).zextOrTrunc(Ratio); in SimplifyDemandedVectorElts()
1836 APInt DemandedPtrs(APInt::getAllOnes(VWidth)), in SimplifyDemandedVectorElts()