Lines Matching defs:Bits
99 if (std::optional<APInt> Bits = extractConstantBits(CVSplat)) {
100 assert((NumBits % Bits->getBitWidth()) == 0 && "Illegal splat");
101 return APInt::getSplat(NumBits, *Bits);
105 APInt Bits = APInt::getZero(NumBits);
113 Bits.insertBits(*SubBits, I * SubBits->getBitWidth());
115 return Bits;
125 APInt Bits = APInt::getZero(NumBits);
129 Bits.insertBits(CDS->getElementAsAPInt(I), I * EltBits);
131 Bits.insertBits(CDS->getElementAsAPFloat(I).bitcastToAPInt(),
134 return Bits;
143 if (std::optional<APInt> Bits = extractConstantBits(C))
144 return Bits->zextOrTrunc(NumBits);
156 if (std::optional<APInt> Bits = extractConstantBits(C))
157 if (Bits->isSplat(SplatBitWidth))
158 return Bits->trunc(SplatBitWidth);
188 if (std::optional<APInt> Bits = extractConstantBits(Sequence[I])) {
189 SplatBits.insertBits(*Bits, I * Bits->getBitWidth());
204 const APInt &Bits, unsigned NumSclBits) {
205 unsigned BitWidth = Bits.getBitWidth();
210 RawBits.push_back(Bits.extractBits(8, I).getZExtValue());
217 RawBits.push_back(Bits.extractBits(16, I).getZExtValue());
226 RawBits.push_back(Bits.extractBits(32, I).getZExtValue());
236 RawBits.push_back(Bits.extractBits(64, I).getZExtValue());
275 if (std::optional<APInt> Bits = extractConstantBits(C, NumBits)) {
276 if (Bits->countLeadingZeros() >= (NumBits - ScalarBitWidth)) {
280 return rebuildConstant(Ctx, SclTy, *Bits, NumSclBits);
283 APInt RawBits = Bits->zextOrTrunc(ScalarBitWidth);
300 if (std::optional<APInt> Bits = extractConstantBits(C, NumBits)) {
301 assert((Bits->getBitWidth() / DstEltBitWidth) == NumElts &&
302 (Bits->getBitWidth() % DstEltBitWidth) == 0 &&
308 APInt Elt = Bits->extractBits(DstEltBitWidth, I * DstEltBitWidth);