/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
H A D | APSIntType.h | 21 uint32_t BitWidth; member in class:clang::ento::APSIntType 26 : BitWidth(Width), IsUnsigned(Unsigned) {} 29 : BitWidth(Value.getBitWidth()), IsUnsigned(Value.isUnsigned()) {} 31 uint32_t getBitWidth() const { return BitWidth; } 41 Value = Value.extOrTrunc(BitWidth); 57 return llvm::APSInt(BitWidth, IsUnsigned); 62 return llvm::APSInt::getMinValue(BitWidth, IsUnsigned); 67 return llvm::APSInt::getMaxValue(BitWidth, IsUnsigned); 71 return (llvm::APSInt(BitWidth, IsUnsigned) = RawValue); 93 return BitWidth [all...] |
/external/llvm/lib/Analysis/ |
H A D | DemandedBits.cpp | 75 unsigned BitWidth = AB.getBitWidth(); local 84 [&](unsigned BitWidth, const Value *V1, const Value *V2) { 86 KnownZero = APInt(BitWidth, 0); 87 KnownOne = APInt(BitWidth, 0); 92 KnownZero2 = APInt(BitWidth, 0); 93 KnownOne2 = APInt(BitWidth, 0); 116 ComputeKnownBits(BitWidth, I, nullptr); 117 AB = APInt::getHighBitsSet(BitWidth, 118 std::min(BitWidth, KnownOne.countLeadingZeros()+1)); 126 ComputeKnownBits(BitWidth, 329 unsigned BitWidth = IT->getBitWidth(); local [all...] |
H A D | ValueTracking.cpp | 76 if (unsigned BitWidth = Ty->getScalarSizeInBits()) 77 return BitWidth; 239 unsigned BitWidth = KnownZero.getBitWidth(); local 241 // NLZ can't be BitWidth with no sign bit 242 APInt MaskV = APInt::getHighBitsSet(BitWidth, NLZ+1); 251 KnownZero = APInt::getHighBitsSet(BitWidth, NLZ2); 257 unsigned BitWidth = KnownZero.getBitWidth(); local 261 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0); 266 APInt CarryIn(BitWidth, 313 unsigned BitWidth = KnownZero.getBitWidth(); local 372 unsigned BitWidth = KnownZero.getBitWidth(); local 558 const unsigned BitWidth = KnownZero.getBitWidth(); local 735 unsigned BitWidth = KnownZero.getBitWidth(); local 989 unsigned BitWidth = KnownZero.getBitWidth(); local 1062 unsigned BitWidth = KnownZero.getBitWidth(); local 1616 unsigned BitWidth = KnownZero.getBitWidth(); local 1704 unsigned BitWidth = getBitWidth(V->getType(), DL); local 1783 unsigned BitWidth = V->getType()->getScalarSizeInBits(); local 1934 unsigned BitWidth = getBitWidth(V->getType()->getScalarType(), DL); local 2105 auto BitWidth = Ty->getBitWidth(); local 2830 unsigned BitWidth = DL.getPointerTypeSizeInBits(Ptr->getType()); local 3551 unsigned BitWidth = LHS->getType()->getScalarSizeInBits(); local [all...] |
H A D | ScalarEvolutionAliasAnalysis.cpp | 46 unsigned BitWidth = SE.getTypeSizeInBits(AS->getType()); local 47 APInt ASizeInt(BitWidth, LocA.Size); 48 APInt BSizeInt(BitWidth, LocB.Size);
|
H A D | ScalarEvolution.cpp | 1153 unsigned BitWidth = SE->getTypeSizeInBits(Step->getType()); local 1156 return SE->getConstant(APInt::getSignedMinValue(BitWidth) - 1161 return SE->getConstant(APInt::getSignedMaxValue(BitWidth) - 1173 unsigned BitWidth = SE->getTypeSizeInBits(Step->getType()); local 1176 return SE->getConstant(APInt::getMinValue(BitWidth) - 1285 unsigned BitWidth = SE->getTypeSizeInBits(AR->getType()); local 1286 Type *WideTy = IntegerType::get(SE->getContext(), BitWidth * 2); 1450 unsigned BitWidth = getTypeSizeInBits(AR->getType()); local 1480 Type *WideTy = IntegerType::get(getContext(), BitWidth * 2); 1521 const SCEV *N = getConstant(APInt::getMinValue(BitWidth) 1663 unsigned BitWidth = getTypeSizeInBits(AR->getType()); local 2134 uint64_t BitWidth = getTypeSizeInBits(Ty); variable [all...] |
/external/llvm/lib/ExecutionEngine/Orc/ |
H A D | OrcMCJITReplacement.cpp | 91 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth(); local 92 if (BitWidth == 1) 93 rv.IntVal = APInt(BitWidth, ((bool (*)())(intptr_t)FPtr)()); 94 else if (BitWidth <= 8) 95 rv.IntVal = APInt(BitWidth, ((char (*)())(intptr_t)FPtr)()); 96 else if (BitWidth <= 16) 97 rv.IntVal = APInt(BitWidth, ((short (*)())(intptr_t)FPtr)()); 98 else if (BitWidth <= 32) 99 rv.IntVal = APInt(BitWidth, ((int (*)())(intptr_t)FPtr)()); 100 else if (BitWidth < [all...] |
/external/llvm/lib/Support/ |
H A D | APInt.cpp | 91 assert(BitWidth && "Bitwidth too small"); 108 : BitWidth(numBits), VAL(0) { 113 : BitWidth(numBits), VAL(0) { 118 : BitWidth(numbits), VAL(0) { 119 assert(BitWidth && "Bitwidth too small"); 128 if (BitWidth == RHS.getBitWidth()) { 151 BitWidth = RHS.BitWidth; 167 ID.AddInteger(BitWidth); 253 assert(BitWidth [all...] |
H A D | StringRef.cpp | 473 unsigned BitWidth = Log2Radix * Str.size(); 474 if (BitWidth < Result.getBitWidth()) 475 BitWidth = Result.getBitWidth(); // don't shrink the result 476 else if (BitWidth > Result.getBitWidth()) 477 Result = Result.zext(BitWidth); 482 RadixAP = APInt(BitWidth, Radix); 483 CharAP = APInt(BitWidth, 0);
|
/external/llvm/include/llvm/IR/ |
H A D | ConstantRange.h | 52 explicit ConstantRange(uint32_t BitWidth, bool isFullSet = true); 203 /// zero extended to BitWidth. 204 ConstantRange zeroExtend(uint32_t BitWidth) const; 209 /// sign extended to BitWidth. 210 ConstantRange signExtend(uint32_t BitWidth) const; 216 ConstantRange truncate(uint32_t BitWidth) const; 218 /// Make this range have the bit width given by \p BitWidth. The 220 ConstantRange zextOrTrunc(uint32_t BitWidth) const; 222 /// Make this range have the bit width given by \p BitWidth. The 224 ConstantRange sextOrTrunc(uint32_t BitWidth) cons [all...] |
/external/llvm/include/llvm/ADT/ |
H A D | APInt.h | 74 unsigned BitWidth; ///< The number of bits in this APInt. member in class:llvm::APInt 98 APInt(uint64_t *val, unsigned bits) : BitWidth(bits), pVal(val) {} 103 bool isSingleWord() const { return BitWidth <= APINT_BITS_PER_WORD; } 138 unsigned wordBits = BitWidth % APINT_BITS_PER_WORD; 237 : BitWidth(numBits), VAL(0) { 238 assert(BitWidth && "bitwidth too small"); 279 APInt(const APInt &that) : BitWidth(that.BitWidth), VAL(0) { 287 APInt(APInt &&that) : BitWidth(that.BitWidth), VA 447 getSignBit(unsigned BitWidth) argument [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineSimplifyDemanded.cpp | 56 unsigned BitWidth = Inst.getType()->getScalarSizeInBits(); local 57 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); 58 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); 110 uint32_t BitWidth = DemandedMask.getBitWidth(); local 113 (!VTy->isIntOrIntVectorTy() || VTy->getScalarSizeInBits() == BitWidth) && 114 KnownZero.getBitWidth() == BitWidth && 115 KnownOne.getBitWidth() == BitWidth && 117 "must have same BitWidth"); 142 APInt LHSKnownZero(BitWidth, 814 unsigned BitWidth = Ty->getIntegerBitWidth(); local [all...] |
H A D | InstCombineAddSub.cpp | 876 int BitWidth = Op0KnownZero.getBitWidth(); local 878 Op0KnownZeroTemp.clearBit(BitWidth - 1); 879 int Op0ZeroPosition = BitWidth - Op0KnownZeroTemp.countLeadingZeros() - 1; 881 int Op1OnePosition = BitWidth - Op1MaybeOne.countLeadingZeros() - 1; 916 unsigned BitWidth = LHS->getType()->getScalarSizeInBits(); local 917 APInt LHSKnownZero(BitWidth, 0); 918 APInt LHSKnownOne(BitWidth, 0); 921 APInt RHSKnownZero(BitWidth, 0); 922 APInt RHSKnownOne(BitWidth, 0); 927 if ((LHSKnownOne[BitWidth 953 unsigned BitWidth = LHS->getType()->getScalarSizeInBits(); local 1581 unsigned BitWidth = I.getType()->getScalarSizeInBits(); local [all...] |
H A D | InstCombineCalls.cpp | 262 unsigned BitWidth = VT->getElementType()->getPrimitiveSizeInBits(); local 263 assert((64 % BitWidth) == 0 && "Unexpected packed shift size"); 264 unsigned NumSubElts = 64 / BitWidth; 270 Count = Count.shl(BitWidth); 281 unsigned BitWidth = SVT->getPrimitiveSizeInBits(); local 287 // Handle cases when Shift >= BitWidth. 288 if (Count.uge(BitWidth)) { 293 // If ArithmeticShift - clamp Shift to (BitWidth - 1). 294 Count = APInt(64, BitWidth - 1); 298 auto ShiftAmt = ConstantInt::get(SVT, Count.zextOrTrunc(BitWidth)); 821 uint32_t BitWidth = IT->getBitWidth(); local 839 uint32_t BitWidth = IT->getBitWidth(); local 1367 unsigned BitWidth = local [all...] |
H A D | InstCombineCasts.cpp | 368 uint32_t BitWidth = Ty->getScalarSizeInBits(); local 369 if (BitWidth < OrigBitWidth) { 370 APInt Mask = APInt::getHighBitsSet(OrigBitWidth, OrigBitWidth-BitWidth); 383 uint32_t BitWidth = Ty->getScalarSizeInBits(); local 384 if (CI->getLimitedValue(BitWidth) < BitWidth) 394 uint32_t BitWidth = Ty->getScalarSizeInBits(); local 396 APInt::getHighBitsSet(OrigBitWidth, OrigBitWidth-BitWidth), 0, CxtI) && 397 CI->getLimitedValue(BitWidth) < BitWidth) { 624 uint32_t BitWidth = Op1C->getType()->getBitWidth(); local 668 uint32_t BitWidth = ITy->getBitWidth(); local 999 unsigned BitWidth = Op1C->getType()->getBitWidth(); local [all...] |
/external/llvm/include/llvm/CodeGen/ |
H A D | ValueTypes.h | 55 static EVT getFloatingPointVT(unsigned BitWidth) { argument 56 return MVT::getFloatingPointVT(BitWidth); 61 static EVT getIntegerVT(LLVMContext &Context, unsigned BitWidth) { argument 62 MVT M = MVT::getIntegerVT(BitWidth); 65 return getExtendedIntegerVT(Context, BitWidth); 84 unsigned BitWidth = EltTy.getSizeInBits(); local 85 MVT IntTy = MVT::getIntegerVT(BitWidth); 278 unsigned BitWidth = getSizeInBits(); local 279 if (BitWidth <= 8) 281 return getIntegerVT(Context, 1 << Log2_32_Ceil(BitWidth)); [all...] |
/external/clang/lib/Basic/ |
H A D | TargetInfo.cpp | 183 unsigned BitWidth, bool IsSigned) const { 184 if (getCharWidth() == BitWidth) 186 if (getShortWidth() == BitWidth) 188 if (getIntWidth() == BitWidth) 190 if (getLongWidth() == BitWidth) 192 if (getLongLongWidth() == BitWidth) 197 TargetInfo::IntType TargetInfo::getLeastIntTypeByWidth(unsigned BitWidth, argument 199 if (getCharWidth() >= BitWidth) 201 if (getShortWidth() >= BitWidth) 203 if (getIntWidth() >= BitWidth) 182 getIntTypeByWidth( unsigned BitWidth, bool IsSigned) const argument [all...] |
/external/clang/lib/StaticAnalyzer/Core/ |
H A D | APSIntType.cpp | 42 if (MinBits <= BitWidth)
|
H A D | BasicValueFactory.cpp | 95 const llvm::APSInt& BasicValueFactory::getValue(uint64_t X, unsigned BitWidth, argument 97 llvm::APSInt V(BitWidth, isUnsigned);
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
H A D | FunctionLoweringInfo.cpp | 384 FunctionLoweringInfo::GetLiveOutRegInfo(unsigned Reg, unsigned BitWidth) { argument 392 if (BitWidth > LOI->KnownZero.getBitWidth()) { 394 LOI->KnownZero = LOI->KnownZero.zextOrTrunc(BitWidth); 395 LOI->KnownOne = LOI->KnownOne.zextOrTrunc(BitWidth); 417 unsigned BitWidth = IntVT.getSizeInBits(); local 428 APInt Zero(BitWidth, 0); 435 APInt Val = CI->getValue().zextOrTrunc(BitWidth); 447 const LiveOutInfo *SrcLOI = GetLiveOutRegInfo(SrcReg, BitWidth); 455 assert(DestLOI.KnownZero.getBitWidth() == BitWidth && 456 DestLOI.KnownOne.getBitWidth() == BitWidth [all...] |
H A D | TargetLowering.cpp | 337 unsigned BitWidth, 357 unsigned DemandedSize = BitWidth - Demanded.countLeadingZeros(); 361 for (; SmallVTBits < BitWidth; SmallVTBits = NextPowerOf2(SmallVTBits)) { 393 unsigned BitWidth = DemandedMask.getBitWidth(); local 394 assert(Op.getValueType().getScalarType().getSizeInBits() == BitWidth && 401 KnownZero = KnownOne = APInt(BitWidth, 0); 413 NewMask = APInt::getAllOnesValue(BitWidth); 470 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl)) 504 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl)) 529 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMas 336 ShrinkDemandedOp(SDValue Op, unsigned BitWidth, const APInt &Demanded, SDLoc dl) argument 1194 unsigned BitWidth = OpVT.getScalarType().getSizeInBits(); local 1559 unsigned BitWidth = N0.getValueSizeInBits(); local [all...] |
/external/llvm/lib/ExecutionEngine/MCJIT/ |
H A D | MCJIT.cpp | 542 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth(); local 543 if (BitWidth == 1) 544 rv.IntVal = APInt(BitWidth, ((bool(*)())(intptr_t)FPtr)()); 545 else if (BitWidth <= 8) 546 rv.IntVal = APInt(BitWidth, ((char(*)())(intptr_t)FPtr)()); 547 else if (BitWidth <= 16) 548 rv.IntVal = APInt(BitWidth, ((short(*)())(intptr_t)FPtr)()); 549 else if (BitWidth <= 32) 550 rv.IntVal = APInt(BitWidth, ((int(*)())(intptr_t)FPtr)()); 551 else if (BitWidth < [all...] |
/external/llvm/lib/Transforms/Utils/ |
H A D | IntegerDivision.cpp | 36 unsigned BitWidth = Dividend->getType()->getIntegerBitWidth(); local 39 if (BitWidth == 64) { 42 assert(BitWidth == 32 && "Unexpected bit width"); 108 unsigned BitWidth = Dividend->getType()->getIntegerBitWidth(); local 111 if (BitWidth == 64) { 114 assert(BitWidth == 32 && "Unexpected bit width"); 159 unsigned BitWidth = DivTy->getBitWidth(); local 166 if (BitWidth == 64) { 172 assert(BitWidth == 32 && "Unexpected bit width");
|
/external/llvm/lib/IR/ |
H A D | ConstantRange.cpp | 34 ConstantRange::ConstantRange(uint32_t BitWidth, bool Full) { argument 36 Lower = Upper = APInt::getMaxValue(BitWidth); 38 Lower = Upper = APInt::getMinValue(BitWidth); 152 unsigned BitWidth = C.getBitWidth(); local 155 return ConstantRange(BitWidth, false); 159 return ConstantRange(BitWidth); 161 ConstantRange Result(BitWidth); 165 ConstantRange(APInt::getNullValue(BitWidth), -C)); 170 Result, ConstantRange(APInt::getSignedMinValue(BitWidth), 171 APInt::getSignedMinValue(BitWidth) [all...] |
/external/clang/include/clang/AST/ |
H A D | TemplateBase.h | 85 // BitWidth > 64. The memory may be shared between multiple 87 unsigned BitWidth : 31; member in struct:clang::TemplateArgument::I 284 if (Integer.BitWidth <= 64) 285 return APSInt(APInt(Integer.BitWidth, Integer.VAL), Integer.IsUnsigned); 287 unsigned NumWords = APInt::getNumWords(Integer.BitWidth); 288 return APSInt(APInt(Integer.BitWidth, makeArrayRef(Integer.pVal, NumWords)),
|
/external/llvm/utils/TableGen/ |
H A D | FixedLenDecoderEmitter.cpp | 100 unsigned Indentation, unsigned BitWidth, 331 unsigned BitWidth; member in class:__anon13303::FilterChooser 347 BitWidth(BW), Emitter(E) { 358 Parent(&parent), BestIndex(-1), BitWidth(parent.BitWidth), 363 unsigned getBitWidth() const { return BitWidth; } 378 for (unsigned i = 0; i < BitWidth; ++i) { 501 assert(StartBit + NumBits - 1 < Owner->BitWidth); 698 unsigned BitWidth, 701 << BitWidth << "[] local 695 emitTable(formatted_raw_ostream &OS, DecoderTable &Table, unsigned Indentation, unsigned BitWidth, StringRef Namespace) const argument [all...] |