Lines Matching refs:APInt
31 const APInt &Demanded) { in ShrinkDemandedConstant()
37 const APInt *C; in ShrinkDemandedConstant()
58 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); in SimplifyDemandedInstructionBits()
72 const APInt &DemandedMask, in SimplifyDemandedBits()
108 Value *InstCombinerImpl::SimplifyDemandedUseBits(Value *V, APInt DemandedMask, in SimplifyDemandedUseBits()
276 const APInt *C; in SimplifyDemandedUseBits()
298 APInt NewMask = ~(LHSKnown.One & RHSKnown.One & DemandedMask); in SimplifyDemandedUseBits()
320 const APInt *C; in SimplifyDemandedUseBits()
329 const APInt *C; in SimplifyDemandedUseBits()
353 const APInt &DemandedMask) { in SimplifyDemandedUseBits()
354 const APInt *SelC; in SimplifyDemandedUseBits()
363 const APInt *CmpC; in SimplifyDemandedUseBits()
392 APInt InputDemandedMask = DemandedMask.zextOrTrunc(SrcBitWidth); in SimplifyDemandedUseBits()
427 APInt InputDemandedBits = DemandedMask.trunc(SrcBitWidth); in SimplifyDemandedUseBits()
497 APInt DemandedFromOps(APInt::getLowBitsSet(BitWidth, BitWidth-NLZ)); in SimplifyDemandedUseBits()
531 const APInt *SA; in SimplifyDemandedUseBits()
533 const APInt *ShrAmt; in SimplifyDemandedUseBits()
541 APInt DemandedMaskIn(DemandedMask.lshr(ShiftAmt)); in SimplifyDemandedUseBits()
577 APInt DemandedFromOp(APInt::getLowBitsSet(BitWidth, BitWidth - CTLZ)); in SimplifyDemandedUseBits()
589 const APInt *SA; in SimplifyDemandedUseBits()
594 APInt DemandedMaskIn(DemandedMask.shl(ShiftAmt)); in SimplifyDemandedUseBits()
630 const APInt *SA; in SimplifyDemandedUseBits()
635 APInt DemandedMaskIn(DemandedMask.shl(ShiftAmt)); in SimplifyDemandedUseBits()
653 APInt HighBits(APInt::getHighBitsSet( in SimplifyDemandedUseBits()
677 const APInt *SA; in SimplifyDemandedUseBits()
685 APInt DemandedMaskIn = in SimplifyDemandedUseBits()
686 APInt::getHighBitsSet(BitWidth, BitWidth - RHSTrailingZeros); in SimplifyDemandedUseBits()
705 APInt RA = Rem->getValue().abs(); in SimplifyDemandedUseBits()
710 APInt LowBits = RA - 1; in SimplifyDemandedUseBits()
711 APInt Mask2 = LowBits | APInt::getSignMask(BitWidth); in SimplifyDemandedUseBits()
746 APInt AllOnes = APInt::getAllOnesValue(BitWidth); in SimplifyDemandedUseBits()
752 Known.Zero = APInt::getHighBitsSet(BitWidth, Leaders) & DemandedMask; in SimplifyDemandedUseBits()
809 const APInt *SA; in SimplifyDemandedUseBits()
819 APInt DemandedMaskLHS(DemandedMask.lshr(ShiftAmt)); in SimplifyDemandedUseBits()
820 APInt DemandedMaskRHS(DemandedMask.shl(BitWidth - ShiftAmt)); in SimplifyDemandedUseBits()
860 Instruction *I, const APInt &DemandedMask, KnownBits &Known, unsigned Depth, in SimplifyMultipleUseDemandedBits()
959 const APInt *ShiftRC; in SimplifyMultipleUseDemandedBits()
960 const APInt *ShiftLC; in SimplifyMultipleUseDemandedBits()
966 DemandedMask.isSubsetOf(APInt::getLowBitsSet( in SimplifyMultipleUseDemandedBits()
1006 Instruction *Shr, const APInt &ShrOp1, Instruction *Shl, in simplifyShrShlDemandedBits()
1007 const APInt &ShlOp1, const APInt &DemandedMask, KnownBits &Known) { in simplifyShrShlDemandedBits()
1024 APInt BitMask1(APInt::getAllOnesValue(BitWidth)); in simplifyShrShlDemandedBits()
1025 APInt BitMask2(APInt::getAllOnesValue(BitWidth)); in simplifyShrShlDemandedBits()
1081 APInt DemandedElts, in SimplifyDemandedVectorElts()
1082 APInt &UndefElts, in SimplifyDemandedVectorElts()
1091 APInt EltMask(APInt::getAllOnesValue(VWidth)); in SimplifyDemandedVectorElts()
1162 APInt Demanded, APInt &Undef) { in SimplifyDemandedVectorElts()
1171 APInt UndefElts2(VWidth, 0); in SimplifyDemandedVectorElts()
1172 APInt UndefElts3(VWidth, 0); in SimplifyDemandedVectorElts()
1201 APInt UndefEltsOp(VWidth, 0); in SimplifyDemandedVectorElts()
1223 APInt PreInsertDemandedElts = DemandedElts; in SimplifyDemandedVectorElts()
1268 APInt LeftDemanded(OpWidth, 1); in SimplifyDemandedVectorElts()
1269 APInt LHSUndefElts(OpWidth, 0); in SimplifyDemandedVectorElts()
1278 APInt LeftDemanded(OpWidth, 0), RightDemanded(OpWidth, 0); in SimplifyDemandedVectorElts()
1293 APInt LHSUndefElts(OpWidth, 0); in SimplifyDemandedVectorElts()
1296 APInt RHSUndefElts(OpWidth, 0); in SimplifyDemandedVectorElts()
1418 APInt DemandedLHS(DemandedElts), DemandedRHS(DemandedElts); in SimplifyDemandedVectorElts()
1449 APInt InputDemandedElts(InVWidth, 0); in SimplifyDemandedVectorElts()
1450 UndefElts2 = APInt(InVWidth, 0); in SimplifyDemandedVectorElts()
1495 APInt SubUndef = UndefElts2.lshr(OutIdx * Ratio).zextOrTrunc(Ratio); in SimplifyDemandedVectorElts()
1518 APInt DemandedPtrs(APInt::getAllOnesValue(VWidth)), in SimplifyDemandedVectorElts()