Lines Matching refs:BitWidth

58   unsigned BitWidth = AB.getBitWidth();  in determineLiveOperandBits()  local
67 [&](unsigned BitWidth, const Value *V1, const Value *V2) { in determineLiveOperandBits() argument
73 Known = KnownBits(BitWidth); in determineLiveOperandBits()
77 Known2 = KnownBits(BitWidth); in determineLiveOperandBits()
104 ComputeKnownBits(BitWidth, Val, nullptr); in determineLiveOperandBits()
105 AB = APInt::getHighBitsSet(BitWidth, in determineLiveOperandBits()
106 std::min(BitWidth, Known.countMaxLeadingZeros()+1)); in determineLiveOperandBits()
114 ComputeKnownBits(BitWidth, Val, nullptr); in determineLiveOperandBits()
115 AB = APInt::getLowBitsSet(BitWidth, in determineLiveOperandBits()
116 std::min(BitWidth, Known.countMaxTrailingZeros()+1)); in determineLiveOperandBits()
125 if (isPowerOf2_32(BitWidth)) in determineLiveOperandBits()
126 AB = BitWidth - 1; in determineLiveOperandBits()
130 uint64_t ShiftAmt = SA->urem(BitWidth); in determineLiveOperandBits()
132 ShiftAmt = BitWidth - ShiftAmt; in determineLiveOperandBits()
137 AB = AOut.shl(BitWidth - ShiftAmt); in determineLiveOperandBits()
147 AB = APInt::getBitsSetFrom(BitWidth, AOut.countr_zero()); in determineLiveOperandBits()
156 ComputeKnownBits(BitWidth, UserI->getOperand(0), UserI->getOperand(1)); in determineLiveOperandBits()
164 ComputeKnownBits(BitWidth, UserI->getOperand(0), UserI->getOperand(1)); in determineLiveOperandBits()
172 AB = APInt::getLowBitsSet(BitWidth, AOut.getActiveBits()); in determineLiveOperandBits()
178 uint64_t ShiftAmt = ShiftAmtC->getLimitedValue(BitWidth - 1); in determineLiveOperandBits()
185 AB |= APInt::getHighBitsSet(BitWidth, ShiftAmt+1); in determineLiveOperandBits()
187 AB |= APInt::getHighBitsSet(BitWidth, ShiftAmt); in determineLiveOperandBits()
195 uint64_t ShiftAmt = ShiftAmtC->getLimitedValue(BitWidth - 1); in determineLiveOperandBits()
201 AB |= APInt::getLowBitsSet(BitWidth, ShiftAmt); in determineLiveOperandBits()
209 uint64_t ShiftAmt = ShiftAmtC->getLimitedValue(BitWidth - 1); in determineLiveOperandBits()
214 if ((AOut & APInt::getHighBitsSet(BitWidth, ShiftAmt)) in determineLiveOperandBits()
221 AB |= APInt::getLowBitsSet(BitWidth, ShiftAmt); in determineLiveOperandBits()
232 ComputeKnownBits(BitWidth, UserI->getOperand(0), UserI->getOperand(1)); in determineLiveOperandBits()
245 ComputeKnownBits(BitWidth, UserI->getOperand(0), UserI->getOperand(1)); in determineLiveOperandBits()
256 AB = AOut.zext(BitWidth); in determineLiveOperandBits()
259 AB = AOut.trunc(BitWidth); in determineLiveOperandBits()
262 AB = AOut.trunc(BitWidth); in determineLiveOperandBits()
267 AOut.getBitWidth() - BitWidth)) in determineLiveOperandBits()
366 unsigned BitWidth = T->getScalarSizeInBits(); in performAnalysis() local
367 APInt AB = APInt::getAllOnes(BitWidth); in performAnalysis()
369 AB = APInt(BitWidth, 0); in performAnalysis()
415 unsigned BitWidth = DL.getTypeSizeInBits(T->getScalarType()); in getDemandedBits() local
420 return APInt::getAllOnes(BitWidth); in getDemandedBits()
423 return APInt(BitWidth, 0); in getDemandedBits()
428 APInt AB = APInt::getAllOnes(BitWidth); in getDemandedBits()