/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/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 | 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 | 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 | Lint.cpp | 515 unsigned BitWidth = V->getType()->getIntegerBitWidth(); local 516 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); 532 unsigned BitWidth = VecTy->getElementType()->getIntegerBitWidth(); local 538 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
|
/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 | BasicValueFactory.cpp | 95 const llvm::APSInt& BasicValueFactory::getValue(uint64_t X, unsigned BitWidth, argument 97 llvm::APSInt V(BitWidth, isUnsigned);
|
H A D | SimpleSValBuilder.cpp | 167 unsigned BitWidth = Context.getTypeSize(castTy); local 170 return makeLocAsInteger(val, BitWidth);
|
/external/llvm/lib/CodeGen/ |
H A D | AtomicExpandPass.cpp | 203 unsigned BitWidth = VT.getStoreSizeInBits(); local 204 assert(BitWidth == VT.getSizeInBits() && "must be a power of two"); 205 return IntegerType::get(T->getContext(), BitWidth);
|
/external/llvm/lib/IR/ |
H A D | ValueTypes.cpp | 33 EVT EVT::getExtendedIntegerVT(LLVMContext &Context, unsigned BitWidth) { argument 35 VT.LLVMTy = IntegerType::get(Context, BitWidth);
|
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/lib/Lex/ |
H A D | PPExpressions.cpp | 40 PPValue(unsigned BitWidth) : Val(BitWidth) {} argument 747 unsigned BitWidth = getTargetInfo().getIntMaxTWidth(); local 749 PPValue ResVal(BitWidth);
|
/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...] |
H A D | APSInt.h | 31 explicit APSInt(uint32_t BitWidth, bool isUnsigned = true) argument 32 : APInt(BitWidth, 0), IsUnsigned(isUnsigned) {}
|
/external/llvm/lib/Transforms/Scalar/ |
H A D | LoadCombine.cpp | 96 unsigned BitWidth = DL.getPointerTypeSizeInBits(GEP->getType()); local 97 APInt Offset(BitWidth, 0);
|
/external/clang/lib/Frontend/ |
H A D | InitPreprocessor.cpp | 220 static void DefineTypeSizeof(StringRef MacroName, unsigned BitWidth, argument 223 Twine(BitWidth / TI.getCharWidth()));
|
/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/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 | LegalizeTypes.cpp | 910 unsigned BitWidth = Op.getValueType().getSizeInBits(); local 912 EVT::getIntegerVT(*DAG.getContext(), BitWidth), Op);
|
/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/InstCombine/ |
H A D | InstCombineShifts.cpp | 93 uint32_t BitWidth = Ty->getScalarSizeInBits(); local 95 APInt::getHighBitsSet(OrigBitWidth, OrigBitWidth-BitWidth)) && 96 CI->getLimitedValue(BitWidth) < BitWidth) { 754 unsigned BitWidth = Op0->getType()->getScalarSizeInBits(); local 761 isPowerOf2_32(BitWidth) && Log2_32(BitWidth) == ShAmt) {
|
/external/llvm/lib/Transforms/Instrumentation/ |
H A D | SafeStack.cpp | 215 uint64_t BitWidth = SE->getTypeSizeInBits(Expr->getType()); local 218 ConstantRange(APInt(BitWidth, 0), APInt(BitWidth, AccessSize)); 221 ConstantRange(APInt(BitWidth, 0), APInt(BitWidth, AllocaSize));
|
/external/llvm/lib/Transforms/Utils/ |
H A D | SimplifyIndVar.cpp | 121 uint32_t BitWidth = cast<IntegerType>(UseInst->getType())->getBitWidth(); local 122 if (D->getValue().uge(BitWidth)) 126 APInt::getOneBitSet(BitWidth, D->getZExtValue())); 377 unsigned BitWidth = cast<IntegerType>(BO->getType())->getBitWidth(); local 378 Type *WideTy = IntegerType::get(BO->getContext(), BitWidth * 2);
|
/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/lib/Target/WebAssembly/ |
H A D | WebAssemblyISelLowering.cpp | 206 unsigned BitWidth = NextPowerOf2(VT.getSizeInBits() - 1); local 207 if (BitWidth > 1 && BitWidth < 8) 208 BitWidth = 8; 210 if (BitWidth > 64) { 211 BitWidth = 64; 212 assert(BitWidth >= Log2_32_Ceil(VT.getSizeInBits()) && 216 MVT Result = MVT::getIntegerVT(BitWidth);
|