/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 | 77 unsigned BitWidth = AB.getBitWidth(); local 86 [&](unsigned BitWidth, const Value *V1, const Value *V2) { 88 KnownZero = APInt(BitWidth, 0); 89 KnownOne = APInt(BitWidth, 0); 94 KnownZero2 = APInt(BitWidth, 0); 95 KnownOne2 = APInt(BitWidth, 0); 118 ComputeKnownBits(BitWidth, I, nullptr); 119 AB = APInt::getHighBitsSet(BitWidth, 120 std::min(BitWidth, KnownOne.countLeadingZeros()+1)); 128 ComputeKnownBits(BitWidth, 327 unsigned BitWidth = IT->getBitWidth(); local [all...] |
H A D | ValueTracking.cpp | 57 if (unsigned BitWidth = Ty->getScalarSizeInBits()) 58 return BitWidth; 245 unsigned BitWidth = KnownZero.getBitWidth(); local 247 // NLZ can't be BitWidth with no sign bit 248 APInt MaskV = APInt::getHighBitsSet(BitWidth, NLZ+1); 257 KnownZero = APInt::getHighBitsSet(BitWidth, NLZ2); 263 unsigned BitWidth = KnownZero.getBitWidth(); local 267 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0); 272 APInt CarryIn(BitWidth, 318 unsigned BitWidth = KnownZero.getBitWidth(); local 377 unsigned BitWidth = KnownZero.getBitWidth(); local 527 unsigned BitWidth = KnownZero.getBitWidth(); local 796 unsigned BitWidth = KnownZero.getBitWidth(); local 872 unsigned BitWidth = KnownZero.getBitWidth(); local 1379 unsigned BitWidth = KnownZero.getBitWidth(); local 1477 unsigned BitWidth = getBitWidth(V->getType(), Q.DL); local 1558 unsigned BitWidth = V->getType()->getScalarSizeInBits(); local 1720 unsigned BitWidth = getBitWidth(V->getType()->getScalarType(), Q.DL); local 1895 auto BitWidth = Ty->getBitWidth(); local 2759 unsigned BitWidth = DL.getPointerTypeSizeInBits(Ptr->getType()); local 3286 unsigned BitWidth = LHS->getType()->getScalarSizeInBits(); local [all...] |
H A D | ScalarEvolutionAliasAnalysis.cpp | 45 unsigned BitWidth = SE.getTypeSizeInBits(AS->getType()); local 46 APInt ASizeInt(BitWidth, LocA.Size); 47 APInt BSizeInt(BitWidth, LocB.Size);
|
/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/swiftshader/third_party/LLVM/include/llvm/Support/ |
H A D | ConstantRange.h | 48 explicit ConstantRange(uint32_t BitWidth, bool isFullSet = true); 178 /// zero extended to BitWidth. 179 ConstantRange zeroExtend(uint32_t BitWidth) const; 184 /// sign extended to BitWidth. 185 ConstantRange signExtend(uint32_t BitWidth) const; 191 ConstantRange truncate(uint32_t BitWidth) const; 193 /// zextOrTrunc - make this range have the bit width given by \p BitWidth. The 195 ConstantRange zextOrTrunc(uint32_t BitWidth) const; 197 /// sextOrTrunc - make this range have the bit width given by \p BitWidth. The 199 ConstantRange sextOrTrunc(uint32_t BitWidth) cons [all...] |
/external/llvm/lib/Support/ |
H A D | APInt.cpp | 92 assert(BitWidth && "Bitwidth too small"); 109 : BitWidth(numBits), VAL(0) { 114 : BitWidth(numBits), VAL(0) { 119 : BitWidth(numbits), VAL(0) { 120 assert(BitWidth && "Bitwidth too small"); 129 if (BitWidth == RHS.getBitWidth()) { 152 BitWidth = RHS.BitWidth; 168 ID.AddInteger(BitWidth); 254 assert(BitWidth [all...] |
/external/swiftshader/third_party/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 | 359 uint32_t BitWidth = IT->getBitWidth(); local 360 APInt KnownZero(BitWidth, 0); 361 APInt KnownOne(BitWidth, 0); 362 ComputeMaskedBits(II->getArgOperand(0), APInt::getAllOnesValue(BitWidth), 365 APInt Mask(APInt::getLowBitsSet(BitWidth, TrailingZeros)); 368 APInt(BitWidth, TrailingZeros))); 378 uint32_t BitWidth = IT->getBitWidth(); local 379 APInt KnownZero(BitWidth, 0); 380 APInt KnownOne(BitWidth, 0); 381 ComputeMaskedBits(II->getArgOperand(0), APInt::getAllOnesValue(BitWidth), 394 uint32_t BitWidth = IT->getBitWidth(); local 488 unsigned BitWidth = cast<IntegerType>(LHS->getType())->getBitWidth(); local [all...] |
/external/swiftshader/third_party/LLVM/lib/Support/ |
H A D | APInt.cpp | 89 assert(BitWidth && "Bitwidth too small"); 106 : BitWidth(numBits), VAL(0) { 111 : BitWidth(numBits), VAL(0) { 116 : BitWidth(numbits), VAL(0) { 117 assert(BitWidth && "Bitwidth too small"); 126 if (BitWidth == RHS.getBitWidth()) { 149 BitWidth = RHS.BitWidth; 165 ID.AddInteger(BitWidth); 251 assert(BitWidth [all...] |
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
H A D | ValueTracking.cpp | 38 if (unsigned BitWidth = Ty->getScalarSizeInBits()) 39 return BitWidth; 65 unsigned BitWidth = Mask.getBitWidth(); local 69 TD->getTypeSizeInBits(V->getType()->getScalarType()) == BitWidth) && 71 V->getType()->getScalarSizeInBits() == BitWidth) && 72 KnownZero.getBitWidth() == BitWidth && 73 KnownOne.getBitWidth() == BitWidth && 74 "V, Mask, KnownOne and KnownZero should have same BitWidth"); 94 APInt KnownZero2(BitWidth, 0), KnownOne2(BitWidth, 697 unsigned BitWidth = getBitWidth(V->getType(), TD); local 773 unsigned BitWidth = getBitWidth(V->getType(), TD); local [all...] |
/external/llvm/include/llvm/IR/ |
H A D | ConstantRange.h | 52 explicit ConstantRange(uint32_t BitWidth, bool isFullSet = true); 229 /// zero extended to BitWidth. 230 ConstantRange zeroExtend(uint32_t BitWidth) const; 235 /// sign extended to BitWidth. 236 ConstantRange signExtend(uint32_t BitWidth) const; 242 ConstantRange truncate(uint32_t BitWidth) const; 244 /// Make this range have the bit width given by \p BitWidth. The 246 ConstantRange zextOrTrunc(uint32_t BitWidth) const; 248 /// Make this range have the bit width given by \p BitWidth. The 250 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/swiftshader/third_party/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 | 239 unsigned BitWidth; member in class:FilterChooser 249 BestIndex(FC.BestIndex), BitWidth(FC.BitWidth), 258 Parent(NULL), BestIndex(-1), BitWidth(BW), Emitter(E) { 259 for (unsigned i = 0; i < BitWidth; ++i) 272 Parent(&parent), BestIndex(-1), BitWidth(parent.BitWidth), 288 for (unsigned i = 0; i < BitWidth; ++i) 389 assert(StartBit + NumBits - 1 < Owner->BitWidth); 506 o.indent(Indentation) << "switch (fieldFromInstruction" << Owner->BitWidth 577 << "(MCInst &MI, uint" << BitWidth << "_t insn, uint64_t Address, " local 1398 emitHelper(llvm::raw_ostream &o, unsigned BitWidth) argument [all...] |
/external/swiftshader/third_party/LLVM/include/llvm/ADT/ |
H A D | APInt.h | 74 unsigned BitWidth; ///< The number of bits in this APInt. member in class:llvm::APInt 95 APInt(uint64_t* val, unsigned bits) : BitWidth(bits), pVal(val) { } 100 return BitWidth <= APINT_BITS_PER_WORD; 132 unsigned wordBits = BitWidth % APINT_BITS_PER_WORD; 228 : BitWidth(numBits), VAL(0) { 229 assert(BitWidth && "bitwidth too small"); 267 : BitWidth(that.BitWidth), VAL(0) { 268 assert(BitWidth && "bitwidth too small"); 283 explicit APInt() : BitWidth( 420 getSignBit(unsigned BitWidth) argument [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineSimplifyDemanded.cpp | 54 unsigned BitWidth = Inst.getType()->getScalarSizeInBits(); local 55 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); 56 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); 109 uint32_t BitWidth = DemandedMask.getBitWidth(); local 112 (!VTy->isIntOrIntVectorTy() || VTy->getScalarSizeInBits() == BitWidth) && 113 KnownZero.getBitWidth() == BitWidth && 114 KnownOne.getBitWidth() == BitWidth && 116 "must have same BitWidth"); 141 APInt LHSKnownZero(BitWidth, 844 unsigned BitWidth = Ty->getIntegerBitWidth(); 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); 283 unsigned BitWidth = getSizeInBits(); local 284 if (BitWidth <= 8) 286 return getIntegerVT(Context, 1 << Log2_32_Ceil(BitWidth)); [all...] |
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/MCJIT/ |
H A D | MCJIT.cpp | 186 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth(); local 187 if (BitWidth == 1) 188 rv.IntVal = APInt(BitWidth, ((bool(*)())(intptr_t)FPtr)()); 189 else if (BitWidth <= 8) 190 rv.IntVal = APInt(BitWidth, ((char(*)())(intptr_t)FPtr)()); 191 else if (BitWidth <= 16) 192 rv.IntVal = APInt(BitWidth, ((short(*)())(intptr_t)FPtr)()); 193 else if (BitWidth <= 32) 194 rv.IntVal = APInt(BitWidth, ((int(*)())(intptr_t)FPtr)()); 195 else if (BitWidth < [all...] |
/external/clang/lib/Basic/ |
H A D | TargetInfo.cpp | 186 unsigned BitWidth, bool IsSigned) const { 187 if (getCharWidth() == BitWidth) 189 if (getShortWidth() == BitWidth) 191 if (getIntWidth() == BitWidth) 193 if (getLongWidth() == BitWidth) 195 if (getLongLongWidth() == BitWidth) 200 TargetInfo::IntType TargetInfo::getLeastIntTypeByWidth(unsigned BitWidth, argument 202 if (getCharWidth() >= BitWidth) 204 if (getShortWidth() >= BitWidth) 206 if (getIntWidth() >= BitWidth) 185 getIntTypeByWidth( unsigned BitWidth, bool IsSigned) const argument [all...] |
/external/clang/lib/StaticAnalyzer/Core/ |
H A D | APSIntType.cpp | 42 if (MinBits <= BitWidth)
|
/external/swiftshader/third_party/LLVM/include/llvm/CodeGen/ |
H A D | ValueTypes.h | 300 static MVT getFloatingPointVT(unsigned BitWidth) { argument 301 switch (BitWidth) { 315 static MVT getIntegerVT(unsigned BitWidth) { argument 316 switch (BitWidth) { 405 static EVT getFloatingPointVT(unsigned BitWidth) { argument 406 return MVT::getFloatingPointVT(BitWidth); 411 static EVT getIntegerVT(LLVMContext &Context, unsigned BitWidth) { argument 412 MVT M = MVT::getIntegerVT(BitWidth); 415 return getExtendedIntegerVT(Context, BitWidth); 448 unsigned BitWidth local 615 unsigned BitWidth = getSizeInBits(); local [all...] |
/external/llvm/lib/CodeGen/SelectionDAG/ |
H A D | FunctionLoweringInfo.cpp | 402 FunctionLoweringInfo::GetLiveOutRegInfo(unsigned Reg, unsigned BitWidth) { argument 410 if (BitWidth > LOI->KnownZero.getBitWidth()) { 412 LOI->KnownZero = LOI->KnownZero.zextOrTrunc(BitWidth); 413 LOI->KnownOne = LOI->KnownOne.zextOrTrunc(BitWidth); 435 unsigned BitWidth = IntVT.getSizeInBits(); local 446 APInt Zero(BitWidth, 0); 453 APInt Val = CI->getValue().zextOrTrunc(BitWidth); 465 const LiveOutInfo *SrcLOI = GetLiveOutRegInfo(SrcReg, BitWidth); 473 assert(DestLOI.KnownZero.getBitWidth() == BitWidth && 474 DestLOI.KnownOne.getBitWidth() == BitWidth [all...] |
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/ |
H A D | FunctionLoweringInfo.cpp | 243 FunctionLoweringInfo::GetLiveOutRegInfo(unsigned Reg, unsigned BitWidth) { argument 251 if (BitWidth > LOI->KnownZero.getBitWidth()) { 253 LOI->KnownZero = LOI->KnownZero.zextOrTrunc(BitWidth); 254 LOI->KnownOne = LOI->KnownOne.zextOrTrunc(BitWidth); 276 unsigned BitWidth = IntVT.getSizeInBits(); local 287 APInt Zero(BitWidth, 0); 294 APInt Val = CI->getValue().zextOrTrunc(BitWidth); 306 const LiveOutInfo *SrcLOI = GetLiveOutRegInfo(SrcReg, BitWidth); 314 assert(DestLOI.KnownZero.getBitWidth() == BitWidth && 315 DestLOI.KnownOne.getBitWidth() == BitWidth [all...] |
/external/llvm/lib/Transforms/IPO/ |
H A D | WholeProgramDevirt.cpp | 135 unsigned BitWidth, int64_t &OffsetByte, uint64_t &OffsetBit) { 136 if (BitWidth == 1) 139 OffsetByte = -((AllocBefore + 7) / 8 + (BitWidth + 7) / 8); 143 if (BitWidth == 1) 146 Target.setBeforeBytes(AllocBefore, (BitWidth + 7) / 8); 152 unsigned BitWidth, int64_t &OffsetByte, uint64_t &OffsetBit) { 153 if (BitWidth == 1) 160 if (BitWidth == 1) 163 Target.setAfterBytes(AllocAfter, (BitWidth + 7) / 8); 281 bool tryUniqueRetValOpt(unsigned BitWidth, 133 setBeforeReturnValues( MutableArrayRef<VirtualCallTarget> Targets, uint64_t AllocBefore, unsigned BitWidth, int64_t &OffsetByte, uint64_t &OffsetBit) argument 150 setAfterReturnValues( MutableArrayRef<VirtualCallTarget> Targets, uint64_t AllocAfter, unsigned BitWidth, int64_t &OffsetByte, uint64_t &OffsetBit) argument 459 tryUniqueRetValOpt( unsigned BitWidth, ArrayRef<VirtualCallTarget> TargetsForSlot, MutableArrayRef<VirtualCallSite> CallSites) argument 505 unsigned BitWidth = RetType->getBitWidth(); local [all...] |