Lines Matching refs:APInt
31 const APInt &Demanded) { in ShrinkDemandedConstant()
37 const APInt *C; in ShrinkDemandedConstant()
58 APInt DemandedMask(APInt::getAllOnes(BitWidth)); in SimplifyDemandedInstructionBits()
72 const APInt &DemandedMask, in SimplifyDemandedBits()
108 Value *InstCombinerImpl::SimplifyDemandedUseBits(Value *V, APInt DemandedMask, in SimplifyDemandedUseBits()
159 auto simplifyOperandsBasedOnUnusedHighBits = [&](APInt &DemandedFromOps) { in SimplifyDemandedUseBits()
163 DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyDemandedUseBits()
299 const APInt *C; in SimplifyDemandedUseBits()
321 APInt NewMask = ~(LHSKnown.One & RHSKnown.One & DemandedMask); in SimplifyDemandedUseBits()
347 const APInt &DemandedMask) { in SimplifyDemandedUseBits()
348 const APInt *SelC; in SimplifyDemandedUseBits()
357 const APInt *CmpC; in SimplifyDemandedUseBits()
386 const APInt *C; in SimplifyDemandedUseBits()
404 APInt InputDemandedMask = DemandedMask.zextOrTrunc(SrcBitWidth); in SimplifyDemandedUseBits()
438 APInt InputDemandedBits = DemandedMask.trunc(SrcBitWidth); in SimplifyDemandedUseBits()
503 APInt DemandedFromOps; in SimplifyDemandedUseBits()
524 APInt DemandedFromOps; in SimplifyDemandedUseBits()
533 const APInt *C; in SimplifyDemandedUseBits()
554 const APInt *SA; in SimplifyDemandedUseBits()
556 const APInt *ShrAmt; in SimplifyDemandedUseBits()
583 APInt DemandedMaskIn(DemandedMask.lshr(ShiftAmt)); in SimplifyDemandedUseBits()
619 APInt DemandedFromOp(APInt::getLowBitsSet(BitWidth, BitWidth - CTLZ)); in SimplifyDemandedUseBits()
631 const APInt *SA; in SimplifyDemandedUseBits()
664 APInt DemandedMaskIn(DemandedMask.shl(ShiftAmt)); in SimplifyDemandedUseBits()
703 const APInt *SA; in SimplifyDemandedUseBits()
708 APInt DemandedMaskIn(DemandedMask.shl(ShiftAmt)); in SimplifyDemandedUseBits()
724 APInt HighBits(APInt::getHighBitsSet( in SimplifyDemandedUseBits()
748 const APInt *SA; in SimplifyDemandedUseBits()
756 APInt DemandedMaskIn = in SimplifyDemandedUseBits()
757 APInt::getHighBitsSet(BitWidth, BitWidth - RHSTrailingZeros); in SimplifyDemandedUseBits()
770 const APInt *Rem; in SimplifyDemandedUseBits()
776 APInt RA = Rem->abs(); in SimplifyDemandedUseBits()
781 APInt LowBits = RA - 1; in SimplifyDemandedUseBits()
782 APInt Mask2 = LowBits | APInt::getSignMask(BitWidth); in SimplifyDemandedUseBits()
817 APInt AllOnes = APInt::getAllOnes(BitWidth); in SimplifyDemandedUseBits()
823 Known.Zero = APInt::getHighBitsSet(BitWidth, Leaders) & DemandedMask; in SimplifyDemandedUseBits()
877 const APInt *SA; in SimplifyDemandedUseBits()
887 APInt DemandedMaskLHS(DemandedMask.lshr(ShiftAmt)); in SimplifyDemandedUseBits()
888 APInt DemandedMaskRHS(DemandedMask.shl(BitWidth - ShiftAmt)); in SimplifyDemandedUseBits()
904 const APInt *C; in SimplifyDemandedUseBits()
916 const APInt *C; in SimplifyDemandedUseBits()
951 Instruction *I, const APInt &DemandedMask, KnownBits &Known, unsigned Depth, in SimplifyMultipleUseDemandedBits()
1050 const APInt *ShiftRC; in SimplifyMultipleUseDemandedBits()
1051 const APInt *ShiftLC; in SimplifyMultipleUseDemandedBits()
1057 DemandedMask.isSubsetOf(APInt::getLowBitsSet( in SimplifyMultipleUseDemandedBits()
1097 Instruction *Shr, const APInt &ShrOp1, Instruction *Shl, in simplifyShrShlDemandedBits()
1098 const APInt &ShlOp1, const APInt &DemandedMask, KnownBits &Known) { in simplifyShrShlDemandedBits()
1115 APInt BitMask1(APInt::getAllOnes(BitWidth)); in simplifyShrShlDemandedBits()
1116 APInt BitMask2(APInt::getAllOnes(BitWidth)); in simplifyShrShlDemandedBits()
1172 APInt DemandedElts, in SimplifyDemandedVectorElts()
1173 APInt &UndefElts, in SimplifyDemandedVectorElts()
1182 APInt EltMask(APInt::getAllOnes(VWidth)); in SimplifyDemandedVectorElts()
1253 APInt Demanded, APInt &Undef) { in SimplifyDemandedVectorElts()
1262 APInt UndefElts2(VWidth, 0); in SimplifyDemandedVectorElts()
1263 APInt UndefElts3(VWidth, 0); in SimplifyDemandedVectorElts()
1293 APInt UndefEltsOp(VWidth, 0); in SimplifyDemandedVectorElts()
1319 APInt PreInsertDemandedElts = DemandedElts; in SimplifyDemandedVectorElts()
1364 APInt LeftDemanded(OpWidth, 1); in SimplifyDemandedVectorElts()
1365 APInt LHSUndefElts(OpWidth, 0); in SimplifyDemandedVectorElts()
1374 APInt LeftDemanded(OpWidth, 0), RightDemanded(OpWidth, 0); in SimplifyDemandedVectorElts()
1389 APInt LHSUndefElts(OpWidth, 0); in SimplifyDemandedVectorElts()
1392 APInt RHSUndefElts(OpWidth, 0); in SimplifyDemandedVectorElts()
1514 APInt DemandedLHS(DemandedElts), DemandedRHS(DemandedElts); in SimplifyDemandedVectorElts()
1545 APInt InputDemandedElts(InVWidth, 0); in SimplifyDemandedVectorElts()
1546 UndefElts2 = APInt(InVWidth, 0); in SimplifyDemandedVectorElts()
1591 APInt SubUndef = UndefElts2.lshr(OutIdx * Ratio).zextOrTrunc(Ratio); in SimplifyDemandedVectorElts()
1614 APInt DemandedPtrs(APInt::getAllOnes(VWidth)), in SimplifyDemandedVectorElts()