• Home
  • Raw
  • Download

Lines Matching refs:BitWidth

53   unsigned BitWidth = Inst.getType()->getScalarSizeInBits();  in SimplifyDemandedInstructionBits()  local
54 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in SimplifyDemandedInstructionBits()
55 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); in SimplifyDemandedInstructionBits()
105 uint32_t BitWidth = DemandedMask.getBitWidth(); in SimplifyDemandedUseBits() local
109 assert((!TD || TD->getTypeSizeInBits(VTy->getScalarType()) == BitWidth) && in SimplifyDemandedUseBits()
111 VTy->getScalarSizeInBits() == BitWidth) && in SimplifyDemandedUseBits()
112 KnownZero.getBitWidth() == BitWidth && in SimplifyDemandedUseBits()
113 KnownOne.getBitWidth() == BitWidth && in SimplifyDemandedUseBits()
140 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0); in SimplifyDemandedUseBits()
141 APInt RHSKnownZero(BitWidth, 0), RHSKnownOne(BitWidth, 0); in SimplifyDemandedUseBits()
214 DemandedMask = APInt::getAllOnesValue(BitWidth); in SimplifyDemandedUseBits()
390 DemandedMask = DemandedMask.trunc(BitWidth); in SimplifyDemandedUseBits()
391 KnownZero = KnownZero.trunc(BitWidth); in SimplifyDemandedUseBits()
392 KnownOne = KnownOne.trunc(BitWidth); in SimplifyDemandedUseBits()
428 DemandedMask = DemandedMask.zext(BitWidth); in SimplifyDemandedUseBits()
429 KnownZero = KnownZero.zext(BitWidth); in SimplifyDemandedUseBits()
430 KnownOne = KnownOne.zext(BitWidth); in SimplifyDemandedUseBits()
433 KnownZero |= APInt::getHighBitsSet(BitWidth, BitWidth - SrcBitWidth); in SimplifyDemandedUseBits()
441 APInt::getLowBitsSet(BitWidth, SrcBitWidth); in SimplifyDemandedUseBits()
443 APInt NewBits(APInt::getHighBitsSet(BitWidth, BitWidth - SrcBitWidth)); in SimplifyDemandedUseBits()
455 InputDemandedBits = InputDemandedBits.zext(BitWidth); in SimplifyDemandedUseBits()
456 KnownZero = KnownZero.zext(BitWidth); in SimplifyDemandedUseBits()
457 KnownOne = KnownOne.zext(BitWidth); in SimplifyDemandedUseBits()
490 APInt InDemandedBits(APInt::getLowBitsSet(BitWidth, BitWidth - NLZ)); in SimplifyDemandedUseBits()
539 if (DemandedMask[BitWidth-1] == 0) { in SimplifyDemandedUseBits()
542 APInt DemandedFromOps(APInt::getLowBitsSet(BitWidth, BitWidth-NLZ)); in SimplifyDemandedUseBits()
555 if (DemandedMask[BitWidth-1] == 0) { in SimplifyDemandedUseBits()
559 APInt DemandedFromOps(APInt::getLowBitsSet(BitWidth, BitWidth-NLZ)); in SimplifyDemandedUseBits()
583 uint64_t ShiftAmt = SA->getLimitedValue(BitWidth-1); in SimplifyDemandedUseBits()
589 DemandedMaskIn |= APInt::getHighBitsSet(BitWidth, ShiftAmt+1); in SimplifyDemandedUseBits()
591 DemandedMaskIn |= APInt::getHighBitsSet(BitWidth, ShiftAmt); in SimplifyDemandedUseBits()
601 KnownZero |= APInt::getLowBitsSet(BitWidth, ShiftAmt); in SimplifyDemandedUseBits()
607 uint64_t ShiftAmt = SA->getLimitedValue(BitWidth-1); in SimplifyDemandedUseBits()
615 DemandedMaskIn |= APInt::getLowBitsSet(BitWidth, ShiftAmt); in SimplifyDemandedUseBits()
625 APInt HighBits(APInt::getHighBitsSet(BitWidth, ShiftAmt)); in SimplifyDemandedUseBits()
648 uint32_t ShiftAmt = SA->getLimitedValue(BitWidth-1); in SimplifyDemandedUseBits()
655 DemandedMaskIn.setBit(BitWidth-1); in SimplifyDemandedUseBits()
660 DemandedMaskIn |= APInt::getLowBitsSet(BitWidth, ShiftAmt); in SimplifyDemandedUseBits()
667 APInt HighBits(APInt::getHighBitsSet(BitWidth, ShiftAmt)); in SimplifyDemandedUseBits()
672 APInt SignBit(APInt::getSignBit(BitWidth)); in SimplifyDemandedUseBits()
678 if (BitWidth <= ShiftAmt || KnownZero[BitWidth-ShiftAmt-1] || in SimplifyDemandedUseBits()
702 APInt Mask2 = LowBits | APInt::getSignBit(BitWidth); in SimplifyDemandedUseBits()
713 if (LHSKnownZero[BitWidth-1] || ((LHSKnownZero & LowBits) == LowBits)) in SimplifyDemandedUseBits()
718 if (LHSKnownOne[BitWidth-1] && ((LHSKnownOne & LowBits) != 0)) in SimplifyDemandedUseBits()
728 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0); in SimplifyDemandedUseBits()
736 APInt KnownZero2(BitWidth, 0), KnownOne2(BitWidth, 0); in SimplifyDemandedUseBits()
737 APInt AllOnes = APInt::getAllOnesValue(BitWidth); in SimplifyDemandedUseBits()
747 KnownZero = APInt::getHighBitsSet(BitWidth, Leaders) & DemandedMask; in SimplifyDemandedUseBits()
766 if (BitWidth-NLZ-NTZ == 8) { in SimplifyDemandedUseBits()
768 unsigned InputBit = BitWidth-NTZ-8; in SimplifyDemandedUseBits()