/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
H A D | APSIntType.h | 20 uint32_t BitWidth; member in class:clang::ento::APSIntType 25 : BitWidth(Width), IsUnsigned(Unsigned) {} 28 : BitWidth(Value.getBitWidth()), IsUnsigned(Value.isUnsigned()) {} 30 uint32_t getBitWidth() const { return BitWidth; } 40 Value = Value.extOrTrunc(BitWidth); 56 return llvm::APSInt(BitWidth, IsUnsigned); 61 return llvm::APSInt::getMinValue(BitWidth, IsUnsigned); 66 return llvm::APSInt::getMaxValue(BitWidth, IsUnsigned); 70 return (llvm::APSInt(BitWidth, IsUnsigned) = RawValue); 89 return BitWidth [all...] |
/external/llvm/lib/Support/ |
H A D | APInt.cpp | 90 assert(BitWidth && "Bitwidth too small"); 107 : BitWidth(numBits), VAL(0) { 112 : BitWidth(numBits), VAL(0) { 117 : BitWidth(numbits), VAL(0) { 118 assert(BitWidth && "Bitwidth too small"); 127 if (BitWidth == RHS.getBitWidth()) { 150 BitWidth = RHS.BitWidth; 166 ID.AddInteger(BitWidth); 252 assert(BitWidth [all...] |
H A D | StringRef.cpp | 417 unsigned BitWidth = Log2Radix * Str.size(); 418 if (BitWidth < Result.getBitWidth()) 419 BitWidth = Result.getBitWidth(); // don't shrink the result 420 else if (BitWidth > Result.getBitWidth()) 421 Result = Result.zext(BitWidth); 426 RadixAP = APInt(BitWidth, Radix); 427 CharAP = APInt(BitWidth, 0);
|
/external/llvm/lib/Analysis/ |
H A D | ValueTracking.cpp | 40 if (unsigned BitWidth = Ty->getScalarSizeInBits()) 41 return BitWidth; 56 unsigned BitWidth = KnownZero.getBitWidth(); local 58 // NLZ can't be BitWidth with no sign bit 59 APInt MaskV = APInt::getHighBitsSet(BitWidth, NLZ+1); 68 KnownZero = APInt::getHighBitsSet(BitWidth, NLZ2); 74 unsigned BitWidth = KnownZero.getBitWidth(); local 80 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0); 94 APInt Mask = APInt::getLowBitsSet(BitWidth, LHSKnownZeroOu 136 unsigned BitWidth = KnownZero.getBitWidth(); local 195 unsigned BitWidth = KnownZero.getBitWidth(); local 232 unsigned BitWidth = KnownZero.getBitWidth(); local 782 unsigned BitWidth = getBitWidth(V->getType(), TD); local 877 unsigned BitWidth = getBitWidth(V->getType(), TD); local 1871 unsigned BitWidth = getBitWidth(Op->getType(), TD); local [all...] |
H A D | ScalarEvolutionAliasAnalysis.cpp | 128 unsigned BitWidth = SE->getTypeSizeInBits(AS->getType()); local 129 APInt ASizeInt(BitWidth, LocA.Size); 130 APInt BSizeInt(BitWidth, LocB.Size);
|
H A D | ScalarEvolution.cpp | 939 unsigned BitWidth = getTypeSizeInBits(AR->getType()); local 969 Type *WideTy = IntegerType::get(getContext(), BitWidth * 2); 1010 const SCEV *N = getConstant(APInt::getMinValue(BitWidth) - 1024 const SCEV *N = getConstant(APInt::getMaxValue(BitWidth) - 1057 unsigned BitWidth = SE->getTypeSizeInBits(Step->getType()); local 1060 return SE->getConstant(APInt::getSignedMinValue(BitWidth) - 1065 return SE->getConstant(APInt::getSignedMaxValue(BitWidth) - 1113 unsigned BitWidth = SE->getTypeSizeInBits(AR->getType()); local 1114 Type *WideTy = IntegerType::get(SE->getContext(), BitWidth * 2); 1205 unsigned BitWidth local 1614 uint64_t BitWidth = getTypeSizeInBits(Ty); variable [all...] |
/external/llvm/include/llvm/Support/ |
H A D | ConstantRange.h | 48 explicit ConstantRange(uint32_t BitWidth, bool isFullSet = true); 182 /// zero extended to BitWidth. 183 ConstantRange zeroExtend(uint32_t BitWidth) const; 188 /// sign extended to BitWidth. 189 ConstantRange signExtend(uint32_t BitWidth) const; 195 ConstantRange truncate(uint32_t BitWidth) const; 197 /// zextOrTrunc - make this range have the bit width given by \p BitWidth. The 199 ConstantRange zextOrTrunc(uint32_t BitWidth) const; 201 /// sextOrTrunc - make this range have the bit width given by \p BitWidth. The 203 ConstantRange sextOrTrunc(uint32_t BitWidth) cons [all...] |
/external/llvm/include/llvm/ADT/ |
H A D | APInt.h | 76 unsigned BitWidth; ///< The number of bits in this APInt. member in class:llvm::APInt 97 APInt(uint64_t* val, unsigned bits) : BitWidth(bits), pVal(val) { } 102 return BitWidth <= APINT_BITS_PER_WORD; 134 unsigned wordBits = BitWidth % APINT_BITS_PER_WORD; 230 : BitWidth(numBits), VAL(0) { 231 assert(BitWidth && "bitwidth too small"); 269 : BitWidth(that.BitWidth), VAL(0) { 270 assert(BitWidth && "bitwidth too small"); 279 APInt(APInt&& that) : BitWidth(tha 423 getSignBit(unsigned BitWidth) argument [all...] |
/external/clang/lib/StaticAnalyzer/Core/ |
H A D | APSIntType.cpp | 31 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/utils/TableGen/ |
H A D | TGValueTypes.cpp | 32 unsigned BitWidth; member in class:ExtendedIntegerType 35 : BitWidth(bits) {} 40 return BitWidth;
|
H A D | FixedLenDecoderEmitter.cpp | 101 unsigned Indentation, unsigned BitWidth, 332 unsigned BitWidth; member in class:__anon9333::FilterChooser 342 BestIndex(FC.BestIndex), BitWidth(FC.BitWidth), 351 Parent(NULL), BestIndex(-1), BitWidth(BW), Emitter(E) { 352 for (unsigned i = 0; i < BitWidth; ++i) 365 Parent(&parent), BestIndex(-1), BitWidth(parent.BitWidth), 370 unsigned getBitWidth() const { return BitWidth; } 385 for (unsigned i = 0; i < BitWidth; 721 emitTable(formatted_raw_ostream &OS, DecoderTable &Table, unsigned Indentation, unsigned BitWidth, StringRef Namespace) const argument 727 << BitWidth << "[] = {\\n"; local [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineSimplifyDemanded.cpp | 53 unsigned BitWidth = Inst.getType()->getScalarSizeInBits(); local 54 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); 55 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); 105 uint32_t BitWidth = DemandedMask.getBitWidth(); local 109 assert((!TD || TD->getTypeSizeInBits(VTy->getScalarType()) == BitWidth) && 111 VTy->getScalarSizeInBits() == BitWidth) && 112 KnownZero.getBitWidth() == BitWidth && 113 KnownOne.getBitWidth() == BitWidth && 115 "must have same BitWidth"); [all...] |
H A D | InstCombineCalls.cpp | 289 uint32_t BitWidth = IT->getBitWidth(); local 290 APInt KnownZero(BitWidth, 0); 291 APInt KnownOne(BitWidth, 0); 294 APInt Mask(APInt::getLowBitsSet(BitWidth, TrailingZeros)); 297 APInt(BitWidth, TrailingZeros))); 307 uint32_t BitWidth = IT->getBitWidth(); local 308 APInt KnownZero(BitWidth, 0); 309 APInt KnownOne(BitWidth, 0); 312 APInt Mask(APInt::getHighBitsSet(BitWidth, LeadingZeros)); 315 APInt(BitWidth, LeadingZero 322 uint32_t BitWidth = IT->getBitWidth(); local 415 unsigned BitWidth = cast<IntegerType>(LHS->getType())->getBitWidth(); local [all...] |
H A D | InstCombineCasts.cpp | 362 uint32_t BitWidth = Ty->getScalarSizeInBits(); local 363 if (BitWidth < OrigBitWidth) { 364 APInt Mask = APInt::getHighBitsSet(OrigBitWidth, OrigBitWidth-BitWidth); 377 uint32_t BitWidth = Ty->getScalarSizeInBits(); local 378 if (CI->getLimitedValue(BitWidth) < BitWidth) 388 uint32_t BitWidth = Ty->getScalarSizeInBits(); local 390 APInt::getHighBitsSet(OrigBitWidth, OrigBitWidth-BitWidth)) && 391 CI->getLimitedValue(BitWidth) < BitWidth) { 542 uint32_t BitWidth = Op1C->getType()->getBitWidth(); local 586 uint32_t BitWidth = ITy->getBitWidth(); local 908 unsigned BitWidth = Op1C->getType()->getBitWidth(); local [all...] |
H A D | InstCombineAndOrXor.cpp | 209 uint32_t BitWidth = AndRHS->getType()->getBitWidth(); local 210 uint32_t OpRHSVal = OpRHS->getLimitedValue(BitWidth); 211 APInt ShlMask(APInt::getHighBitsSet(BitWidth, BitWidth-OpRHSVal)); 230 uint32_t BitWidth = AndRHS->getType()->getBitWidth(); local 231 uint32_t OpRHSVal = OpRHS->getLimitedValue(BitWidth); 232 APInt ShrMask(APInt::getLowBitsSet(BitWidth, BitWidth - OpRHSVal)); 251 uint32_t BitWidth = AndRHS->getType()->getBitWidth(); local 252 uint32_t OpRHSVal = OpRHS->getLimitedValue(BitWidth); 324 uint32_t BitWidth = Val->getType()->getBitWidth(); local 368 uint32_t BitWidth = cast<IntegerType>(RHS->getType())->getBitWidth(); local 1084 uint32_t BitWidth = AndRHSMask.getBitWidth(); local [all...] |
/external/llvm/lib/ExecutionEngine/MCJIT/ |
H A D | MCJIT.cpp | 216 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth(); local 217 if (BitWidth == 1) 218 rv.IntVal = APInt(BitWidth, ((bool(*)())(intptr_t)FPtr)()); 219 else if (BitWidth <= 8) 220 rv.IntVal = APInt(BitWidth, ((char(*)())(intptr_t)FPtr)()); 221 else if (BitWidth <= 16) 222 rv.IntVal = APInt(BitWidth, ((short(*)())(intptr_t)FPtr)()); 223 else if (BitWidth <= 32) 224 rv.IntVal = APInt(BitWidth, ((int(*)())(intptr_t)FPtr)()); 225 else if (BitWidth < [all...] |
/external/llvm/include/llvm/CodeGen/ |
H A D | ValueTypes.h | 356 static MVT getFloatingPointVT(unsigned BitWidth) { argument 357 switch (BitWidth) { 373 static MVT getIntegerVT(unsigned BitWidth) { argument 374 switch (BitWidth) { 468 static EVT getFloatingPointVT(unsigned BitWidth) { argument 469 return MVT::getFloatingPointVT(BitWidth); 474 static EVT getIntegerVT(LLVMContext &Context, unsigned BitWidth) { argument 475 MVT M = MVT::getIntegerVT(BitWidth); 478 return getExtendedIntegerVT(Context, BitWidth); 497 unsigned BitWidth local 659 unsigned BitWidth = getSizeInBits(); local [all...] |
/external/llvm/lib/CodeGen/SelectionDAG/ |
H A D | FunctionLoweringInfo.cpp | 246 FunctionLoweringInfo::GetLiveOutRegInfo(unsigned Reg, unsigned BitWidth) { argument 254 if (BitWidth > LOI->KnownZero.getBitWidth()) { 256 LOI->KnownZero = LOI->KnownZero.zextOrTrunc(BitWidth); 257 LOI->KnownOne = LOI->KnownOne.zextOrTrunc(BitWidth); 279 unsigned BitWidth = IntVT.getSizeInBits(); local 290 APInt Zero(BitWidth, 0); 297 APInt Val = CI->getValue().zextOrTrunc(BitWidth); 309 const LiveOutInfo *SrcLOI = GetLiveOutRegInfo(SrcReg, BitWidth); 317 assert(DestLOI.KnownZero.getBitWidth() == BitWidth && 318 DestLOI.KnownOne.getBitWidth() == BitWidth [all...] |
H A D | TargetLowering.cpp | 1144 unsigned BitWidth, 1160 unsigned SmallVTBits = BitWidth - Demanded.countLeadingZeros(); 1163 for (; SmallVTBits < BitWidth; SmallVTBits = NextPowerOf2(SmallVTBits)) { 1193 unsigned BitWidth = DemandedMask.getBitWidth(); local 1194 assert(Op.getValueType().getScalarType().getSizeInBits() == BitWidth && 1200 KnownZero = KnownOne = APInt(BitWidth, 0); 1212 NewMask = APInt::getAllOnesValue(BitWidth); 1269 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl)) 1303 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl)) 1328 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMas 1143 ShrinkDemandedOp(SDValue Op, unsigned BitWidth, const APInt &Demanded, DebugLoc dl) argument 1895 unsigned BitWidth = OpVT.getScalarType().getSizeInBits(); local 2171 unsigned BitWidth = N0.getValueSizeInBits(); local [all...] |
H A D | SelectionDAG.cpp | 961 unsigned BitWidth = Op.getValueType().getScalarType().getSizeInBits(); local 962 APInt Imm = APInt::getLowBitsSet(BitWidth, 1100 unsigned BitWidth = TLI.getPointerTy().getSizeInBits(); local 1101 if (BitWidth < 64) 1102 Offset = SignExtend64(Offset, BitWidth); 1675 unsigned BitWidth = Op.getValueType().getScalarType().getSizeInBits(); local 1676 return MaskedValueIsZero(Op, APInt::getSignBit(BitWidth), Depth); 1696 unsigned BitWidth = Op.getValueType().getScalarType().getSizeInBits(); local 1698 KnownZero = KnownOne = APInt(BitWidth, 0); // Don't know anything. 1761 BitWidth) [all...] |
/external/llvm/lib/ExecutionEngine/JIT/ |
H A D | JIT.cpp | 458 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth(); local 459 if (BitWidth == 1) 460 rv.IntVal = APInt(BitWidth, ((bool(*)())(intptr_t)FPtr)()); 461 else if (BitWidth <= 8) 462 rv.IntVal = APInt(BitWidth, ((char(*)())(intptr_t)FPtr)()); 463 else if (BitWidth <= 16) 464 rv.IntVal = APInt(BitWidth, ((short(*)())(intptr_t)FPtr)()); 465 else if (BitWidth <= 32) 466 rv.IntVal = APInt(BitWidth, ((int(*)())(intptr_t)FPtr)()); 467 else if (BitWidth < [all...] |
/external/clang/include/clang/AST/ |
H A D | TemplateBase.h | 77 // BitWidth > 64. The memory may be shared between multiple 83 unsigned BitWidth : 31; member in struct:clang::TemplateArgument::__anon3310::__anon3311 248 if (Integer.BitWidth <= 64) 249 return APSInt(APInt(Integer.BitWidth, Integer.VAL), Integer.IsUnsigned); 251 unsigned NumWords = APInt::getNumWords(Integer.BitWidth); 252 return APSInt(APInt(Integer.BitWidth, makeArrayRef(Integer.pVal, NumWords)),
|
/external/llvm/lib/Transforms/Utils/ |
H A D | SimplifyIndVar.cpp | 117 uint32_t BitWidth = cast<IntegerType>(UseInst->getType())->getBitWidth(); local 118 if (D->getValue().uge(BitWidth)) 122 APInt(BitWidth, 1).shl(D->getZExtValue()));
|
/external/llvm/lib/Target/ |
H A D | TargetData.cpp | 334 uint32_t BitWidth, bool ABIInfo, 341 Alignments[i].TypeBitWidth == BitWidth) 348 // the BitWidth requested. 349 if (Alignments[i].TypeBitWidth > BitWidth && (BestMatchIdx == -1 || 567 unsigned TargetData::getABIIntegerTypeAlignment(unsigned BitWidth) const { 568 return getAlignmentInfo(INTEGER_ALIGN, BitWidth, true, 0); 333 getAlignmentInfo(AlignTypeEnum AlignType, uint32_t BitWidth, bool ABIInfo, Type *Ty) const argument
|