/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | APSIntType.h | 20 uint32_t BitWidth; variable 25 : BitWidth(Width), IsUnsigned(Unsigned) {} in APSIntType() 28 : BitWidth(Value.getBitWidth()), IsUnsigned(Value.isUnsigned()) {} in APSIntType() 30 uint32_t getBitWidth() const { return BitWidth; } in getBitWidth() 40 Value = Value.extOrTrunc(BitWidth); in apply() 56 return llvm::APSInt(BitWidth, IsUnsigned); in getZeroValue() 61 return llvm::APSInt::getMinValue(BitWidth, IsUnsigned); in getMinValue() 66 return llvm::APSInt::getMaxValue(BitWidth, IsUnsigned); in getMaxValue() 70 return (llvm::APSInt(BitWidth, IsUnsigned) = RawValue); in getValue() 89 return BitWidth == Other.BitWidth && IsUnsigned == Other.IsUnsigned; [all …]
|
/external/llvm/lib/Support/ |
D | APInt.cpp | 90 assert(BitWidth && "Bitwidth too small"); in initFromArray() 107 : BitWidth(numBits), VAL(0) { in APInt() 112 : BitWidth(numBits), VAL(0) { in APInt() 117 : BitWidth(numbits), VAL(0) { in APInt() 118 assert(BitWidth && "Bitwidth too small"); in APInt() 127 if (BitWidth == RHS.getBitWidth()) { in AssignSlowCase() 150 BitWidth = RHS.BitWidth; in AssignSlowCase() 166 ID.AddInteger(BitWidth); in Profile() 252 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); in operator +=() 279 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same"); in operator -=() [all …]
|
D | StringRef.cpp | 417 unsigned BitWidth = Log2Radix * Str.size(); in getAsInteger() local 418 if (BitWidth < Result.getBitWidth()) in getAsInteger() 419 BitWidth = Result.getBitWidth(); // don't shrink the result in getAsInteger() 420 else if (BitWidth > Result.getBitWidth()) in getAsInteger() 421 Result = Result.zext(BitWidth); in getAsInteger() 426 RadixAP = APInt(BitWidth, Radix); in getAsInteger() 427 CharAP = APInt(BitWidth, 0); in getAsInteger()
|
/external/llvm/include/llvm/ADT/ |
D | APInt.h | 76 unsigned BitWidth; ///< The number of bits in this APInt. variable 97 APInt(uint64_t* val, unsigned bits) : BitWidth(bits), pVal(val) { } in APInt() 102 return BitWidth <= APINT_BITS_PER_WORD; in isSingleWord() 134 unsigned wordBits = BitWidth % APINT_BITS_PER_WORD; in clearUnusedBits() 230 : BitWidth(numBits), VAL(0) { in BitWidth() function 231 assert(BitWidth && "bitwidth too small"); in BitWidth() 269 : BitWidth(that.BitWidth), VAL(0) { in APInt() 270 assert(BitWidth && "bitwidth too small"); in APInt() 279 APInt(APInt&& that) : BitWidth(that.BitWidth), VAL(that.VAL) { in APInt() 280 that.BitWidth = 0; in APInt() [all …]
|
/external/llvm/lib/Analysis/ |
D | ValueTracking.cpp | 40 if (unsigned BitWidth = Ty->getScalarSizeInBits()) in getBitWidth() local 41 return BitWidth; in getBitWidth() 56 unsigned BitWidth = KnownZero.getBitWidth(); in ComputeMaskedBitsAddSub() local 59 APInt MaskV = APInt::getHighBitsSet(BitWidth, NLZ+1); in ComputeMaskedBitsAddSub() 68 KnownZero = APInt::getHighBitsSet(BitWidth, NLZ2); in ComputeMaskedBitsAddSub() 74 unsigned BitWidth = KnownZero.getBitWidth(); in ComputeMaskedBitsAddSub() local 80 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0); in ComputeMaskedBitsAddSub() 94 APInt Mask = APInt::getLowBitsSet(BitWidth, LHSKnownZeroOut); in ComputeMaskedBitsAddSub() 100 KnownZero |= APInt::getLowBitsSet(BitWidth, in ComputeMaskedBitsAddSub() 105 APInt Mask = APInt::getLowBitsSet(BitWidth, RHSKnownZeroOut); in ComputeMaskedBitsAddSub() [all …]
|
D | ScalarEvolutionAliasAnalysis.cpp | 128 unsigned BitWidth = SE->getTypeSizeInBits(AS->getType()); in alias() local 129 APInt ASizeInt(BitWidth, LocA.Size); in alias() 130 APInt BSizeInt(BitWidth, LocB.Size); in alias()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSimplifyDemanded.cpp | 53 unsigned BitWidth = Inst.getType()->getScalarSizeInBits(); in SimplifyDemandedInstructionBits() local 54 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in SimplifyDemandedInstructionBits() 55 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); in SimplifyDemandedInstructionBits() 105 uint32_t BitWidth = DemandedMask.getBitWidth(); in SimplifyDemandedUseBits() local 109 assert((!TD || TD->getTypeSizeInBits(VTy->getScalarType()) == BitWidth) && in SimplifyDemandedUseBits() 111 VTy->getScalarSizeInBits() == BitWidth) && in SimplifyDemandedUseBits() 112 KnownZero.getBitWidth() == BitWidth && in SimplifyDemandedUseBits() 113 KnownOne.getBitWidth() == BitWidth && in SimplifyDemandedUseBits() 140 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0); in SimplifyDemandedUseBits() 141 APInt RHSKnownZero(BitWidth, 0), RHSKnownOne(BitWidth, 0); in SimplifyDemandedUseBits() [all …]
|
D | InstCombineCalls.cpp | 289 uint32_t BitWidth = IT->getBitWidth(); in visitCallInst() local 290 APInt KnownZero(BitWidth, 0); in visitCallInst() 291 APInt KnownOne(BitWidth, 0); in visitCallInst() 294 APInt Mask(APInt::getLowBitsSet(BitWidth, TrailingZeros)); in visitCallInst() 297 APInt(BitWidth, TrailingZeros))); in visitCallInst() 307 uint32_t BitWidth = IT->getBitWidth(); in visitCallInst() local 308 APInt KnownZero(BitWidth, 0); in visitCallInst() 309 APInt KnownOne(BitWidth, 0); in visitCallInst() 312 APInt Mask(APInt::getHighBitsSet(BitWidth, LeadingZeros)); in visitCallInst() 315 APInt(BitWidth, LeadingZeros))); in visitCallInst() [all …]
|
D | InstCombineCasts.cpp | 362 uint32_t BitWidth = Ty->getScalarSizeInBits(); in CanEvaluateTruncated() local 363 if (BitWidth < OrigBitWidth) { in CanEvaluateTruncated() 364 APInt Mask = APInt::getHighBitsSet(OrigBitWidth, OrigBitWidth-BitWidth); in CanEvaluateTruncated() 377 uint32_t BitWidth = Ty->getScalarSizeInBits(); in CanEvaluateTruncated() local 378 if (CI->getLimitedValue(BitWidth) < BitWidth) in CanEvaluateTruncated() 388 uint32_t BitWidth = Ty->getScalarSizeInBits(); in CanEvaluateTruncated() local 390 APInt::getHighBitsSet(OrigBitWidth, OrigBitWidth-BitWidth)) && in CanEvaluateTruncated() 391 CI->getLimitedValue(BitWidth) < BitWidth) { in CanEvaluateTruncated() 542 uint32_t BitWidth = Op1C->getType()->getBitWidth(); in transformZExtICmp() local 543 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in transformZExtICmp() [all …]
|
/external/llvm/lib/ExecutionEngine/MCJIT/ |
D | MCJIT.cpp | 216 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth(); in runFunction() local 217 if (BitWidth == 1) in runFunction() 218 rv.IntVal = APInt(BitWidth, ((bool(*)())(intptr_t)FPtr)()); in runFunction() 219 else if (BitWidth <= 8) in runFunction() 220 rv.IntVal = APInt(BitWidth, ((char(*)())(intptr_t)FPtr)()); in runFunction() 221 else if (BitWidth <= 16) in runFunction() 222 rv.IntVal = APInt(BitWidth, ((short(*)())(intptr_t)FPtr)()); in runFunction() 223 else if (BitWidth <= 32) in runFunction() 224 rv.IntVal = APInt(BitWidth, ((int(*)())(intptr_t)FPtr)()); in runFunction() 225 else if (BitWidth <= 64) in runFunction() [all …]
|
/external/llvm/include/llvm/Support/ |
D | ConstantRange.h | 48 explicit ConstantRange(uint32_t BitWidth, bool isFullSet = true); 183 ConstantRange zeroExtend(uint32_t BitWidth) const; 189 ConstantRange signExtend(uint32_t BitWidth) const; 195 ConstantRange truncate(uint32_t BitWidth) const; 199 ConstantRange zextOrTrunc(uint32_t BitWidth) const; 203 ConstantRange sextOrTrunc(uint32_t BitWidth) const;
|
/external/llvm/include/llvm/CodeGen/ |
D | ValueTypes.h | 356 static MVT getFloatingPointVT(unsigned BitWidth) { in getFloatingPointVT() argument 357 switch (BitWidth) { in getFloatingPointVT() 373 static MVT getIntegerVT(unsigned BitWidth) { in getIntegerVT() argument 374 switch (BitWidth) { in getIntegerVT() 468 static EVT getFloatingPointVT(unsigned BitWidth) { in getFloatingPointVT() 469 return MVT::getFloatingPointVT(BitWidth); in getFloatingPointVT() 474 static EVT getIntegerVT(LLVMContext &Context, unsigned BitWidth) { in getIntegerVT() 475 MVT M = MVT::getIntegerVT(BitWidth); in getIntegerVT() 478 return getExtendedIntegerVT(Context, BitWidth); in getIntegerVT() 497 unsigned BitWidth = EltTy.getSizeInBits(); in changeVectorElementTypeToInteger() local [all …]
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | FunctionLoweringInfo.cpp | 246 FunctionLoweringInfo::GetLiveOutRegInfo(unsigned Reg, unsigned BitWidth) { in GetLiveOutRegInfo() argument 254 if (BitWidth > LOI->KnownZero.getBitWidth()) { in GetLiveOutRegInfo() 256 LOI->KnownZero = LOI->KnownZero.zextOrTrunc(BitWidth); in GetLiveOutRegInfo() 257 LOI->KnownOne = LOI->KnownOne.zextOrTrunc(BitWidth); in GetLiveOutRegInfo() 279 unsigned BitWidth = IntVT.getSizeInBits(); in ComputePHILiveOutRegInfo() local 290 APInt Zero(BitWidth, 0); in ComputePHILiveOutRegInfo() 297 APInt Val = CI->getValue().zextOrTrunc(BitWidth); in ComputePHILiveOutRegInfo() 309 const LiveOutInfo *SrcLOI = GetLiveOutRegInfo(SrcReg, BitWidth); in ComputePHILiveOutRegInfo() 317 assert(DestLOI.KnownZero.getBitWidth() == BitWidth && in ComputePHILiveOutRegInfo() 318 DestLOI.KnownOne.getBitWidth() == BitWidth && in ComputePHILiveOutRegInfo() [all …]
|
D | TargetLowering.cpp | 1144 unsigned BitWidth, in ShrinkDemandedOp() argument 1160 unsigned SmallVTBits = BitWidth - Demanded.countLeadingZeros(); in ShrinkDemandedOp() 1163 for (; SmallVTBits < BitWidth; SmallVTBits = NextPowerOf2(SmallVTBits)) { in ShrinkDemandedOp() 1193 unsigned BitWidth = DemandedMask.getBitWidth(); in SimplifyDemandedBits() local 1194 assert(Op.getValueType().getScalarType().getSizeInBits() == BitWidth && in SimplifyDemandedBits() 1200 KnownZero = KnownOne = APInt(BitWidth, 0); in SimplifyDemandedBits() 1212 NewMask = APInt::getAllOnesValue(BitWidth); in SimplifyDemandedBits() 1269 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl)) in SimplifyDemandedBits() 1303 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl)) in SimplifyDemandedBits() 1328 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl)) in SimplifyDemandedBits() [all …]
|
/external/llvm/utils/TableGen/ |
D | TGValueTypes.cpp | 32 unsigned BitWidth; member in ExtendedIntegerType 35 : BitWidth(bits) {} in ExtendedIntegerType() 40 return BitWidth; in getBitWidth()
|
D | FixedLenDecoderEmitter.cpp | 101 unsigned Indentation, unsigned BitWidth, 332 unsigned BitWidth; member in __anon214b46220711::FilterChooser 342 BestIndex(FC.BestIndex), BitWidth(FC.BitWidth), in FilterChooser() 351 Parent(NULL), BestIndex(-1), BitWidth(BW), Emitter(E) { in FilterChooser() 352 for (unsigned i = 0; i < BitWidth; ++i) in FilterChooser() 365 Parent(&parent), BestIndex(-1), BitWidth(parent.BitWidth), in FilterChooser() 370 unsigned getBitWidth() const { return BitWidth; } in getBitWidth() 385 for (unsigned i = 0; i < BitWidth; ++i) { in insnWithID() 505 assert(StartBit + NumBits - 1 < Owner->BitWidth); in Filter() 724 unsigned BitWidth, in emitTable() argument [all …]
|
/external/llvm/test/Transforms/InstCombine/ |
D | apint-mul1.ll | 2 ; This test is for Integer BitWidth < 64 && BitWidth % 2 != 0.
|
D | apint-mul2.ll | 2 ; This test is for Integer BitWidth >= 64 && BitWidth % 2 >= 1024.
|
D | apint-zext2.ll | 2 ; This test is for Integer BitWidth > 64 && BitWidth <= 1024.
|
D | apint-zext1.ll | 2 ; This test is for Integer BitWidth <= 64 && BitWidth % 2 != 0.
|
D | apint-div2.ll | 2 ; This test is for Integer BitWidth >= 64 && BitWidth <= 1024.
|
D | apint-rem2.ll | 2 ; This test is for Integer BitWidth >= 64 && BitWidth <= 1024.
|
D | apint-rem1.ll | 2 ; This test is for Integer BitWidth < 64 && BitWidth % 2 != 0.
|
D | apint-div1.ll | 2 ; This test is for Integer BitWidth < 64 && BitWidth % 2 != 0.
|
/external/llvm/lib/ExecutionEngine/JIT/ |
D | JIT.cpp | 458 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth(); in runFunction() local 459 if (BitWidth == 1) in runFunction() 460 rv.IntVal = APInt(BitWidth, ((bool(*)())(intptr_t)FPtr)()); in runFunction() 461 else if (BitWidth <= 8) in runFunction() 462 rv.IntVal = APInt(BitWidth, ((char(*)())(intptr_t)FPtr)()); in runFunction() 463 else if (BitWidth <= 16) in runFunction() 464 rv.IntVal = APInt(BitWidth, ((short(*)())(intptr_t)FPtr)()); in runFunction() 465 else if (BitWidth <= 32) in runFunction() 466 rv.IntVal = APInt(BitWidth, ((int(*)())(intptr_t)FPtr)()); in runFunction() 467 else if (BitWidth <= 64) in runFunction() [all …]
|