/external/swiftshader/third_party/LLVM/lib/Support/ |
D | ConstantRange.cpp | 45 assert(L.getBitWidth() == U.getBitWidth() && in ConstantRange() 56 uint32_t W = CR.getBitWidth(); in makeICmpRegion() 139 return contains(APInt::getSignedMaxValue(getBitWidth())) && in isSignWrappedSet() 140 contains(APInt::getSignedMinValue(getBitWidth())); in isSignWrappedSet() 147 return APInt(getBitWidth(), 0); in getSetSize() 148 if (getBitWidth() == 1) { in getSetSize() 163 return APInt::getMaxValue(getBitWidth()); in getUnsignedMax() 173 return APInt::getMinValue(getBitWidth()); in getUnsignedMin() 182 APInt SignedMax(APInt::getSignedMaxValue(getBitWidth())); in getSignedMax() 200 APInt SignedMin(APInt::getSignedMinValue(getBitWidth())); in getSignedMin() [all …]
|
/external/llvm/lib/IR/ |
D | ConstantRange.cpp | 48 assert(Lower.getBitWidth() == Upper.getBitWidth() && in ConstantRange() 59 uint32_t W = CR.getBitWidth(); in makeAllowedICmpRegion() 148 RHS = APInt(getBitWidth(), 0); in getEquivalentICmp() 191 unsigned BitWidth = Other.getBitWidth(); in makeGuaranteedNoWrapRegion() 250 return contains(APInt::getSignedMaxValue(getBitWidth())) && in isSignWrappedSet() 251 contains(APInt::getSignedMinValue(getBitWidth())); in isSignWrappedSet() 258 APInt Size(getBitWidth()+1, 0); in getSetSize() 259 Size.setBit(getBitWidth()); in getSetSize() 264 return (Upper - Lower).zext(getBitWidth()+1); in getSetSize() 272 return APInt::getMaxValue(getBitWidth()); in getUnsignedMax() [all …]
|
D | Operator.cpp | 23 assert(Offset.getBitWidth() == in accumulateConstantOffset() 39 Offset += APInt(Offset.getBitWidth(), SL->getElementOffset(ElementIdx)); in accumulateConstantOffset() 44 APInt Index = OpC->getValue().sextOrTrunc(Offset.getBitWidth()); in accumulateConstantOffset() 45 Offset += Index * APInt(Offset.getBitWidth(), in accumulateConstantOffset()
|
D | Type.cpp | 51 return isIntegerTy() && cast<IntegerType>(this)->getBitWidth() == Bitwidth; in isIntegerTy() 68 return thisPTy->getBitWidth() == thatPTy->getBitWidth(); in canLosslesslyBitCastTo() 70 thisPTy->getBitWidth() == 64) in canLosslesslyBitCastTo() 76 if (thatPTy->getBitWidth() == 64) in canLosslesslyBitCastTo() 117 case Type::IntegerTyID: return cast<IntegerType>(this)->getBitWidth(); in getPrimitiveSizeInBits() 118 case Type::VectorTyID: return cast<VectorType>(this)->getBitWidth(); in getPrimitiveSizeInBits() 259 unsigned BitWidth = getBitWidth(); in isPowerOf2ByteWidth() 264 return APInt::getAllOnesValue(getBitWidth()); in getMask()
|
/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/swiftshader/third_party/LLVM/lib/Target/ |
D | TargetLoweringObjectFile.cpp | 176 if ((ITy->getBitWidth() == 8 || ITy->getBitWidth() == 16 || in getKindForGlobal() 177 ITy->getBitWidth() == 32) && in getKindForGlobal() 179 if (ITy->getBitWidth() == 8) in getKindForGlobal() 181 if (ITy->getBitWidth() == 16) in getKindForGlobal() 184 assert(ITy->getBitWidth() == 32 && "Unknown width"); in getKindForGlobal()
|
/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() 783 return APInt(getBitWidth(), VAL & RHS.VAL); 798 return APInt(getBitWidth(), VAL | RHS.VAL); 968 assert(bitPosition < getBitWidth() && "Bit position out of bounds!"); 1279 unsigned getBitWidth() const { return BitWidth; } in getBitWidth() function [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/ADT/ |
D | APInt.h | 351 if (N >= getBitWidth()) in isIntN() 356 return APInt(N, makeArrayRef(pVal, getNumWords())).zext(getBitWidth()) in isIntN() 655 return APInt(getBitWidth(), VAL & RHS.VAL); 668 return APInt(getBitWidth(), VAL | RHS.VAL); 906 return ult(APInt(getBitWidth(), RHS)); in ult() 920 return slt(APInt(getBitWidth(), RHS)); in slt() 936 return ule(APInt(getBitWidth(), RHS)); in ule() 952 return sle(APInt(getBitWidth(), RHS)); in sle() 968 return ugt(APInt(getBitWidth(), RHS)); in ugt() 984 return sgt(APInt(getBitWidth(), RHS)); in sgt() [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | StraightLineStrengthReduce.cpp | 250 return Index->getBitWidth() <= 64 && in isAddFoldable() 373 APInt One(Idx->getBitWidth(), 1); in allocateCandidatesAndFindBasisForAdd() 475 APInt One(RHS->getBitWidth(), 1); in factorArrayIndex() 531 if (A.getBitWidth() < B.getBitWidth()) in unifyBitWidth() 532 A = A.sext(B.getBitWidth()); in unifyBitWidth() 533 else if (A.getBitWidth() > B.getBitWidth()) in unifyBitWidth() 534 B = B.sext(A.getBitWidth()); in unifyBitWidth() 549 IndexOffset.getBitWidth(), in emitBump() 571 IntegerType::get(Basis.Ins->getContext(), IndexOffset.getBitWidth()); in emitBump()
|
D | ConstantHoisting.cpp | 295 unsigned BW = V1.getBitWidth() > V2.getBitWidth() ? in calculateOffsetDiff() 296 V1.getBitWidth() : V2.getBitWidth(); in calculateOffsetDiff() 418 return LHS.ConstInt->getType()->getBitWidth() < in findBaseConstants() 419 RHS.ConstInt->getType()->getBitWidth(); in findBaseConstants() 431 if ((Diff.getBitWidth() <= 64) && in findBaseConstants()
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
D | APInt.h | 551 assert(NewLen >= V.getBitWidth() && "Can't splat to smaller bit width!"); in getSplat() 554 for (unsigned I = V.getBitWidth(); I < NewLen; I <<= 1) in getSplat() 563 if (I1.getBitWidth() == I2.getBitWidth()) in isSameValue() 566 if (I1.getBitWidth() > I2.getBitWidth()) in isSameValue() 567 return I1 == I2.zext(I1.getBitWidth()); in isSameValue() 569 return I1.zext(I2.getBitWidth()) == I2; in isSameValue() 777 return APInt(getBitWidth(), VAL & RHS.VAL); 790 return APInt(getBitWidth(), VAL | RHS.VAL); 944 assert(bitPosition < getBitWidth() && "Bit position out of bounds!"); 1255 unsigned getBitWidth() const { return BitWidth; } in getBitWidth() function [all …]
|
/external/spirv-llvm/lib/SPIRV/libSPIRV/ |
D | SPIRVType.cpp | 63 SPIRVType::getBitWidth() const { in getBitWidth() function in SPIRV::SPIRVType 65 return getVectorComponentType()->getBitWidth(); in getBitWidth() 74 return static_cast<const SPIRVTypeFloat *const>(this)->getBitWidth(); in getFloatBitWidth() 83 return static_cast<const SPIRVTypeInt *const>(this)->getBitWidth(); in getIntegerBitWidth()
|
/external/clang/lib/Lex/ |
D | PPExpressions.cpp | 48 unsigned getBitWidth() const { return Val.getBitWidth(); } in getBitWidth() function in __anondadb1f340111::PPValue 366 if (Result.Val.getBitWidth() > Val.getBitWidth()) { in EvaluateValue() 367 Result.Val = Val.extend(Result.Val.getBitWidth()); in EvaluateValue() 369 assert(Result.Val.getBitWidth() == Val.getBitWidth() && in EvaluateValue() 561 PPValue RHS(LHS.getBitWidth()); in EvaluateDirectiveSubExpr() 603 llvm::APSInt Res(LHS.getBitWidth()); in EvaluateDirectiveSubExpr() 674 if (ShAmt >= LHS.getBitWidth()) { in EvaluateDirectiveSubExpr() 676 ShAmt = LHS.getBitWidth()-1; in EvaluateDirectiveSubExpr() 755 PPValue AfterColonVal(LHS.getBitWidth()); in EvaluateDirectiveSubExpr()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCTargetTransformInfo.cpp | 58 if (Imm.getBitWidth() <= 64) { in getIntImmCost() 92 if ((Idx == 1) && Imm.getBitWidth() <= 64 && isInt<16>(Imm.getSExtValue())) in getIntImmCost() 96 if ((Idx < 2) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue()))) in getIntImmCost() 101 if ((Idx < 4) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue()))) in getIntImmCost() 165 if (Idx == ImmIdx && Imm.getBitWidth() <= 64) { in getIntImmCost() 170 if (Imm.getBitWidth() <= 32 && in getIntImmCost()
|
/external/llvm/lib/Analysis/ |
D | DemandedBits.cpp | 77 unsigned BitWidth = AB.getBitWidth(); in determineLiveOperandBits() 238 if ((AOut & APInt::getHighBitsSet(AOut.getBitWidth(), in determineLiveOperandBits() 239 AOut.getBitWidth() - BitWidth)) in determineLiveOperandBits() 284 AliveBits[&I] = APInt(IT->getBitWidth(), 0); in performAnalysis() 295 AliveBits[J] = APInt::getAllOnesValue(IT->getBitWidth()); in performAnalysis() 327 unsigned BitWidth = IT->getBitWidth(); in performAnalysis()
|
/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/swiftshader/third_party/LLVM/lib/VMCore/ |
D | Type.cpp | 51 return isIntegerTy() && cast<IntegerType>(this)->getBitWidth() == Bitwidth; in isIntegerTy() 94 return thisPTy->getBitWidth() == thatPTy->getBitWidth(); in canLosslesslyBitCastTo() 96 thisPTy->getBitWidth() == 64) in canLosslesslyBitCastTo() 102 if (thatPTy->getBitWidth() == 64) in canLosslesslyBitCastTo() 140 case Type::IntegerTyID: return cast<IntegerType>(this)->getBitWidth(); in getPrimitiveSizeInBits() 141 case Type::VectorTyID: return cast<VectorType>(this)->getBitWidth(); in getPrimitiveSizeInBits() 297 unsigned BitWidth = getBitWidth(); in isPowerOf2ByteWidth() 302 return APInt::getAllOnesValue(getBitWidth()); in getMask()
|
/external/llvm/include/llvm/IR/ |
D | DerivedTypes.h | 62 unsigned getBitWidth() const { return getSubclassData(); } in getBitWidth() function 67 return ~uint64_t(0UL) >> (64-getBitWidth()); in getBitMask() 73 return 1ULL << (getBitWidth()-1); in getSignBit() 94 return cast<IntegerType>(this)->getBitWidth(); in getIntegerBitWidth() 428 unsigned getBitWidth() const { in getBitWidth() function
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/ |
D | DerivedTypes.h | 65 unsigned getBitWidth() const { return getSubclassData(); } in getBitWidth() function 70 return ~uint64_t(0UL) >> (64-getBitWidth()); in getBitMask() 76 return 1ULL << (getBitWidth()-1); in getSignBit() 97 return cast<IntegerType>(this)->getBitWidth(); in getIntegerBitWidth() 428 unsigned getBitWidth() const { in getBitWidth() function
|
/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/swiftshader/third_party/LLVM/utils/TableGen/ |
D | TGValueTypes.cpp | 37 return getBitWidth(); in getSizeInBits() 39 unsigned getBitWidth() const { in getBitWidth() function in ExtendedIntegerType
|
/external/swiftshader/third_party/LLVM/include/llvm/ |
D | DerivedTypes.h | 60 unsigned getBitWidth() const { return getSubclassData(); } in getBitWidth() function 66 return ~uint64_t(0UL) >> (64-getBitWidth()); in getBitMask() 72 return 1ULL << (getBitWidth()-1); in getSignBit() 411 unsigned getBitWidth() const { in getBitWidth() function
|
/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
|