/external/llvm/lib/IR/ |
D | ConstantRange.cpp | 48 assert(Lower.getBitWidth() == Upper.getBitWidth() && in ConstantRange() 59 uint32_t W = CR.getBitWidth(); in makeAllowedICmpRegion() 152 unsigned BitWidth = C.getBitWidth(); in makeNoWrapRegion() 204 return contains(APInt::getSignedMaxValue(getBitWidth())) && in isSignWrappedSet() 205 contains(APInt::getSignedMinValue(getBitWidth())); in isSignWrappedSet() 212 APInt Size(getBitWidth()+1, 0); in getSetSize() 213 Size.setBit(getBitWidth()); in getSetSize() 218 return (Upper - Lower).zext(getBitWidth()+1); in getSetSize() 226 return APInt::getMaxValue(getBitWidth()); in getUnsignedMax() 235 return APInt::getMinValue(getBitWidth()); in getUnsignedMin() [all …]
|
D | Operator.cpp | 17 assert(Offset.getBitWidth() == in accumulateConstantOffset() 33 Offset += APInt(Offset.getBitWidth(), SL->getElementOffset(ElementIdx)); in accumulateConstantOffset() 38 APInt Index = OpC->getValue().sextOrTrunc(Offset.getBitWidth()); in accumulateConstantOffset() 39 Offset += Index * APInt(Offset.getBitWidth(), in accumulateConstantOffset()
|
D | Type.cpp | 54 return isIntegerTy() && cast<IntegerType>(this)->getBitWidth() == Bitwidth; in isIntegerTy() 74 return thisPTy->getBitWidth() == thatPTy->getBitWidth(); in canLosslesslyBitCastTo() 76 thisPTy->getBitWidth() == 64) in canLosslesslyBitCastTo() 82 if (thatPTy->getBitWidth() == 64) in canLosslesslyBitCastTo() 123 case Type::IntegerTyID: return cast<IntegerType>(this)->getBitWidth(); in getPrimitiveSizeInBits() 124 case Type::VectorTyID: return cast<VectorType>(this)->getBitWidth(); in getPrimitiveSizeInBits() 170 return cast<IntegerType>(this)->getBitWidth(); in getIntegerBitWidth() 323 unsigned BitWidth = getBitWidth(); in isPowerOf2ByteWidth() 328 return APInt::getAllOnesValue(getBitWidth()); in getMask()
|
D | MDBuilder.cpp | 67 assert(Lo.getBitWidth() == Hi.getBitWidth() && "Mismatched bitwidths!"); in createRange() 69 Type *Ty = IntegerType::get(Context, Lo.getBitWidth()); in createRange()
|
D | ValueTypes.cpp | 108 return ITy->getBitWidth(); in getExtendedSizeInBits() 110 return VTy->getBitWidth(); in getExtendedSizeInBits() 284 return getIntegerVT(cast<IntegerType>(Ty)->getBitWidth()); in getVT() 309 return getIntegerVT(Ty->getContext(), cast<IntegerType>(Ty)->getBitWidth()); in getEVT()
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZTargetTransformInfo.cpp | 49 if (Imm.getBitWidth() <= 64) { in getIntImmCost() 90 if (Idx == 0 && Imm.getBitWidth() <= 64) { in getIntImmCost() 100 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCost() 111 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCost() 121 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCost() 129 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCost() 139 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCost() 205 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCost() 215 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCost() 221 if ((Idx < 2) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue()))) in getIntImmCost() [all …]
|
/external/llvm/lib/Target/ |
D | TargetLoweringObjectFile.cpp | 184 if ((ITy->getBitWidth() == 8 || ITy->getBitWidth() == 16 || in getKindForGlobal() 185 ITy->getBitWidth() == 32) && in getKindForGlobal() 187 if (ITy->getBitWidth() == 8) in getKindForGlobal() 189 if (ITy->getBitWidth() == 16) in getKindForGlobal() 192 assert(ITy->getBitWidth() == 32 && "Unknown width"); in getKindForGlobal()
|
/external/llvm/include/llvm/ADT/ |
D | APSInt.h | 296 if (I1.getBitWidth() == I2.getBitWidth() && I1.isSigned() == I2.isSigned()) in compareValues() 300 if (I1.getBitWidth() > I2.getBitWidth()) in compareValues() 301 return compareValues(I1, I2.extend(I1.getBitWidth())); in compareValues() 302 else if (I2.getBitWidth() > I1.getBitWidth()) in compareValues() 303 return compareValues(I1.extend(I2.getBitWidth()), I2); in compareValues()
|
D | APInt.h | 547 assert(NewLen >= V.getBitWidth() && "Can't splat to smaller bit width!"); in getSplat() 550 for (unsigned I = V.getBitWidth(); I < NewLen; I <<= 1) in getSplat() 559 if (I1.getBitWidth() == I2.getBitWidth()) in isSameValue() 562 if (I1.getBitWidth() > I2.getBitWidth()) in isSameValue() 563 return I1 == I2.zext(I1.getBitWidth()); in isSameValue() 565 return I1.zext(I2.getBitWidth()) == I2; in isSameValue() 778 return APInt(getBitWidth(), VAL & RHS.VAL); 793 return APInt(getBitWidth(), VAL | RHS.VAL); 963 assert(bitPosition < getBitWidth() && "Bit position out of bounds!"); 1274 unsigned getBitWidth() const { return BitWidth; } in getBitWidth() function [all …]
|
/external/clang/lib/Lex/ |
D | PPExpressions.cpp | 42 unsigned getBitWidth() const { return Val.getBitWidth(); } in getBitWidth() function in __anon2309a6f80111::PPValue 312 if (Result.Val.getBitWidth() > Val.getBitWidth()) { in EvaluateValue() 313 Result.Val = Val.extend(Result.Val.getBitWidth()); in EvaluateValue() 315 assert(Result.Val.getBitWidth() == Val.getBitWidth() && in EvaluateValue() 494 PPValue RHS(LHS.getBitWidth()); in EvaluateDirectiveSubExpr() 537 llvm::APSInt Res(LHS.getBitWidth()); in EvaluateDirectiveSubExpr() 608 if (ShAmt >= LHS.getBitWidth()) in EvaluateDirectiveSubExpr() 609 Overflow = true, ShAmt = LHS.getBitWidth()-1; in EvaluateDirectiveSubExpr() 687 PPValue AfterColonVal(LHS.getBitWidth()); in EvaluateDirectiveSubExpr()
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | SimpleConstraintManager.cpp | 198 From.getBitWidth() == To.getBitWidth() && in assumeWithinInclusiveRange() 273 if (ComparisonType.getBitWidth() == WraparoundType.getBitWidth() && in assumeSymRel() 321 if (ComparisonType.getBitWidth() == WraparoundType.getBitWidth() && in assumeSymWithinInclusiveRange()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCTargetTransformInfo.cpp | 51 if (Imm.getBitWidth() <= 64) { in getIntImmCost() 85 if ((Idx == 1) && Imm.getBitWidth() <= 64 && isInt<16>(Imm.getSExtValue())) in getIntImmCost() 89 if ((Idx < 2) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue()))) in getIntImmCost() 94 if ((Idx < 4) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue()))) in getIntImmCost() 158 if (Idx == ImmIdx && Imm.getBitWidth() <= 64) { in getIntImmCost() 163 if (Imm.getBitWidth() <= 32 && in getIntImmCost()
|
/external/llvm/lib/Analysis/ |
D | DemandedBits.cpp | 75 unsigned BitWidth = AB.getBitWidth(); in determineLiveOperandBits() 236 if ((AOut & APInt::getHighBitsSet(AOut.getBitWidth(), in determineLiveOperandBits() 237 AOut.getBitWidth() - BitWidth)) in determineLiveOperandBits() 286 AliveBits[&I] = APInt(IT->getBitWidth(), 0); in performAnalysis() 297 AliveBits[J] = APInt::getAllOnesValue(IT->getBitWidth()); in performAnalysis() 329 unsigned BitWidth = IT->getBitWidth(); in performAnalysis()
|
D | ValueTracking.cpp | 75 static unsigned getBitWidth(Type *Ty, const DataLayout &DL) { in getBitWidth() function 150 APInt LHSKnownZero(IT->getBitWidth(), 0), LHSKnownOne(IT->getBitWidth(), 0); in haveNoCommonBitsSet() 151 APInt RHSKnownZero(IT->getBitWidth(), 0), RHSKnownOne(IT->getBitWidth(), 0); in haveNoCommonBitsSet() 239 unsigned BitWidth = KnownZero.getBitWidth(); in computeKnownBitsAddSub() 257 unsigned BitWidth = KnownZero.getBitWidth(); in computeKnownBitsAddSub() 313 unsigned BitWidth = KnownZero.getBitWidth(); in computeKnownBitsMul() 372 unsigned BitWidth = KnownZero.getBitWidth(); in computeKnownBitsFromRangeMetadata() 558 const unsigned BitWidth = KnownZero.getBitWidth(); in computeKnownBitsFromTrueCondition() 735 unsigned BitWidth = KnownZero.getBitWidth(); in computeKnownBitsFromAssume() 989 unsigned BitWidth = KnownZero.getBitWidth(); in computeKnownBitsFromShiftOperator() [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | StraightLineStrengthReduce.cpp | 402 APInt One(Idx->getBitWidth(), 1); in allocateCandidatesAndFindBasisForAdd() 504 APInt One(RHS->getBitWidth(), 1); in factorArrayIndex() 550 if (A.getBitWidth() < B.getBitWidth()) in unifyBitWidth() 551 A = A.sext(B.getBitWidth()); in unifyBitWidth() 552 else if (A.getBitWidth() > B.getBitWidth()) in unifyBitWidth() 553 B = B.sext(A.getBitWidth()); in unifyBitWidth() 568 IndexOffset.getBitWidth(), in emitBump() 590 IntegerType::get(Basis.Ins->getContext(), IndexOffset.getBitWidth()); in emitBump()
|
D | SROA.cpp | 713 APInt(Offset.getBitWidth(), SL->getElementOffset(ElementIdx)); in visitGetElementPtrInst() 717 APInt Index = OpC->getValue().sextOrTrunc(Offset.getBitWidth()); in visitGetElementPtrInst() 718 GEPOffset += Index * APInt(Offset.getBitWidth(), in visitGetElementPtrInst() 1101 if (UserITy->getBitWidth() % 8 != 0 || in findCommonType() 1102 UserITy->getBitWidth() / 8 > (EndOffset - B->beginOffset())) in findCommonType() 1107 if (!ITy || ITy->getBitWidth() < UserITy->getBitWidth()) in findCommonType() 1419 APInt ElementSize(Offset.getBitWidth(), ElementSizeInBits / 8); in getNaturalGEPRecursively() 1431 APInt ElementSize(Offset.getBitWidth(), DL.getTypeAllocSize(ElementTy)); in getNaturalGEPRecursively() 1451 Offset -= APInt(Offset.getBitWidth(), SL->getElementOffset(Index)); in getNaturalGEPRecursively() 1485 APInt ElementSize(Offset.getBitWidth(), DL.getTypeAllocSize(ElementTy)); in getNaturalGEPWithOffset() [all …]
|
/external/llvm/unittests/ADT/ |
D | APSIntTest.cpp | 46 EXPECT_EQ(64u, APSInt::get(7).getBitWidth()); in TEST() 50 EXPECT_EQ(64u, APSInt::get(-7).getBitWidth()); in TEST() 57 EXPECT_EQ(64u, APSInt::getUnsigned(7).getBitWidth()); in TEST() 61 EXPECT_EQ(64u, APSInt::getUnsigned(-7).getBitWidth()); in TEST()
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | APSIntType.h | 29 : BitWidth(Value.getBitWidth()), IsUnsigned(Value.isUnsigned()) {} in APSIntType() 31 uint32_t getBitWidth() const { return BitWidth; } in getBitWidth() function
|
/external/llvm/include/llvm/IR/ |
D | DerivedTypes.h | 62 unsigned getBitWidth() const { return getSubclassData(); } in getBitWidth() function 68 return ~uint64_t(0UL) >> (64-getBitWidth()); in getBitMask() 74 return 1ULL << (getBitWidth()-1); in getSignBit() 432 unsigned getBitWidth() const { in getBitWidth() function
|
D | ConstantRange.h | 106 uint32_t getBitWidth() const { return Lower.getBitWidth(); } in getBitWidth() function
|
/external/llvm/lib/Support/ |
D | APInt.cpp | 128 if (BitWidth == RHS.getBitWidth()) { in AssignSlowCase() 440 return APInt(val, getBitWidth()); in AndSlowCase() 448 return APInt(val, getBitWidth()); in OrSlowCase() 457 APInt Result(val, getBitWidth()); in XorSlowCase() 676 assert(getBitWidth() % SplatSizeInBits == 0 && in isSplat() 1421 APInt signedMin = APInt::getSignedMinValue(d.getBitWidth()); in magic() 1425 t = signedMin + (d.lshr(d.getBitWidth() - 1)); in magic() 1427 p = d.getBitWidth() - 1; // initialize p in magic() 1451 mag.s = p - d.getBitWidth(); // resulting shift in magic() 1467 APInt allOnes = APInt::getAllOnesValue(d.getBitWidth()).lshr(LeadingZeros); in magicu() [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 183 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() && in ComputeSignedMinMaxValuesFromKnownBits() 184 KnownZero.getBitWidth() == Min.getBitWidth() && in ComputeSignedMinMaxValuesFromKnownBits() 185 KnownZero.getBitWidth() == Max.getBitWidth() && in ComputeSignedMinMaxValuesFromKnownBits() 195 Min.setBit(Min.getBitWidth()-1); in ComputeSignedMinMaxValuesFromKnownBits() 196 Max.clearBit(Max.getBitWidth()-1); in ComputeSignedMinMaxValuesFromKnownBits() 207 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() && in ComputeUnsignedMinMaxValuesFromKnownBits() 208 KnownZero.getBitWidth() == Min.getBitWidth() && in ComputeUnsignedMinMaxValuesFromKnownBits() 209 KnownZero.getBitWidth() == Max.getBitWidth() && in ComputeUnsignedMinMaxValuesFromKnownBits() 1023 uint32_t TypeBits = CmpRHSV.getBitWidth(); in FoldICmpShrCst() 1196 ConstantInt::get(A->getType(), AP2.getBitWidth() - AP2TrailingZeros)); in FoldICmpCstShlCst() [all …]
|
/external/llvm/lib/ExecutionEngine/Interpreter/ |
D | ExternalFunctions.cpp | 67 switch (cast<IntegerType>(Ty)->getBitWidth()) { in getTypeID() 116 switch (cast<IntegerType>(Ty)->getBitWidth()) { in ffiTypeFor() 136 switch (cast<IntegerType>(Ty)->getBitWidth()) { in ffiValueFor() 226 switch (cast<IntegerType>(RetTy)->getBitWidth()) { in ffiInvoke()
|
/external/llvm/include/llvm/Analysis/ |
D | MemoryBuiltins.h | 173 return SizeOffset.first.getBitWidth() > 1; in knownSize() 177 return SizeOffset.second.getBitWidth() > 1; in knownOffset()
|
/external/llvm/lib/ExecutionEngine/ |
D | ExecutionEngine.cpp | 661 uint32_t BitWidth = cast<IntegerType>(CE->getType())->getBitWidth(); in getConstantValue() 667 uint32_t BitWidth = cast<IntegerType>(CE->getType())->getBitWidth(); in getConstantValue() 673 uint32_t BitWidth = cast<IntegerType>(CE->getType())->getBitWidth(); in getConstantValue() 722 uint32_t BitWidth = cast<IntegerType>(CE->getType())->getBitWidth(); in getConstantValue() 751 assert(GV.IntVal.getBitWidth() <= 64 && "Bad pointer width"); in getConstantValue() 1026 assert((IntVal.getBitWidth()+7)/8 >= StoreBytes && "Integer too small!"); in StoreIntToMemory() 1082 unsigned numOfBytes =(Val.AggregateVal[i].IntVal.getBitWidth()+7)/8; in StoreValueToMemory() 1098 assert((IntVal.getBitWidth()+7)/8 >= LoadBytes && "Integer too small!"); in LoadIntFromMemory() 1132 Result.IntVal = APInt(cast<IntegerType>(Ty)->getBitWidth(), 0); in LoadValueFromMemory() 1168 const unsigned elemBitWidth = cast<IntegerType>(ElemT)->getBitWidth(); in LoadValueFromMemory()
|