/external/llvm-project/llvm/unittests/ADT/ |
D | APSIntTest.cpp | 17 APSInt A(32, true); in TEST() 20 APSInt B(128, false); in TEST() 24 APSInt C(B); in TEST() 29 APSInt D(std::move(Wide)); in TEST() 33 A = APSInt(64, true); in TEST() 44 EXPECT_TRUE(APSInt::get(7).isSigned()); in TEST() 45 EXPECT_EQ(64u, APSInt::get(7).getBitWidth()); in TEST() 46 EXPECT_EQ(7u, APSInt::get(7).getZExtValue()); in TEST() 47 EXPECT_EQ(7, APSInt::get(7).getSExtValue()); in TEST() 48 EXPECT_TRUE(APSInt::get(-7).isSigned()); in TEST() [all …]
|
/external/llvm/unittests/ADT/ |
D | APSIntTest.cpp | 18 APSInt A(32, true); in TEST() 21 APSInt B(128, false); in TEST() 25 APSInt C(B); in TEST() 30 APSInt D(std::move(Wide)); in TEST() 34 A = APSInt(64, true); in TEST() 45 EXPECT_TRUE(APSInt::get(7).isSigned()); in TEST() 46 EXPECT_EQ(64u, APSInt::get(7).getBitWidth()); in TEST() 47 EXPECT_EQ(7u, APSInt::get(7).getZExtValue()); in TEST() 48 EXPECT_EQ(7, APSInt::get(7).getSExtValue()); in TEST() 49 EXPECT_TRUE(APSInt::get(-7).isSigned()); in TEST() [all …]
|
/external/llvm/include/llvm/ADT/ |
D | APSInt.h | 22 class APSInt : public APInt { 27 explicit APSInt() : IsUnsigned(false) {} in APSInt() function 31 explicit APSInt(uint32_t BitWidth, bool isUnsigned = true) 34 explicit APSInt(APInt I, bool isUnsigned = true) 44 explicit APSInt(StringRef Str); 46 APSInt &operator=(APInt RHS) { 52 APSInt &operator=(uint64_t RHS) { 81 APSInt LLVM_ATTRIBUTE_UNUSED_RESULT trunc(uint32_t width) const { in trunc() 82 return APSInt(APInt::trunc(width), IsUnsigned); in trunc() 85 APSInt LLVM_ATTRIBUTE_UNUSED_RESULT extend(uint32_t width) const { in extend() [all …]
|
/external/llvm-project/llvm/include/llvm/ADT/ |
D | APSInt.h | 21 class LLVM_NODISCARD APSInt : public APInt { 26 explicit APSInt() : IsUnsigned(false) {} in APSInt() function 30 explicit APSInt(uint32_t BitWidth, bool isUnsigned = true) 33 explicit APSInt(APInt I, bool isUnsigned = true) 43 explicit APSInt(StringRef Str); 63 APSInt &operator=(APInt RHS) { 69 APSInt &operator=(uint64_t RHS) { 98 APSInt trunc(uint32_t width) const { in trunc() 99 return APSInt(APInt::trunc(width), IsUnsigned); in trunc() 102 APSInt extend(uint32_t width) const { in extend() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/ |
D | APSInt.h | 21 class LLVM_NODISCARD APSInt : public APInt { 26 explicit APSInt() : IsUnsigned(false) {} in APSInt() function 30 explicit APSInt(uint32_t BitWidth, bool isUnsigned = true) 33 explicit APSInt(APInt I, bool isUnsigned = true) 43 explicit APSInt(StringRef Str); 63 APSInt &operator=(APInt RHS) { 69 APSInt &operator=(uint64_t RHS) { 98 APSInt trunc(uint32_t width) const { in trunc() 99 return APSInt(APInt::trunc(width), IsUnsigned); in trunc() 102 APSInt extend(uint32_t width) const { in extend() [all …]
|
/external/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | RangedConstraintManager.h | 27 class Range : public std::pair<const llvm::APSInt *, const llvm::APSInt *> { 29 Range(const llvm::APSInt &from, const llvm::APSInt &to) in Range() 30 : std::pair<const llvm::APSInt *, const llvm::APSInt *>(&from, &to) { in Range() 34 Range(const llvm::APSInt &point) in Range() 35 : std::pair<const llvm::APSInt *, const llvm::APSInt *>(&point, &point) {} in Range() 37 bool Includes(const llvm::APSInt &v) const { in Includes() 40 const llvm::APSInt &From() const { return *first; } in From() 41 const llvm::APSInt &To() const { return *second; } in To() 42 const llvm::APSInt *getConcreteValue() const { in getConcreteValue() 93 RangeSet(Factory &F, const llvm::APSInt &from, const llvm::APSInt &to) in RangeSet() [all …]
|
D | BasicValueFactory.h | 108 llvm::FoldingSet<llvm::FoldingSetNodeWrapper<llvm::APSInt>>; 125 const llvm::APSInt& getValue(uint64_t X, unsigned BitWidth, bool isUnsigned); 136 const llvm::APSInt& getValue(const llvm::APSInt& X); 137 const llvm::APSInt& getValue(const llvm::APInt& X, bool isUnsigned); 138 const llvm::APSInt& getValue(uint64_t X, QualType T); 149 const llvm::APSInt &Convert(const llvm::APSInt& To, in Convert() 150 const llvm::APSInt& From) { in Convert() 158 const llvm::APSInt &Convert(QualType T, const llvm::APSInt &From) { in Convert() 163 const llvm::APSInt &Convert(APSIntType TargetType, const llvm::APSInt &From) { in Convert() 170 const llvm::APSInt &getIntValue(uint64_t X, bool isUnsigned) { in getIntValue() [all …]
|
D | APSIntType.h | 27 /* implicit */ APSIntType(const llvm::APSInt &Value) in APSIntType() 37 void apply(llvm::APSInt &Value) const { in apply() 48 llvm::APSInt convert(const llvm::APSInt &Value) const LLVM_READONLY { in convert() 49 llvm::APSInt Result(Value, Value.isUnsigned()); in convert() 55 llvm::APSInt getZeroValue() const LLVM_READONLY { in getZeroValue() 56 return llvm::APSInt(BitWidth, IsUnsigned); in getZeroValue() 60 llvm::APSInt getMinValue() const LLVM_READONLY { in getMinValue() 61 return llvm::APSInt::getMinValue(BitWidth, IsUnsigned); in getMinValue() 65 llvm::APSInt getMaxValue() const LLVM_READONLY { in getMaxValue() 66 return llvm::APSInt::getMaxValue(BitWidth, IsUnsigned); in getMaxValue() [all …]
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | RangeConstraintManager.cpp | 31 class Range : public std::pair<const llvm::APSInt*, 32 const llvm::APSInt*> { 34 Range(const llvm::APSInt &from, const llvm::APSInt &to) in Range() 35 : std::pair<const llvm::APSInt*, const llvm::APSInt*>(&from, &to) { in Range() 38 bool Includes(const llvm::APSInt &v) const { in Includes() 41 const llvm::APSInt &From() const { in From() 44 const llvm::APSInt &To() const { in To() 47 const llvm::APSInt *getConcreteValue() const { in getConcreteValue() 99 RangeSet(Factory &F, const llvm::APSInt &from, const llvm::APSInt &to) in RangeSet() 109 const llvm::APSInt* getConcreteValue() const { in getConcreteValue() [all …]
|
D | SimpleConstraintManager.h | 43 const llvm::APSInt &From, 44 const llvm::APSInt &To, 50 const llvm::APSInt& Int); 54 const llvm::APSInt &From, 55 const llvm::APSInt &To, 68 const llvm::APSInt& V, 69 const llvm::APSInt& Adjustment) = 0; 72 const llvm::APSInt& V, 73 const llvm::APSInt& Adjustment) = 0; 76 const llvm::APSInt& V, [all …]
|
/external/llvm-project/clang/unittests/Frontend/ |
D | FixedPointString.cpp | 7 using llvm::APSInt; 14 FixedPointValueToString(S, APSInt::get(320), 7); in TEST() 18 FixedPointValueToString(S, APSInt::get(0), 7); in TEST() 23 FixedPointValueToString(S, APSInt::getMaxValue(16, /*Unsigned=*/false), 7); in TEST() 28 FixedPointValueToString(S, APSInt::getMaxValue(32, /*Unsigned=*/false), 15); in TEST() 33 FixedPointValueToString(S, APSInt::getMaxValue(64, /*Unsigned=*/false), 31); in TEST() 38 FixedPointValueToString(S, APSInt::getMaxValue(16, /*Unsigned=*/true), 8); in TEST() 43 FixedPointValueToString(S, APSInt::getMaxValue(32, /*Unsigned=*/true), 16); in TEST() 48 FixedPointValueToString(S, APSInt::getMaxValue(64, /*Unsigned=*/true), 32); in TEST() 53 FixedPointValueToString(S, APSInt::getMaxValue(8, /*Unsigned=*/false), 7); in TEST() [all …]
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | BasicValueFactory.h | 63 typedef llvm::FoldingSet<llvm::FoldingSetNodeWrapper<llvm::APSInt> > 79 const llvm::APSInt& getValue(uint64_t X, unsigned BitWidth, bool isUnsigned); 90 const llvm::APSInt& getValue(const llvm::APSInt& X); 91 const llvm::APSInt& getValue(const llvm::APInt& X, bool isUnsigned); 92 const llvm::APSInt& getValue(uint64_t X, QualType T); 103 const llvm::APSInt &Convert(const llvm::APSInt& To, in Convert() 104 const llvm::APSInt& From) { in Convert() 112 const llvm::APSInt &Convert(QualType T, const llvm::APSInt &From) { in Convert() 120 const llvm::APSInt& getIntValue(uint64_t X, bool isUnsigned) { in getIntValue() 125 inline const llvm::APSInt& getMaxValue(const llvm::APSInt &v) { in getMaxValue() [all …]
|
D | APSIntType.h | 28 /* implicit */ APSIntType(const llvm::APSInt &Value) in APSIntType() 38 void apply(llvm::APSInt &Value) const { in apply() 49 llvm::APSInt convert(const llvm::APSInt &Value) const LLVM_READONLY { in convert() 50 llvm::APSInt Result(Value, Value.isUnsigned()); in convert() 56 llvm::APSInt getZeroValue() const LLVM_READONLY { in getZeroValue() 57 return llvm::APSInt(BitWidth, IsUnsigned); in getZeroValue() 61 llvm::APSInt getMinValue() const LLVM_READONLY { in getMinValue() 62 return llvm::APSInt::getMinValue(BitWidth, IsUnsigned); in getMinValue() 66 llvm::APSInt getMaxValue() const LLVM_READONLY { in getMaxValue() 67 return llvm::APSInt::getMaxValue(BitWidth, IsUnsigned); in getMaxValue() [all …]
|
/external/llvm-project/clang/lib/StaticAnalyzer/Core/ |
D | RangeConstraintManager.cpp | 105 const llvm::APSInt &Lower, in IntersectInRange() 106 const llvm::APSInt &Upper, in IntersectInRange() 143 const llvm::APSInt &RangeSet::getMinValue() const { in getMinValue() 148 const llvm::APSInt &RangeSet::getMaxValue() const { in getMaxValue() 160 bool RangeSet::pin(llvm::APSInt &Lower, llvm::APSInt &Upper) const { in pin() 254 llvm::APSInt Lower, llvm::APSInt Upper) const { in Intersect() 314 const llvm::APSInt sampleValue = getMinValue(); in Negate() 315 const llvm::APSInt &MIN = BV.getMinValue(sampleValue); in Negate() 316 const llvm::APSInt &MAX = BV.getMaxValue(sampleValue); in Negate() 320 const llvm::APSInt &from = i->From(); in Negate() [all …]
|
D | RangedConstraintManager.cpp | 61 const llvm::APSInt &Zero = getBasicVals().getValue(0, DiffTy); in assumeSym() 78 const llvm::APSInt &Zero = getBasicVals().getValue(0, ExprType); in assumeSym() 94 ProgramStateRef State, SymbolRef Sym, const llvm::APSInt &From, in assumeSymInclusiveRange() 95 const llvm::APSInt &To, bool InRange) { in assumeSymInclusiveRange() 100 llvm::APSInt Adjustment = WraparoundType.getZeroValue(); in assumeSymInclusiveRange() 106 llvm::APSInt ConvertedFrom = ComparisonType.convert(From); in assumeSymInclusiveRange() 107 llvm::APSInt ConvertedTo = ComparisonType.convert(To); in assumeSymInclusiveRange() 132 const llvm::APSInt &Zero = BVF.getValue(0, T); in assumeSymUnsupported() 142 const llvm::APSInt &Int) { in assumeSymRel() 168 llvm::APSInt Adjustment = WraparoundType.getZeroValue(); in assumeSymRel() [all …]
|
/external/llvm-project/llvm/lib/Support/ |
D | APFixedPoint.cpp | 21 APSInt NewVal = Val; in convert() 65 APSInt ThisVal = getValue(); in compare() 66 APSInt OtherVal = Other.getValue(); in compare() 117 auto Val = APSInt::getMaxValue(Sema.getWidth(), IsUnsigned); in getMax() 124 auto Val = APSInt::getMinValue(Sema.getWidth(), !Sema.isSigned()); in getMin() 138 APSInt MaxInt = APFixedPoint::getMax(*this).getValue(); in fitsInFloatSemantics() 145 APSInt MinInt = APFixedPoint::getMin(*this).getValue(); in fitsInFloatSemantics() 181 APSInt ThisVal = ConvertedThis.getValue(); in add() 182 APSInt OtherVal = ConvertedOther.getValue(); in add() 185 APSInt Result; in add() [all …]
|
D | APSInt.cpp | 21 APSInt::APSInt(StringRef Str) { in APSInt() function in APSInt 31 *this = APSInt(Tmp, /*isUnsigned=*/false); in APSInt() 37 *this = APSInt(Tmp, /*isUnsigned=*/true); in APSInt() 40 void APSInt::Profile(FoldingSetNodeID& ID) const { in Profile()
|
/external/clang/test/SemaCXX/ |
D | unused.cpp | 10 class APSInt : public APInt { class 13 APSInt &operator=(const APSInt &RHS); 16 APSInt& APSInt::operator=(const APSInt &RHS) { in operator =()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/CodeView/ |
D | RecordSerialization.cpp | 36 Error llvm::codeview::consume(BinaryStreamReader &Reader, APSInt &Num) { in consume() 44 Num = APSInt(APInt(/*numBits=*/16, Short, /*isSigned=*/false), in consume() 54 Num = APSInt(APInt(8, N, true), false); in consume() 61 Num = APSInt(APInt(16, N, true), false); in consume() 68 Num = APSInt(APInt(16, N, false), true); in consume() 75 Num = APSInt(APInt(32, N, true), false); in consume() 82 Num = APSInt(APInt(32, N, FalseVal), true); in consume() 89 Num = APSInt(APInt(64, N, true), false); in consume() 96 Num = APSInt(APInt(64, N, false), true); in consume() 104 Error llvm::codeview::consume(StringRef &Data, APSInt &Num) { in consume() [all …]
|
/external/llvm-project/llvm/lib/DebugInfo/CodeView/ |
D | RecordSerialization.cpp | 36 Error llvm::codeview::consume(BinaryStreamReader &Reader, APSInt &Num) { in consume() 44 Num = APSInt(APInt(/*numBits=*/16, Short, /*isSigned=*/false), in consume() 54 Num = APSInt(APInt(8, N, true), false); in consume() 61 Num = APSInt(APInt(16, N, true), false); in consume() 68 Num = APSInt(APInt(16, N, false), true); in consume() 75 Num = APSInt(APInt(32, N, true), false); in consume() 82 Num = APSInt(APInt(32, N, FalseVal), true); in consume() 89 Num = APSInt(APInt(64, N, true), false); in consume() 96 Num = APSInt(APInt(64, N, false), true); in consume() 104 Error llvm::codeview::consume(StringRef &Data, APSInt &Num) { in consume() [all …]
|
/external/llvm/lib/DebugInfo/CodeView/ |
D | RecordSerialization.cpp | 34 std::error_code llvm::codeview::consume(ArrayRef<uint8_t> &Data, APSInt &Num) { in consume() 42 Num = APSInt(APInt(/*numBits=*/16, Short, /*isSigned=*/false), in consume() 50 Num = APSInt(APInt(/*numBits=*/8, in consume() 59 Num = APSInt(APInt(/*numBits=*/16, in consume() 68 Num = APSInt(APInt(/*numBits=*/16, in consume() 77 Num = APSInt(APInt(/*numBits=*/32, in consume() 86 Num = APSInt(APInt(/*numBits=*/32, in consume() 95 Num = APSInt(APInt(/*numBits=*/64, in consume() 104 Num = APSInt(APInt(/*numBits=*/64, in consume() 114 std::error_code llvm::codeview::consume(StringRef &Data, APSInt &Num) { in consume() [all …]
|
/external/llvm-project/clang/test/SemaCXX/ |
D | unused.cpp | 11 class APSInt : public APInt { class 14 APSInt &operator=(const APSInt &RHS); 17 APSInt& APSInt::operator=(const APSInt &RHS) { in operator =()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | APSInt.cpp | 20 APSInt::APSInt(StringRef Str) { in APSInt() function in APSInt 30 *this = APSInt(Tmp, /*isUnsigned=*/false); in APSInt() 36 *this = APSInt(Tmp, /*isUnsigned=*/true); in APSInt() 39 void APSInt::Profile(FoldingSetNodeID& ID) const { in Profile()
|
/external/llvm/lib/Support/ |
D | APSInt.cpp | 21 APSInt::APSInt(StringRef Str) { in APSInt() function in APSInt 31 *this = APSInt(Tmp, /*IsUnsigned=*/false); in APSInt() 37 *this = APSInt(Tmp, /*IsUnsigned=*/true); in APSInt() 40 void APSInt::Profile(FoldingSetNodeID& ID) const { in Profile()
|
/external/llvm-project/clang-tools-extra/clang-tidy/misc/ |
D | RedundantExpressionCheck.cpp | 37 using llvm::APSInt; 46 static bool incrementWithoutOverflow(const APSInt &Value, APSInt &Result) { in incrementWithoutOverflow() 159 const APSInt &ValueLHS, in areEquivalentRanges() 161 const APSInt &ValueRHS) { in areEquivalentRanges() 162 assert(APSInt::compareValues(ValueLHS, ValueRHS) <= 0 && in areEquivalentRanges() 165 if (APSInt::compareValues(ValueLHS, ValueRHS) == 0) in areEquivalentRanges() 169 APSInt ValueLHS_plus1; in areEquivalentRanges() 173 APSInt::compareValues(ValueLHS_plus1, ValueRHS) == 0; in areEquivalentRanges() 179 const APSInt &ValueLHS, in areExclusiveRanges() 181 const APSInt &ValueRHS) { in areExclusiveRanges() [all …]
|