Lines Matching refs:BitWidth
90 unsigned BitWidth = AB.getBitWidth(); in determineLiveOperandBits() local
99 [&](unsigned BitWidth, const Value *V1, const Value *V2) { in determineLiveOperandBits() argument
105 Known = KnownBits(BitWidth); in determineLiveOperandBits()
109 Known2 = KnownBits(BitWidth); in determineLiveOperandBits()
136 ComputeKnownBits(BitWidth, Val, nullptr); in determineLiveOperandBits()
137 AB = APInt::getHighBitsSet(BitWidth, in determineLiveOperandBits()
138 std::min(BitWidth, Known.countMaxLeadingZeros()+1)); in determineLiveOperandBits()
146 ComputeKnownBits(BitWidth, Val, nullptr); in determineLiveOperandBits()
147 AB = APInt::getLowBitsSet(BitWidth, in determineLiveOperandBits()
148 std::min(BitWidth, Known.countMaxTrailingZeros()+1)); in determineLiveOperandBits()
157 if (isPowerOf2_32(BitWidth)) in determineLiveOperandBits()
158 AB = BitWidth - 1; in determineLiveOperandBits()
162 uint64_t ShiftAmt = SA->urem(BitWidth); in determineLiveOperandBits()
164 ShiftAmt = BitWidth - ShiftAmt; in determineLiveOperandBits()
169 AB = AOut.shl(BitWidth - ShiftAmt); in determineLiveOperandBits()
179 AB = APInt::getBitsSetFrom(BitWidth, AOut.countTrailingZeros()); in determineLiveOperandBits()
188 ComputeKnownBits(BitWidth, UserI->getOperand(0), UserI->getOperand(1)); in determineLiveOperandBits()
196 ComputeKnownBits(BitWidth, UserI->getOperand(0), UserI->getOperand(1)); in determineLiveOperandBits()
204 AB = APInt::getLowBitsSet(BitWidth, AOut.getActiveBits()); in determineLiveOperandBits()
210 uint64_t ShiftAmt = ShiftAmtC->getLimitedValue(BitWidth - 1); in determineLiveOperandBits()
217 AB |= APInt::getHighBitsSet(BitWidth, ShiftAmt+1); in determineLiveOperandBits()
219 AB |= APInt::getHighBitsSet(BitWidth, ShiftAmt); in determineLiveOperandBits()
227 uint64_t ShiftAmt = ShiftAmtC->getLimitedValue(BitWidth - 1); in determineLiveOperandBits()
233 AB |= APInt::getLowBitsSet(BitWidth, ShiftAmt); in determineLiveOperandBits()
241 uint64_t ShiftAmt = ShiftAmtC->getLimitedValue(BitWidth - 1); in determineLiveOperandBits()
246 if ((AOut & APInt::getHighBitsSet(BitWidth, ShiftAmt)) in determineLiveOperandBits()
253 AB |= APInt::getLowBitsSet(BitWidth, ShiftAmt); in determineLiveOperandBits()
264 ComputeKnownBits(BitWidth, UserI->getOperand(0), UserI->getOperand(1)); in determineLiveOperandBits()
277 ComputeKnownBits(BitWidth, UserI->getOperand(0), UserI->getOperand(1)); in determineLiveOperandBits()
288 AB = AOut.zext(BitWidth); in determineLiveOperandBits()
291 AB = AOut.trunc(BitWidth); in determineLiveOperandBits()
294 AB = AOut.trunc(BitWidth); in determineLiveOperandBits()
299 AOut.getBitWidth() - BitWidth)) in determineLiveOperandBits()
409 unsigned BitWidth = T->getScalarSizeInBits(); in performAnalysis() local
410 APInt AB = APInt::getAllOnesValue(BitWidth); in performAnalysis()
412 AB = APInt(BitWidth, 0); in performAnalysis()
459 unsigned BitWidth = DL.getTypeSizeInBits(T->getScalarType()); in getDemandedBits() local
464 return APInt::getAllOnesValue(BitWidth); in getDemandedBits()
467 return APInt(BitWidth, 0); in getDemandedBits()
472 APInt AB = APInt::getAllOnesValue(BitWidth); in getDemandedBits()