reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

gen/lib/Target/Hexagon/HexagonGenDAGISel.inc
73132                                    MVT::getIntegerVT(I.getBitWidth()));
gen/lib/Target/Mips/MipsGenDAGISel.inc
30284          Imm.getBitWidth() == EltTy.getSizeInBits() && Imm == 1;
30312          Imm.getBitWidth() == EltTy.getSizeInBits() && Imm == 1;
30325          Imm.getBitWidth() == EltTy.getSizeInBits() && Imm == 63;
include/llvm/ADT/APInt.h
  659     if (I1.getBitWidth() == I2.getBitWidth())
  659     if (I1.getBitWidth() == I2.getBitWidth())
  662     if (I1.getBitWidth() > I2.getBitWidth())
  662     if (I1.getBitWidth() > I2.getBitWidth())
  663       return I1 == I2.zext(I1.getBitWidth());
  665     return I1.zext(I2.getBitWidth()) == I2;
 1121     assert(bitPosition < getBitWidth() && "Bit position out of bounds!");
include/llvm/ADT/APSInt.h
  307     if (I1.getBitWidth() == I2.getBitWidth() && I1.isSigned() == I2.isSigned())
  307     if (I1.getBitWidth() == I2.getBitWidth() && I1.isSigned() == I2.isSigned())
  311     if (I1.getBitWidth() > I2.getBitWidth())
  311     if (I1.getBitWidth() > I2.getBitWidth())
  312       return compareValues(I1, I2.extend(I1.getBitWidth()));
  313     if (I2.getBitWidth() > I1.getBitWidth())
  313     if (I2.getBitWidth() > I1.getBitWidth())
  314       return compareValues(I1.extend(I2.getBitWidth()), I2);
include/llvm/Analysis/MemoryBuiltins.h
  247     return SizeOffset.first.getBitWidth() > 1;
  251     return SizeOffset.second.getBitWidth() > 1;
include/llvm/Analysis/TargetTransformInfoImpl.h
  679     if (StrideVal.getBitWidth() > 64)
include/llvm/IR/ConstantRange.h
   86       return getFull(Lower.getBitWidth());
  165   uint32_t getBitWidth() const { return Lower.getBitWidth(); }
include/llvm/IR/Constants.h
  142   unsigned getBitWidth() const { return Val.getBitWidth(); }
include/llvm/Support/KnownBits.h
   40     assert(Zero.getBitWidth() == One.getBitWidth() &&
   40     assert(Zero.getBitWidth() == One.getBitWidth() &&
   42     return Zero.getBitWidth();
lib/Analysis/BasicAliasAnalysis.cpp
  296     Offset += Const->getValue().zextOrSelf(Offset.getBitWidth());
  306       APInt RHS = RHSC->getValue().zextOrSelf(Offset.getBitWidth());
  350         if (Offset.getBitWidth() < RHS.getLimitedValue() ||
  351             Scale.getBitWidth() < RHS.getLimitedValue()) {
  395         unsigned OldWidth = Offset.getBitWidth();
  436   assert(PointerSize <= Offset.getBitWidth() && "Invalid PointerSize!");
  437   unsigned ShiftBits = Offset.getBitWidth() - PointerSize;
 2025     MinDiff.zextOrTrunc(Var0.Scale.getBitWidth()) * Var0.Scale.abs();
lib/Analysis/CmpInstAnalysis.cpp
   82     Mask = APInt::getSignMask(C->getBitWidth());
   89     Mask = APInt::getSignMask(C->getBitWidth());
   96     Mask = APInt::getSignMask(C->getBitWidth());
  103     Mask = APInt::getSignMask(C->getBitWidth());
lib/Analysis/ConstantFolding.cpp
   86     Result |= ElementCI->getValue().zextOrSelf(Result.getBitWidth());
 2317           unsigned Width = Lhs.getBitWidth();
 2353     unsigned BitWidth = C2->getBitWidth();
lib/Analysis/DemandedBits.cpp
   89   unsigned BitWidth = AB.getBitWidth();
  274     if ((AOut & APInt::getHighBitsSet(AOut.getBitWidth(),
  275                                       AOut.getBitWidth() - BitWidth))
lib/Analysis/DependenceAnalysis.cpp
 1387   APInt Two = APInt(Distance.getBitWidth(), 2, true);
 1521   unsigned Bits = AM.getBitWidth();
 1920   unsigned Bits = AM.getBitWidth();
lib/Analysis/IVDescriptors.cpp
  127     MaxBitWidth = Mask.getBitWidth() - Mask.countLeadingZeros();
lib/Analysis/InlineCost.cpp
  390   assert(IntPtrWidth == Offset.getBitWidth());
lib/Analysis/InstructionSimplify.cpp
 5183       APInt BitWidth = APInt(ShAmtC->getBitWidth(), ShAmtC->getBitWidth());
 5183       APInt BitWidth = APInt(ShAmtC->getBitWidth(), ShAmtC->getBitWidth());
lib/Analysis/Loads.cpp
   42     const APInt APBaseAlign(Offset.getBitWidth(), BA->value());
   43     const APInt APAlign(Offset.getBitWidth(), Alignment.value());
   69   APInt KnownDerefBytes(Size.getBitWidth(),
   88         !Offset.urem(APInt(Offset.getBitWidth(), Alignment.value()))
  101         Base, Alignment, Offset + Size.sextOrTrunc(Offset.getBitWidth()), DL,
  278   if (Size.getBitWidth() > 64)
lib/Analysis/LoopAccessAnalysis.cpp
 1068   if (APStepVal.getBitWidth() > 64)
lib/Analysis/MemoryBuiltins.cpp
  483     return APInt(Data.first.getBitWidth(), 0);
  624   if (I.getBitWidth() > IntTyBits && I.getActiveBits() > IntTyBits)
  626   if (I.getBitWidth() != IntTyBits)
lib/Analysis/PtrUseVisitor.cpp
   39     Offset += TmpOffset.sextOrTrunc(Offset.getBitWidth());
lib/Analysis/ScalarEvolution.cpp
  689     unsigned LBitWidth = LA.getBitWidth(), RBitWidth = RA.getBitWidth();
  689     unsigned LBitWidth = LA.getBitWidth(), RBitWidth = RA.getBitWidth();
  955       uint32_t NumeratorBW = NumeratorVal.getBitWidth();
  956       uint32_t DenominatorBW = DenominatorVal.getBitWidth();
  963       APInt QuotientVal(NumeratorVal.getBitWidth(), 0);
  964       APInt RemainderVal(NumeratorVal.getBitWidth(), 0);
 1609   const unsigned BitWidth = C.getBitWidth();
 1629   const unsigned BitWidth = ConstantStart.getBitWidth();
 3322   uint32_t ABW = A.getBitWidth();
 3323   uint32_t BBW = B.getBitWidth();
 6262         unsigned BitWidth = A.getBitWidth();
 6309             (CIVal.getBitWidth() - CIVal.countLeadingZeros())) {
 8395   uint32_t BW = A.getBitWidth();
 8461   unsigned BitWidth = LC->getAPInt().getBitWidth();
 8497     unsigned W = std::max(X->getBitWidth(), Y->getBitWidth());
 8497     unsigned W = std::max(X->getBitWidth(), Y->getBitWidth());
 8521   unsigned W = X->getBitWidth();
 8651   APInt Lower = Range.getLower().sextOrSelf(A.getBitWidth()) - 1;
 8652   APInt Upper = Range.getUpper().sextOrSelf(A.getBitWidth());
lib/Analysis/ScalarEvolutionExpander.cpp
  840         if (RHS->logBase2() == RHS->getBitWidth() - 1)
lib/Analysis/ValueTracking.cpp
 2297   KnownBits Known(Mask.getBitWidth());
 2722       uint64_t BitToSet = Op1Int.getLimitedValue(Op1Int.getBitWidth() - 1);
 2723       APInt API(Op1Int.getBitWidth(), 0);
 5172         KnownBits Known(CA->getBitWidth());
 5420   unsigned Width = Lower.getBitWidth();
 5575   unsigned Width = Lower.getBitWidth();
lib/Analysis/VectorUtils.cpp
  224       if (APStepVal.getBitWidth() > 64)
  425     if (DB.getDemandedBits(I).getBitWidth() > 64)
lib/AsmParser/LLParser.cpp
 2791       Lex.getAPSIntVal().getBitWidth() > 64)
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
 2489   unsigned NumBytes = API.getBitWidth() / 8;
lib/CodeGen/AsmPrinter/DwarfExpression.cpp
  204   unsigned Size = Value.getBitWidth();
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
  519   int NumBytes = FltVal.getBitWidth() / 8; // 8 bits per byte.
  565   unsigned CIBitWidth = Val.getBitWidth();
  577   int NumBytes = Val.getBitWidth() / 8; // 8 bits per byte.
lib/CodeGen/GlobalISel/GISelKnownBits.cpp
  334       Known.Zero.setBitsFrom(Known.Zero.getBitWidth() - Shift);
lib/CodeGen/GlobalISel/Utils.cpp
  238       assert(Val.getBitWidth() == BitWidth &&
  289   if (Val.getBitWidth() > 64)
  425       return C1.trunc(Imm).sext(C1.getBitWidth());
lib/CodeGen/InterleavedLoadCombinePass.cpp
  209     if (ErrorMSBs > A.getBitWidth())
  210       ErrorMSBs = A.getBitWidth();
  242     if (C.getBitWidth() != A.getBitWidth()) {
  242     if (C.getBitWidth() != A.getBitWidth()) {
  303     if (C.getBitWidth() != A.getBitWidth()) {
  303     if (C.getBitWidth() != A.getBitWidth()) {
  460     if (C.getBitWidth() != A.getBitWidth()) {
  460     if (C.getBitWidth() != A.getBitWidth()) {
  470     if (shiftAmt >= C.getBitWidth())
  471       return mul(APInt(C.getBitWidth(), 0));
  479       ErrorMSBs = A.getBitWidth();
  492     if (n < A.getBitWidth()) {
  495       decErrorMSBs(A.getBitWidth() - n);
  499     if (n > A.getBitWidth()) {
  502       incErrorMSBs(n - A.getBitWidth());
  516     if (A.getBitWidth() != o.A.getBitWidth())
  516     if (A.getBitWidth() != o.A.getBitWidth())
lib/CodeGen/MIRParser/MIParser.cpp
 1644     if (A.getBitWidth() > 32)
 2642     if (A.getBitWidth() > 64)
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  797   unsigned Bits = Offset + std::max(LHS.getBitWidth(), RHS.getBitWidth());
  797   unsigned Bits = Offset + std::max(LHS.getBitWidth(), RHS.getBitWidth());
  864     if (!Const || Const->getAPIntValue().getBitWidth() != BitWidth ||
  903   if (C1APIntVal.getBitWidth() > 64 || C2APIntVal.getBitWidth() > 64)
  903   if (C1APIntVal.getBitWidth() > 64 || C2APIntVal.getBitWidth() > 64)
  907   if (CombinedValueIntVal.getBitWidth() > 64)
 3339             ConstValue0.getBitWidth() == VT.getScalarSizeInBits()) &&
 3342             ConstValue1.getBitWidth() == VT.getScalarSizeInBits()) &&
 5972     const APInt ExtractDiv = APInt::getOneBitSet(ExtractFromAmt.getBitWidth(),
 5984                                           ExtractFromAmt.getBitWidth()))
 7093     if (ShiftAmtVal->getBitWidth() != C1Val.getBitWidth())
 7093     if (ShiftAmtVal->getBitWidth() != C1Val.getBitWidth())
20085         DAG.getConstant(AndMask.getBitWidth() - 1, SDLoc(Shl),
lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
  461   assert(DestLOI.Known.Zero.getBitWidth() == BitWidth &&
  462          DestLOI.Known.One.getBitWidth() == BitWidth &&
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
 2168       if (Amt >= DemandedBits.getBitWidth())
 2251   assert(NumElts == DemandedElts.getBitWidth() && "Vector size mismatch");
 2455   unsigned NumElts = DemandedElts.getBitWidth();
 3190         Known.One &= Known2.One.zextOrTrunc(Known.One.getBitWidth());
 3191         Known.Zero &= Known2.Zero.zextOrTrunc(Known.Zero.getBitWidth());
 3206       Known.One &= Known2.One.zextOrTrunc(Known.One.getBitWidth());
 3207       Known.Zero &= Known2.Zero.zextOrTrunc(Known.Zero.getBitWidth());
 3415   unsigned NumElts = DemandedElts.getBitWidth();
 3962   Mask <<= Mask.getBitWidth()-VTBits;
 4343                   (Val.getBitWidth() == 16) ? Val : Val.trunc(16));
 5202       Val <<= Val.getBitWidth() - FromBits;
 5203       Val.ashrInPlace(Val.getBitWidth() - FromBits);
 5633     assert(C->getAPIntValue().getBitWidth() == 8);
 9432   assert(getNumOperands() == DemandedElts.getBitWidth() &&
lib/CodeGen/SelectionDAG/TargetLowering.cpp
  599   unsigned NumElts = DemandedElts.getBitWidth();
  757   unsigned BitWidth = OriginalDemandedBits.getBitWidth();
  761   unsigned NumElts = OriginalDemandedElts.getBitWidth();
 2046   assert(UndefOp0.getBitWidth() == NumElts &&
 2047          UndefOp1.getBitWidth() == NumElts && "Bad type for undef analysis");
 2089   unsigned NumElts = DemandedElts.getBitWidth();
 2717     if (BVEltWidth < CVal.getBitWidth())
 3182         C1.getBitWidth() - C1.getNumSignBits() + 1 :
 3187           MinBits < C1.getBitWidth() &&
 3299       if (C1.intersects(APInt::getHighBitsSet(C1.getBitWidth(),
 3300                                               C1.getBitWidth() - InSize))) {
 3511             (!N1C->isOpaque() || (C.getBitWidth() <= 64 &&
 3531             (!N1C->isOpaque() || (C.getBitWidth() <= 64 &&
 4588       Factor *= APInt(Divisor.getBitWidth(), 2) - t;
 4784       assert(magics.s < Divisor.getBitWidth() &&
 4980     unsigned W = D.getBitWidth();
 5167     unsigned W = D.getBitWidth();
lib/CodeGen/SwitchLoweringUtils.cpp
   25   assert(LowCase.getBitWidth() == HighCase.getBitWidth());
   25   assert(LowCase.getBitWidth() == HighCase.getBitWidth());
  403     LowBound = APInt::getNullValue(Low.getBitWidth());
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
 1600   unsigned Width = (AI.getBitWidth() / 8) * 2;
lib/ExecutionEngine/ExecutionEngine.cpp
  748       assert(GV.IntVal.getBitWidth() <= 64 && "Bad pointer width");
 1056         unsigned numOfBytes =(Val.AggregateVal[i].IntVal.getBitWidth()+7)/8;
lib/ExecutionEngine/ExecutionEngineBindings.cpp
   70   return unwrap(GenValRef)->IntVal.getBitWidth();
lib/ExecutionEngine/Interpreter/Execution.cpp
 1180   unsigned valueWidth = valueToShift.getBitWidth();
 1533   if (PtrSize != Src.IntVal.getBitWidth())
lib/IR/ConstantFold.cpp
 1255         if (C2V.ult(C1V.getBitWidth()))
 1259         if (C2V.ult(C1V.getBitWidth()))
 1263         if (C2V.ult(C1V.getBitWidth()))
lib/IR/ConstantRange.cpp
   51   assert(Lower.getBitWidth() == Upper.getBitWidth() &&
   51   assert(Lower.getBitWidth() == Upper.getBitWidth() &&
  185   unsigned BitWidth = V.getBitWidth();
  187     return ConstantRange::getFull(V.getBitWidth());
  200   unsigned BitWidth = V.getBitWidth();
  416   assert(Val.getBitWidth() == getBitWidth() && "Wrong bit width");
lib/IR/Constants.cpp
  606   assert(V.getBitWidth() == Ty->getBitWidth() && "Invalid constant for type");
  646     IntegerType *ITy = IntegerType::get(Context, V.getBitWidth());
  649   assert(Slot->getType() == IntegerType::get(Context, V.getBitWidth()));
lib/IR/LLVMContextImpl.h
   80     return LHS.getBitWidth() == RHS.getBitWidth() && LHS == RHS;
   80     return LHS.getBitWidth() == RHS.getBitWidth() && LHS == RHS;
lib/IR/MDBuilder.cpp
   85   assert(Lo.getBitWidth() == Hi.getBitWidth() && "Mismatched bitwidths!");
   85   assert(Lo.getBitWidth() == Hi.getBitWidth() && "Mismatched bitwidths!");
   87   Type *Ty = IntegerType::get(Context, Lo.getBitWidth());
lib/IR/Operator.cpp
   36   assert(Offset.getBitWidth() ==
   52       Offset += APInt(Offset.getBitWidth(), SL->getElementOffset(ElementIdx));
   57     APInt Index = OpC->getValue().sextOrTrunc(Offset.getBitWidth());
   58     Offset += Index * APInt(Offset.getBitWidth(),
lib/IR/Value.cpp
  555   unsigned BitWidth = Offset.getBitWidth();
lib/IR/Verifier.cpp
 5518     AssertTBAA(BaseNodeBitWidth == Offset.getBitWidth() ||
 5522                BaseNodeBitWidth, Offset.getBitWidth());
lib/MC/MCParser/AsmParser.cpp
 3081     hi = IntValue.getHiBits(IntValue.getBitWidth() - 64).getZExtValue();
 3164                                AsInt.getBitWidth() / 8);
 4802                                AsInt.getBitWidth() / 8);
lib/MCA/InstrBuilder.cpp
  666         if (Mask.getBitWidth() > RD.UseIndex) {
lib/Support/APFloat.cpp
 3077   assert(api.getBitWidth()==80);
 3111   assert(api.getBitWidth()==128);
 3135   assert(api.getBitWidth()==128);
 3173   assert(api.getBitWidth()==64);
 3204   assert(api.getBitWidth()==32);
 3235   assert(api.getBitWidth()==16);
 3371     APInt divisor(significand.getBitWidth(), 1);
 3372     APInt powten(significand.getBitWidth(), 10);
 3533   unsigned precision = significand.getBitWidth();
 4551   unsigned bitWidth = result.getBitWidth();
lib/Support/APInt.cpp
  149   reallocate(RHS.getBitWidth());
  235   APInt Result(getMemory(getNumWords()), getBitWidth());
  346   unsigned subBitWidth = subBits.getBitWidth();
  557   assert(getBitWidth() % SplatSizeInBits == 0 &&
  578   assert(NewLen >= V.getBitWidth() && "Can't splat to smaller bit width!");
  581   for (unsigned I = V.getBitWidth(); I < NewLen; I <<= 1)
 1034   unsigned rotBitWidth = rotateAmt.getBitWidth();
 1041   rot = rot.urem(APInt(rot.getBitWidth(), BitWidth));
 1205   APInt signedMin = APInt::getSignedMinValue(d.getBitWidth());
 1209   t = signedMin + (d.lshr(d.getBitWidth() - 1));
 1211   p = d.getBitWidth() - 1;    // initialize p
 1235   mag.s = p - d.getBitWidth();          // resulting shift
 1251   APInt allOnes = APInt::getAllOnesValue(d.getBitWidth()).lshr(LeadingZeros);
 1252   APInt signedMin = APInt::getSignedMinValue(d.getBitWidth());
 1253   APInt signedMax = APInt::getSignedMaxValue(d.getBitWidth());
 1256   p = d.getBitWidth() - 1;  // initialize p
 1282   } while (p < d.getBitWidth()*2 &&
 1285   magu.s = p - d.getBitWidth();  // resulting shift
 1991   Overflow = ShAmt.uge(getBitWidth());
 2004   Overflow = ShAmt.uge(getBitWidth());
 2843   unsigned CoeffWidth = A.getBitWidth();
 2844   assert(CoeffWidth == B.getBitWidth() && CoeffWidth == C.getBitWidth());
 2844   assert(CoeffWidth == B.getBitWidth() && CoeffWidth == C.getBitWidth());
 3032   assert(A.getBitWidth() == B.getBitWidth() && "Must have the same bitwidth");
 3032   assert(A.getBitWidth() == B.getBitWidth() && "Must have the same bitwidth");
 3035   return A.getBitWidth() - ((A ^ B).countLeadingZeros() + 1);
 3042   assert((IntVal.getBitWidth()+7)/8 >= StoreBytes && "Integer too small!");
 3067   assert((IntVal.getBitWidth()+7)/8 >= LoadBytes && "Integer too small!");
lib/Support/StringRef.cpp
  537   if (BitWidth < Result.getBitWidth())
  538     BitWidth = Result.getBitWidth(); // don't shrink the result
  539   else if (BitWidth > Result.getBitWidth())
lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
 1903   Imm = AArch64_AM::decodeLogicalImmediate(Imm, UsefulBits.getBitWidth());
 1904   UsefulBits &= APInt(UsefulBits.getBitWidth(), Imm);
 1926     OpUsefulBits <<= OpUsefulBits.getBitWidth() - Imm;
 1929     OpUsefulBits.lshrInPlace(OpUsefulBits.getBitWidth() - Imm);
 1983   APInt ResultUsefulBits(UsefulBits.getBitWidth(), 0);
 1985   APInt Mask(UsefulBits.getBitWidth(), 0);
 2009     uint64_t LSB = UsefulBits.getBitWidth() - Imm;
 2064     UsefulBits &= APInt(UsefulBits.getBitWidth(), 0xff);
 2071     UsefulBits &= APInt(UsefulBits.getBitWidth(), 0xffff);
 2086   APInt UsersUsefulBits(UsefulBits.getBitWidth(), 0);
lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  177     if ((Idx < 2) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue())))
  182     if ((Idx < 4) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue())))
lib/Target/AMDGPU/SIInstrInfo.cpp
 2811   switch (Imm.getBitWidth()) {
lib/Target/ARM/ARMCodeGenPrepare.cpp
  371   APInt Total = ICmpConst->getValue().getBitWidth() < 32 ?
  374   Total += OverflowConst->getValue().getBitWidth() < 32 ?
  379   if (Total.getBitWidth() > Max.getBitWidth()) {
  379   if (Total.getBitWidth() > Max.getBitWidth()) {
  380     if (Total.ugt(Max.zext(Total.getBitWidth())))
  382   } else if (Max.getBitWidth() > Total.getBitWidth()) {
  382   } else if (Max.getBitWidth() > Total.getBitWidth()) {
  383     if (Total.zext(Max.getBitWidth()).ugt(Max))
lib/Target/ARM/ARMISelDAGToDAG.cpp
 2838   unsigned FirstOne = A.getBitWidth() - A.countLeadingZeros() - 1;
lib/Target/ARM/ARMISelLowering.cpp
 5633   APInt NewIndex(APIntIndex.getBitWidth(), DstNumElt);
 5636   if (NewIndex.getBitWidth() > 32)
11709   APInt Mask = APInt::getHighBitsSet(C2Int.getBitWidth(),
11710                                      C2Int.getBitWidth() - C2->getZExtValue());
11720     return Imm.getBitWidth() - Zeros > 8;
12384             if (SplatBits0.getBitWidth() == SplatBits1.getBitWidth() &&
12384             if (SplatBits0.getBitWidth() == SplatBits1.getBitWidth() &&
12445   FromMask = APInt::getLowBitsSet(ToMask.getBitWidth(), ToMask.countPopulation());
12465   unsigned FirstActiveBitInB = B.getBitWidth() - B.countLeadingZeros() - 1;
lib/Target/ARM/ARMTargetTransformInfo.cpp
  869   if (SE.getUnsignedRangeMax(TripCountSCEV).getBitWidth() > 32)
lib/Target/Hexagon/BitTracker.cpp
  424   uint16_t BW = A.getBitWidth();
  425   assert((unsigned)BW == A.getBitWidth() && "BitWidth overflow");
lib/Target/Hexagon/HexagonConstPropagation.cpp
 1207   unsigned W1 = A1.getBitWidth();
 1208   unsigned W2 = A2.getBitWidth();
 1580   unsigned BW = A1.getBitWidth();
 1611   unsigned BW = A1.getBitWidth();
 1676   unsigned BW = A1.getBitWidth();
 1711   unsigned BW = A1.getBitWidth();
 1757   unsigned BW = A1.getBitWidth();
 1806   unsigned BW = A1.getBitWidth(), SW = Count*Bits;
 2096         if (constToInt(CI, C) && C.getBitWidth() > 32)
 2128         if (constToInt(CI, C) && C.getBitWidth() > 32)
 2522     assert(LoVs[i].getBitWidth() == 32);
 2528     assert(HiVs[i].getBitWidth() == 32);
lib/Target/Hexagon/HexagonISelDAGToDAG.cpp
 1114     if (SN->getAPIntValue().getBitWidth() != 32)
 1122     if (MN->getAPIntValue().getBitWidth() != 32)
lib/Target/Mips/MipsInstructionSelector.cpp
  131   assert(Imm.getBitWidth() == 32 && "Unsupported immediate size.");
lib/Target/Mips/MipsSEISelDAGToDAG.cpp
  558       ImmValue.getBitWidth() == EltTy.getSizeInBits()) {
  634       ImmValue.getBitWidth() == EltTy.getSizeInBits()) {
  665       ImmValue.getBitWidth() == EltTy.getSizeInBits()) {
  699       ImmValue.getBitWidth() == EltTy.getSizeInBits()) {
  721       ImmValue.getBitWidth() == EltTy.getSizeInBits()) {
lib/Target/Mips/MipsSEISelLowering.cpp
  630           Mask.getBitWidth() == InvMask.getBitWidth() && Mask == ~InvMask)
  630           Mask.getBitWidth() == InvMask.getBitWidth() && Mask == ~InvMask)
  633                Mask.getBitWidth() == InvMask.getBitWidth() && Mask == ~InvMask)
  633                Mask.getBitWidth() == InvMask.getBitWidth() && Mask == ~InvMask)
  647           Mask.getBitWidth() == InvMask.getBitWidth() && Mask == ~InvMask)
  647           Mask.getBitWidth() == InvMask.getBitWidth() && Mask == ~InvMask)
  650                Mask.getBitWidth() == InvMask.getBitWidth() && Mask == ~InvMask)
  650                Mask.getBitWidth() == InvMask.getBitWidth() && Mask == ~InvMask)
  748   unsigned BitWidth = C.getBitWidth();
  807   unsigned BitWidth = C.getBitWidth();
lib/Target/PowerPC/PPCTargetTransformInfo.cpp
   71   if (Imm.getBitWidth() <= 64) {
  105     if ((Idx == 1) && Imm.getBitWidth() <= 64 && isInt<16>(Imm.getSExtValue()))
  109     if ((Idx < 2) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue())))
  114     if ((Idx < 4) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue())))
  179   if (Idx == ImmIdx && Imm.getBitWidth() <= 64) {
  184       if (Imm.getBitWidth() <= 32 &&
lib/Target/SystemZ/SystemZISelLowering.cpp
  749   unsigned Width = SplatBits.getBitWidth();
 6316            (DemandedElts.getBitWidth() == VT.getVectorNumElements())) &&
lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
   48   if (Imm.getBitWidth() <= 64) {
   89     if (Idx == 0 && Imm.getBitWidth() <= 64) {
   99     if (Idx == 1 && Imm.getBitWidth() <= 64) {
  110     if (Idx == 1 && Imm.getBitWidth() <= 64) {
  120     if (Idx == 1 && Imm.getBitWidth() <= 64) {
  128     if (Idx == 1 && Imm.getBitWidth() <= 64) {
  138     if (Idx == 1 && Imm.getBitWidth() <= 64) {
  204     if (Idx == 1 && Imm.getBitWidth() <= 64) {
  214     if (Idx == 1 && Imm.getBitWidth() <= 64) {
  220     if ((Idx < 2) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue())))
  225     if ((Idx < 4) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue())))
lib/Target/WebAssembly/MCTargetDesc/WebAssemblyInstPrinter.cpp
  192                          (AI.getBitWidth() == 32 ? INT64_C(0x007fffff)
lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp
  421   assert(Mask.getBitWidth() == NumDefs + NumImplicitDefs &&
lib/Target/X86/X86ISelDAGToDAG.cpp
  623             Imm->getAPIntValue().getBitWidth() == 64 &&
 3916   APInt HighZeros = APInt::getHighBitsSet(MaskVal.getBitWidth(), MaskLZ);
 3926   if (VT == MVT::i64 && MaskVal.getBitWidth() < 64) {
lib/Target/X86/X86ISelLowering.cpp
 5393   assert(Bits.size() == Undefs.getBitWidth() &&
 5413     assert(V.getBitWidth() == VT.getScalarSizeInBits() && "Unexpected sizes");
 5970     unsigned NumSrcElts = UndefSrcElts.getBitWidth();
 5971     unsigned SrcEltSizeInBits = SrcEltBits[0].getBitWidth();
 6358   int NumElts = DemandedElts.getBitWidth();
 6383   int NumElts = DemandedElts.getBitWidth();
 6815   assert(KnownUndef.getBitWidth() == NumElts &&
 6816          KnownZero.getBitWidth() == NumElts && "Shuffle mask size mismatch");
 6866   assert(NumElts == DemandedElts.getBitWidth() && "Unexpected vector size");
34257   int NumElts = DemandedElts.getBitWidth();
34712   unsigned BitWidth = OriginalDemandedBits.getBitWidth();
34995   int NumElts = DemandedElts.getBitWidth();
35327   EVT IntVT = EVT::getIntegerVT(*DAG.getContext(), Imm.getBitWidth());
37646         assert(Diff.getBitWidth() == N->getValueType(0).getSizeInBits() &&
lib/Target/X86/X86MCInstLower.cpp
 1710   if (Val.getBitWidth() <= 64) {
lib/Target/X86/X86TargetTransformInfo.cpp
 2990     if (Idx == 1 && Imm.getBitWidth() == 64) {
 3001     if (Idx == 1 && Imm.getBitWidth() == 64 && isUInt<32>(Imm.getZExtValue()))
 3008     if (Idx == 1 && Imm.getBitWidth() == 64 && Imm.getZExtValue() == 0x80000000)
 3076     if ((Idx == 1) && Imm.getBitWidth() <= 64 && isInt<32>(Imm.getSExtValue()))
 3080     if ((Idx < 2) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue())))
 3085     if ((Idx < 4) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue())))
lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
  205   if (BitIndex >= MOps.Mask.getBitWidth())
lib/Transforms/InstCombine/InstCombineAddSub.cpp
  840       C1->isNegative() && C1->sge(-C2->sext(C1->getBitWidth()))) {
  842         ConstantInt::get(X->getType(), *C2 + C1->trunc(C2->getBitWidth()));
  958     C = APInt(AI->getBitWidth(), 1);
 1003       C = APInt(AI->getBitWidth(), 1);
lib/Transforms/InstCombine/InstCombineCalls.cpp
 1095   APInt UndefElts(DemandedElts.getBitWidth(), 0);
 1133   APInt UndefElts(DemandedElts.getBitWidth(), 0);
lib/Transforms/InstCombine/InstCombineCasts.cpp
 1292                                   KnownZeroMask.getBitWidth() - 1), "sext");
lib/Transforms/InstCombine/InstCombineCompares.cpp
  104   assert(Known.getBitWidth() == Min.getBitWidth() &&
  105          Known.getBitWidth() == Max.getBitWidth() &&
  126   assert(Known.getBitWidth() == Min.getBitWidth() &&
  127          Known.getBitWidth() == Max.getBitWidth() &&
 1114                                    APInt::getMaxValue(C.getBitWidth()) - C);
 1125   APInt SMax = APInt::getSignedMaxValue(C.getBitWidth());
 1231         ConstantInt::get(A->getType(), AP2.getBitWidth() - AP2TrailingZeros));
 1533   if (C.isOneValue() && C.getBitWidth() > 1) {
 1968   unsigned TypeBits = C.getBitWidth();
 2036   unsigned TypeBits = C.getBitWidth();
 2184   unsigned TypeBits = C.getBitWidth();
 2372   APInt RangeSize = Div->isExact() ? APInt(C2->getBitWidth(), 1) : *C2;
 3028   unsigned BitWidth = C.getBitWidth();
 3116   unsigned BitWidth = C.getBitWidth();
 3968               APInt::getLowBitsSet(C->getBitWidth(), C->getBitWidth() - TZs));
 3968               APInt::getLowBitsSet(C->getBitWidth(), C->getBitWidth() - TZs));
 4579           if (CVal.getBitWidth() - CVal.countLeadingZeros() > MulWidth)
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
  223           if (match(NewCst, m_APInt(V)) && *V != V->getBitWidth() - 1)
  371   if (match(Op0, m_LShr(m_Value(X), m_APInt(C))) && *C == C->getBitWidth() - 1)
  373   if (match(Op1, m_LShr(m_Value(X), m_APInt(C))) && *C == C->getBitWidth() - 1)
  657   assert(C1.getBitWidth() == C2.getBitWidth() && "Constant widths not equal");
  657   assert(C1.getBitWidth() == C2.getBitWidth() && "Constant widths not equal");
  667   APInt Remainder(C1.getBitWidth(), /*val=*/0ULL, IsSigned);
  704       APInt Product(C1->getBitWidth(), /*val=*/0ULL, IsSigned);
  712       APInt Quotient(C1->getBitWidth(), /*val=*/0ULL, IsSigned);
  734          *C1 != C1->getBitWidth() - 1) ||
  736       APInt Quotient(C1->getBitWidth(), /*val=*/0ULL, IsSigned);
  738           C1->getBitWidth(), static_cast<unsigned>(C1->getLimitedValue()));
lib/Transforms/InstCombine/InstCombineSelect.cpp
  170     if (TC.getBitWidth() != AndMask.getBitWidth() || (TC ^ FC) != AndMask)
  170     if (TC.getBitWidth() != AndMask.getBitWidth() || (TC ^ FC) != AndMask)
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
  121   uint32_t BitWidth = DemandedMask.getBitWidth();
  335           CTZ >= C->getBitWidth() - C->countLeadingOnes())
  767   unsigned BitWidth = DemandedMask.getBitWidth();
lib/Transforms/InstCombine/InstructionCombining.cpp
 1165          Scale.getBitWidth() && "Scale not compatible with value!");
 1272           getLimitedValue(Scale.getBitWidth());
 1305         if (SmallScale.sext(Scale.getBitWidth()) != Scale)
lib/Transforms/Instrumentation/MemorySanitizer.cpp
 2147           APInt V2 = APInt(V.getBitWidth(), 1) << V.countTrailingZeros();
 2157         APInt V2 = APInt(V.getBitWidth(), 1) << V.countTrailingZeros();
lib/Transforms/Scalar/ConstantHoisting.cpp
  513   unsigned BW = V1.getBitWidth() > V2.getBitWidth() ?
  513   unsigned BW = V1.getBitWidth() > V2.getBitWidth() ?
  514                 V1.getBitWidth() : V2.getBitWidth();
  514                 V1.getBitWidth() : V2.getBitWidth();
  679       if ((Diff.getBitWidth() <= 64) &&
lib/Transforms/Scalar/DeadStoreElimination.cpp
 1234             unsigned LaterBits = LaterValue.getBitWidth();
 1235             assert(EarlierValue.getBitWidth() > LaterValue.getBitWidth());
 1235             assert(EarlierValue.getBitWidth() > LaterValue.getBitWidth());
 1236             LaterValue = LaterValue.zext(EarlierValue.getBitWidth());
 1242                     ? EarlierValue.getBitWidth() - BitOffsetDiff - LaterBits
 1245                 APInt::getBitsSet(EarlierValue.getBitWidth(), LShiftAmount,
lib/Transforms/Scalar/GuardWidening.cpp
  727     unsigned BitWidth = MaxOffset->getValue().getBitWidth();
lib/Transforms/Scalar/Reassociate.cpp
  342   unsigned Bitwidth = LHS.getBitWidth();
lib/Transforms/Scalar/SROA.cpp
  749               APInt(Offset.getBitWidth(), SL->getElementOffset(ElementIdx));
  753           APInt Index = OpC->getValue().sextOrTrunc(Offset.getBitWidth());
  754           GEPOffset += Index * APInt(Offset.getBitWidth(),
 1486     APInt ElementSize(Offset.getBitWidth(), ElementSizeInBits / 8);
 1498     APInt ElementSize(Offset.getBitWidth(), DL.getTypeAllocSize(ElementTy));
 1518   Offset -= APInt(Offset.getBitWidth(), SL->getElementOffset(Index));
 1552   APInt ElementSize(Offset.getBitWidth(), DL.getTypeAllocSize(ElementTy));
 1595   APInt Int8PtrOffset(Offset.getBitWidth(), 0);
 1609       APInt GEPOffset(Offset.getBitWidth(), 0);
lib/Transforms/Scalar/StraightLineStrengthReduce.cpp
  564   if (A.getBitWidth() < B.getBitWidth())
  564   if (A.getBitWidth() < B.getBitWidth())
  565     A = A.sext(B.getBitWidth());
  566   else if (A.getBitWidth() > B.getBitWidth())
  566   else if (A.getBitWidth() > B.getBitWidth())
  567     B = B.sext(A.getBitWidth());
  582         IndexOffset.getBitWidth(),
  604       IntegerType::get(Basis.Ins->getContext(), IndexOffset.getBitWidth());
lib/Transforms/Utils/FunctionComparator.cpp
   67   if (int Res = cmpNumbers(L.getBitWidth(), R.getBitWidth()))
   67   if (int Res = cmpNumbers(L.getBitWidth(), R.getBitWidth()))
lib/Transforms/Utils/SimplifyCFG.cpp
 5068         TableInt |= Val->getValue().zext(TableInt.getBitWidth());
lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
  472     APInt BitsAllowedToBeSet = Known.Zero.zext(IdxDiff.getBitWidth());
lib/Transforms/Vectorize/SLPVectorizer.cpp
 5109         Mask.getBitWidth() - Mask.countLeadingZeros(), MaxBitWidth);
tools/clang/include/clang/AST/APValue.h
  563     assert(R.getBitWidth() == I.getBitWidth() &&
  563     assert(R.getBitWidth() == I.getBitWidth() &&
tools/clang/include/clang/AST/ASTContext.h
 2689     if (Width != Res.getBitWidth())
tools/clang/include/clang/Basic/FixedPoint.h
   99      assert(Val.getBitWidth() == Sema.getWidth() &&
tools/clang/include/clang/StaticAnalyzer/Checkers/SValExplainer.h
   81     OS << (I.isSigned() ? "signed " : "unsigned ") << I.getBitWidth()
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/APSIntType.h
   28     : BitWidth(Value.getBitWidth()), IsUnsigned(Value.isUnsigned()) {}
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTConstraintManager.h
  142                               : Solver->mkBitvector(Value, Value.getBitWidth()),
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTConv.h
  390           Solver->mkBitvector(NewRInt, NewRInt.getBitWidth());
  398           Solver->mkBitvector(NewLInt, NewLInt.getBitWidth());
  511         Solver->mkBitvector(NewFromInt, NewFromInt.getBitWidth());
  526         Solver->mkBitvector(NewToInt, NewToInt.getBitWidth());
  545     return Ctx.getIntTypeForBitwidth(Int.getBitWidth(), Int.isSigned());
  556     if (Int.getBitWidth() == 1 && getAPSIntType(Ctx, Int).isNull()) {
tools/clang/lib/AST/ASTImporter.cpp
 2060          FromVal.getBitWidth() == ToVal.getBitWidth() &&
 2060          FromVal.getBitWidth() == ToVal.getBitWidth() &&
tools/clang/lib/AST/Expr.cpp
  325     ConstantExprBits.BitWidth = Value.getInt().getBitWidth();
  901   BitWidth = Val.getBitWidth();
  919   assert(V.getBitWidth() == C.getIntWidth(type) &&
  942   assert(V.getBitWidth() == C.getTypeInfo(type).Width &&
tools/clang/lib/AST/ExprConstant.cpp
  470         N = N.extend(std::max<unsigned>(N.getBitWidth() + 1, 65));
 1759     Int = Int.extend(Int.getBitWidth() + 1);
 2403   unsigned OldBitWidth = Int.getBitWidth();
 2443       unsigned BaseEltSize = EltAsInt.getBitWidth();
 2471   Result = Value.trunc(LHS.getBitWidth());
 2492     return CheckedIntArithmetic(Info, E, LHS, RHS, LHS.getBitWidth() * 2,
 2495     return CheckedIntArithmetic(Info, E, LHS, RHS, LHS.getBitWidth() + 1,
 2498     return CheckedIntArithmetic(Info, E, LHS, RHS, LHS.getBitWidth() + 1,
 2514       return HandleOverflow(Info, E, -LHS.extend(LHS.getBitWidth() + 1),
 2520       RHS &= APSInt(llvm::APInt(RHS.getBitWidth(),
 2521                     static_cast<uint64_t>(LHS.getBitWidth() - 1)),
 2533     unsigned SA = (unsigned) RHS.getLimitedValue(LHS.getBitWidth()-1);
 2536         << RHS << E->getType() << LHS.getBitWidth();
 2553       RHS &= APSInt(llvm::APInt(RHS.getBitWidth(),
 2554                     static_cast<uint64_t>(LHS.getBitWidth() - 1)),
 2566     unsigned SA = (unsigned) RHS.getLimitedValue(LHS.getBitWidth()-1);
 2569         << RHS << E->getType() << LHS.getBitWidth();
 4007         unsigned BitWidth = Value.getBitWidth();
 5995   APInt ElemSizeAP(ByteSize.getBitWidth(), ElemSize.getQuantity());
 8562           std::max(CAT->getSize().getBitWidth(), ArrayBound.getBitWidth());
 8562           std::max(CAT->getSize().getBitWidth(), ArrayBound.getBitWidth());
 9656     assert(SI.getBitWidth() == Info.Ctx.getIntWidth(E->getType()) &&
 9668     assert(I.getBitWidth() == Info.Ctx.getIntWidth(E->getType()) &&
 9903     bool SameWidth = (ECD->getInitVal().getBitWidth()
10563     return Success(Val.getBitWidth() - Val.getMinSignedBits(), E);
10626     return Success(N == Val.getBitWidth() ? 0 : N + 1, E);
10991       uint64_t LHSSize = LHS.getBitWidth();
10992       uint64_t RHSSize = RHS.getBitWidth();
12039         !HandleOverflow(Info, E, -Value.extend(Value.getBitWidth() + 1),
12676     Result.IntReal = APSInt(Imag.getBitWidth(), !Imag.isSigned());
12788     Result.IntImag = APSInt(Real.getBitWidth(), !Real.isSigned());
tools/clang/lib/AST/ItaniumMangle.cpp
 1019   unsigned numCharacters = (valueBits.getBitWidth() + 3) / 4;
tools/clang/lib/AST/TemplateBase.cpp
   90   Integer.BitWidth = Value.getBitWidth();
tools/clang/lib/AST/Type.cpp
  156   if ((ElementSize >> 32) == 0 && NumElements.getBitWidth() <= 64 &&
  166                                               SizeExtended.getBitWidth()) * 2);
  168   llvm::APSInt TotalSize(llvm::APInt(SizeExtended.getBitWidth(), ElementSize));
 4151   FixedPointSemantics FXSema(Val.getBitWidth(), Scale, Val.isSigned(),
tools/clang/lib/Analysis/CFG.cpp
 1081     if (L1.isSigned() != L2.isSigned() || L1.getBitWidth() != L2.getBitWidth())
 1081     if (L1.isSigned() != L2.isSigned() || L1.getBitWidth() != L2.getBitWidth())
 1088       llvm::APSInt::getMinValue(L1.getBitWidth(), L1.isUnsigned()),
 1092       ((L1 < L2) ? L1 : L2) + llvm::APSInt(llvm::APInt(L1.getBitWidth(), 1),
 1097       llvm::APSInt::getMaxValue(L1.getBitWidth(), L1.isUnsigned()),
tools/clang/lib/Basic/FixedPoint.cpp
   28     NewVal = NewVal.extend(NewVal.getBitWidth() + DstScale - getScale());
   35       NewVal.getBitWidth(),
   36       std::min(DstScale + DstSema.getIntegralBits(), NewVal.getBitWidth()));
   69   unsigned OtherWidth = OtherVal.getBitWidth();
   71   unsigned CommonWidth = std::max(Val.getBitWidth(), OtherWidth);
  188   unsigned Width = Val.getBitWidth() + 4;
  254       Value.getBitWidth(), Value.isSigned());
tools/clang/lib/CodeGen/CGDecl.cpp
 1180       assert(AP.getBitWidth() <= 8);
tools/clang/lib/CodeGen/CGExprConstant.cpp
  195         std::min((uint64_t)Bits.getBitWidth(), CharWidth - OffsetWithinChar);
  200     if (BitsThisChar.getBitWidth() < CharWidth)
  205       int Shift = Bits.getBitWidth() - CharWidth + OffsetWithinChar;
  213     if (BitsThisChar.getBitWidth() > CharWidth)
  267     if (WantedBits == Bits.getBitWidth())
  273     Bits = Bits.trunc(Bits.getBitWidth() - WantedBits);
  598   if (FieldSize > FieldValue.getBitWidth())
  602   if (FieldSize < FieldValue.getBitWidth())
tools/clang/lib/CodeGen/CGStmt.cpp
 1193   if (Range.ult(llvm::APInt(Range.getBitWidth(), 64))) {
tools/clang/lib/Lex/LiteralSupport.cpp
 1005   llvm::APInt RadixVal(Val.getBitWidth(), radix);
 1006   llvm::APInt CharVal(Val.getBitWidth(), 0);
 1163   auto MaxVal = llvm::APInt::getMaxValue(StoreVal.getBitWidth());
 1164   if (Val.getBitWidth() > StoreVal.getBitWidth()) {
 1164   if (Val.getBitWidth() > StoreVal.getBitWidth()) {
 1165     IntOverflowOccurred |= Val.ugt(MaxVal.zext(Val.getBitWidth()));
 1166     StoreVal = Val.trunc(StoreVal.getBitWidth());
 1167   } else if (Val.getBitWidth() < StoreVal.getBitWidth()) {
 1167   } else if (Val.getBitWidth() < StoreVal.getBitWidth()) {
 1168     IntOverflowOccurred |= Val.zext(MaxVal.getBitWidth()).ugt(MaxVal);
 1169     StoreVal = Val.zext(StoreVal.getBitWidth());
tools/clang/lib/Lex/PPExpressions.cpp
   58   unsigned getBitWidth() const { return Val.getBitWidth(); }
  378     if (Result.Val.getBitWidth() > Val.getBitWidth()) {
  378     if (Result.Val.getBitWidth() > Val.getBitWidth()) {
  379       Result.Val = Val.extend(Result.Val.getBitWidth());
  381       assert(Result.Val.getBitWidth() == Val.getBitWidth() &&
  381       assert(Result.Val.getBitWidth() == Val.getBitWidth() &&
tools/clang/lib/Sema/SemaChecking.cpp
 6687   unsigned BitWidth = Offset.getBitWidth();
 6688   unsigned AddendBitWidth = Addend.getBitWidth();
10161   if (value.getBitWidth() > MaxWidth)
10567     assert(Value.getBitWidth() == PromotedMin.getBitWidth() &&
10567     assert(Value.getBitWidth() == PromotedMin.getBitWidth() &&
10702   PromotedRange OtherPromotedRange(OtherRange, Value.getBitWidth(),
10994   unsigned OriginalWidth = Value.getBitWidth();
13295           size *= llvm::APInt(size.getBitWidth(), ratio);
13299     if (size.getBitWidth() > index.getBitWidth())
13299     if (size.getBitWidth() > index.getBitWidth())
13300       index = index.zext(size.getBitWidth());
13301     else if (size.getBitWidth() < index.getBitWidth())
13301     else if (size.getBitWidth() < index.getBitWidth())
13302       size = size.zext(index.getBitWidth());
tools/clang/lib/Sema/SemaDecl.cpp
17021           EnumVal = EnumVal.zext(EnumVal.getBitWidth() * 2);
17331         FlagBits = FlagBits.zextOrSelf(EVal.getBitWidth()) | EVal;
17343   llvm::APInt FlagMask = ~FlagBits.zextOrTrunc(Val.getBitWidth());
tools/clang/lib/Sema/SemaExpr.cpp
 3615       assert(Context.getTypeSize(Ty) == ResultVal.getBitWidth() &&
 3712       if (ResultVal.getBitWidth() != Width)
 9812   llvm::APInt LeftBits(Right.getBitWidth(),
 9871     << Left.getBitWidth() << LHS.get()->getSourceRange()
11199   if (LeftSideValue.getBitWidth() != RightSideValue.getBitWidth())
11199   if (LeftSideValue.getBitWidth() != RightSideValue.getBitWidth())
tools/clang/lib/Sema/SemaInit.cpp
 1866   llvm::APSInt maxElements(elementIndex.getBitWidth(),
 1871     elementIndex = elementIndex.extOrTrunc(maxElements.getBitWidth());
 1896       if (elementIndex.getBitWidth() > maxElements.getBitWidth())
 1896       if (elementIndex.getBitWidth() > maxElements.getBitWidth())
 1897         maxElements = maxElements.extend(elementIndex.getBitWidth());
 1898       else if (elementIndex.getBitWidth() < maxElements.getBitWidth())
 1898       else if (elementIndex.getBitWidth() < maxElements.getBitWidth())
 1899         elementIndex = elementIndex.extend(maxElements.getBitWidth());
 1931     llvm::APSInt Zero(maxElements.getBitWidth(), maxElements.isUnsigned());
 2824       = DesignatedStartIndex.extOrTrunc(MaxElements.getBitWidth());
 2827       = DesignatedEndIndex.extOrTrunc(MaxElements.getBitWidth());
 3182         } else if (StartValue.getBitWidth() > EndValue.getBitWidth())
 3182         } else if (StartValue.getBitWidth() > EndValue.getBitWidth())
 3183           EndValue = EndValue.extend(StartValue.getBitWidth());
 3184         else if (StartValue.getBitWidth() < EndValue.getBitWidth())
 3184         else if (StartValue.getBitWidth() < EndValue.getBitWidth())
 3185           StartValue = StartValue.extend(EndValue.getBitWidth());
tools/clang/lib/Sema/SemaOverload.cpp
  449           InitializerValue.getBitWidth() + 1);
  454         ConvertedValue = ConvertedValue.extend(InitializerValue.getBitWidth());
 2127         llvm::APSInt ToSize(BitWidth.getBitWidth(), BitWidth.isUnsigned());
tools/clang/lib/Sema/SemaStmt.cpp
  771   if (UnpromotedWidth < Val.getBitWidth()) {
  774     AdjustAPSInt(ConvVal, Val.getBitWidth(), Val.isSigned());
  973              (ConstantCondValue.getBitWidth() == CondWidth &&
tools/clang/lib/Sema/SemaTemplate.cpp
 3024     for (llvm::APSInt I(NumArgs.getBitWidth(), NumArgs.isUnsigned());
 6684       if (Value.getBitWidth() != AllowedBits)
 6693       if (Value.getBitWidth() != AllowedBits)
tools/clang/lib/Sema/SemaTemplateDeduction.cpp
  115   if (Y.getBitWidth() > X.getBitWidth())
  115   if (Y.getBitWidth() > X.getBitWidth())
  116     X = X.extend(Y.getBitWidth());
  117   else if (Y.getBitWidth() < X.getBitWidth())
  117   else if (Y.getBitWidth() < X.getBitWidth())
  118     Y = Y.extend(X.getBitWidth());
tools/clang/lib/Sema/SemaType.cpp
 5914     llvm::APSInt max(addrSpace.getBitWidth());
tools/clang/lib/Sema/TreeTransform.h
12919     if (Size->getBitWidth() == SemaRef.Context.getIntWidth(Types[I])) {
tools/clang/lib/Serialization/ASTWriter.cpp
 5438   Record->push_back(Value.getBitWidth());
tools/clang/lib/Serialization/ASTWriterStmt.cpp
  524   if (E->getValue().getBitWidth() == 32) {
tools/clang/lib/StaticAnalyzer/Checkers/IdenticalExprChecker.cpp
  470     if (I1.getBitWidth() != I2.getBitWidth())
  470     if (I1.getBitWidth() != I2.getBitWidth())
tools/clang/lib/StaticAnalyzer/Core/BasicValueFactory.cpp
  239       if (Amt >= V1.getBitWidth())
  262       if (Amt >= V1.getBitWidth())
tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
 2366     assert(V1.getBitWidth() == getContext().getIntWidth(CondE->getType()));
tools/clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
  852     assert(IV.getBitWidth() == getContext().getTypeSize(OOE->getType()));
tools/clang/lib/StaticAnalyzer/Core/LoopUnrolling.cpp
  217   if (InitNum.getBitWidth() != BoundNum.getBitWidth()) {
  217   if (InitNum.getBitWidth() != BoundNum.getBitWidth()) {
  218     InitNum = InitNum.zextOrSelf(BoundNum.getBitWidth());
  219     BoundNum = BoundNum.zextOrSelf(InitNum.getBitWidth());
tools/clang/lib/StaticAnalyzer/Core/SValBuilder.cpp
  106     if (I.getBitWidth() == ArrayIndexWidth && I.isSigned())
tools/clang/lib/StaticAnalyzer/Core/SVals.cpp
  318          << Value.getBitWidth() << 'b';
tools/clang/lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp
   99          From.getBitWidth() == To.getBitWidth() &&
   99          From.getBitWidth() == To.getBitWidth() &&
tools/clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp
  293     uint64_t ValWidth = RHS.getBitWidth();
 1145       rightI = rightI.extOrTrunc(leftI.getBitWidth());
 1148       llvm::APSInt Multiplicand(rightI.getBitWidth(), /* isUnsigned */ true);
tools/clang/tools/extra/clang-tidy/misc/RedundantExpressionCheck.cpp
   93     return LeftLit.getBitWidth() == RightLit.getBitWidth() &&
   93     return LeftLit.getBitWidth() == RightLit.getBitWidth() &&
tools/lldb/include/lldb/Utility/Scalar.h
  102     m_type = GetBestTypeForBitSize(m_integer.getBitWidth(), true);
tools/lldb/source/Expression/IRInterpreter.cpp
  291           value += APInt(value.getBitWidth(), offset, is_signed);
tools/lldb/source/Utility/Scalar.cpp
  119       size_t byte_size = m_integer.getBitWidth() / 8;
  200     return (m_integer.getBitWidth() / 8);
  212   llvm::APInt zero_int = llvm::APInt::getNullValue(m_integer.getBitWidth() / 8);
  380   switch (m_integer.getBitWidth()) {
 2694               ~(sign_bit) + llvm::APInt(m_integer.getBitWidth(), 1);
tools/llvm-exegesis/lib/AArch64/Target.cpp
   29   if (Value.getBitWidth() > RegBitWidth)
tools/llvm-exegesis/lib/Mips/Target.cpp
   38   if (Value.getBitWidth() > RegBitWidth)
tools/llvm-exegesis/lib/PowerPC/Target.cpp
   46   if (Value.getBitWidth() > RegBitWidth)
tools/llvm-exegesis/lib/X86/Target.cpp
  378   if (Value.getBitWidth() > RegBitWidth)
  503   assert(Constant_.getBitWidth() <= Bytes * 8 &&
  505   const APInt WideConstant = Constant_.getBitWidth() < Bytes * 8
tools/polly/lib/CodeGen/IslExprBuilder.cpp
   82     auto BitWidth = APValue.getBitWidth();
  757   auto BitWidth = APValue.getBitWidth();
tools/polly/lib/Support/GICHelper.cpp
   36     Abs = Int.sext(Int.getBitWidth() + 1).abs();
   70     A = A.zext(A.getBitWidth() + 1);
   77   if (A.getMinSignedBits() < A.getBitWidth())
tools/polly/unittests/Isl/IslTest.cpp
  171     EXPECT_EQ(1u, APNOne.getBitWidth());
  179     EXPECT_EQ(2u, APNTwo.getBitWidth());
  187     EXPECT_EQ(3u, APNThree.getBitWidth());
  195     EXPECT_EQ(3u, APNFour.getBitWidth());
  202     EXPECT_EQ(1u, APZero.getBitWidth());
  209     EXPECT_EQ(2u, APOne.getBitWidth());
  216     EXPECT_EQ(3u, APTwo.getBitWidth());
  223     EXPECT_EQ(3u, APThree.getBitWidth());
  230     EXPECT_EQ(4u, APFour.getBitWidth());
  237     EXPECT_EQ(33u, APNOne.getBitWidth());
  246     EXPECT_EQ(61u, APLargeNum.getBitWidth());
  254     EXPECT_EQ(502u, APLargePow2.getBitWidth());
  262     EXPECT_EQ(501u, APLargeNPow2.getBitWidth());
  272     EXPECT_EQ(514u, APLargePow2.getBitWidth());
  280     EXPECT_EQ(513u, APLargeNPow2.getBitWidth());
unittests/ADT/APIntTest.cpp
 2754     assert(V0.getBitWidth() == V1.getBitWidth() && "Must have same bitwidth");
 2754     assert(V0.getBitWidth() == V1.getBitWidth() && "Must have same bitwidth");
 2758     for (int Bit = V0.getBitWidth() - 1; Bit >= 0; --Bit) {
unittests/ADT/APSIntTest.cpp
   45   EXPECT_EQ(64u, APSInt::get(7).getBitWidth());
   49   EXPECT_EQ(64u, APSInt::get(-7).getBitWidth());
   56   EXPECT_EQ(64u, APSInt::getUnsigned(7).getBitWidth());
   60   EXPECT_EQ(64u, APSInt::getUnsigned(-7).getBitWidth());