Lines Matching refs:BitWidth

84   unsigned BitWidth = AB.getBitWidth();  in determineLiveOperandBits()  local
93 [&](unsigned BitWidth, const Value *V1, const Value *V2) { in determineLiveOperandBits() argument
99 Known = KnownBits(BitWidth); in determineLiveOperandBits()
103 Known2 = KnownBits(BitWidth); in determineLiveOperandBits()
130 ComputeKnownBits(BitWidth, Val, nullptr); in determineLiveOperandBits()
131 AB = APInt::getHighBitsSet(BitWidth, in determineLiveOperandBits()
132 std::min(BitWidth, Known.countMaxLeadingZeros()+1)); in determineLiveOperandBits()
140 ComputeKnownBits(BitWidth, Val, nullptr); in determineLiveOperandBits()
141 AB = APInt::getLowBitsSet(BitWidth, in determineLiveOperandBits()
142 std::min(BitWidth, Known.countMaxTrailingZeros()+1)); in determineLiveOperandBits()
151 if (isPowerOf2_32(BitWidth)) in determineLiveOperandBits()
152 AB = BitWidth - 1; in determineLiveOperandBits()
156 uint64_t ShiftAmt = SA->urem(BitWidth); in determineLiveOperandBits()
158 ShiftAmt = BitWidth - ShiftAmt; in determineLiveOperandBits()
163 AB = AOut.shl(BitWidth - ShiftAmt); in determineLiveOperandBits()
173 AB = APInt::getBitsSetFrom(BitWidth, AOut.countTrailingZeros()); in determineLiveOperandBits()
182 ComputeKnownBits(BitWidth, UserI->getOperand(0), UserI->getOperand(1)); in determineLiveOperandBits()
190 ComputeKnownBits(BitWidth, UserI->getOperand(0), UserI->getOperand(1)); in determineLiveOperandBits()
198 AB = APInt::getLowBitsSet(BitWidth, AOut.getActiveBits()); in determineLiveOperandBits()
204 uint64_t ShiftAmt = ShiftAmtC->getLimitedValue(BitWidth - 1); in determineLiveOperandBits()
211 AB |= APInt::getHighBitsSet(BitWidth, ShiftAmt+1); in determineLiveOperandBits()
213 AB |= APInt::getHighBitsSet(BitWidth, ShiftAmt); in determineLiveOperandBits()
221 uint64_t ShiftAmt = ShiftAmtC->getLimitedValue(BitWidth - 1); in determineLiveOperandBits()
227 AB |= APInt::getLowBitsSet(BitWidth, ShiftAmt); in determineLiveOperandBits()
235 uint64_t ShiftAmt = ShiftAmtC->getLimitedValue(BitWidth - 1); in determineLiveOperandBits()
240 if ((AOut & APInt::getHighBitsSet(BitWidth, ShiftAmt)) in determineLiveOperandBits()
247 AB |= APInt::getLowBitsSet(BitWidth, ShiftAmt); in determineLiveOperandBits()
258 ComputeKnownBits(BitWidth, UserI->getOperand(0), UserI->getOperand(1)); in determineLiveOperandBits()
271 ComputeKnownBits(BitWidth, UserI->getOperand(0), UserI->getOperand(1)); in determineLiveOperandBits()
282 AB = AOut.zext(BitWidth); in determineLiveOperandBits()
285 AB = AOut.trunc(BitWidth); in determineLiveOperandBits()
288 AB = AOut.trunc(BitWidth); in determineLiveOperandBits()
293 AOut.getBitWidth() - BitWidth)) in determineLiveOperandBits()
403 unsigned BitWidth = T->getScalarSizeInBits(); in performAnalysis() local
404 APInt AB = APInt::getAllOnes(BitWidth); in performAnalysis()
406 AB = APInt(BitWidth, 0); in performAnalysis()
452 unsigned BitWidth = DL.getTypeSizeInBits(T->getScalarType()); in getDemandedBits() local
457 return APInt::getAllOnes(BitWidth); in getDemandedBits()
460 return APInt(BitWidth, 0); in getDemandedBits()
465 APInt AB = APInt::getAllOnes(BitWidth); in getDemandedBits()