| /src/external/apache2/llvm/dist/llvm/include/llvm/ADT/ |
| APSInt.h | 1 //===-- llvm/ADT/APSInt.h - Arbitrary Precision Signed Int -----*- C++ -*--===// 9 // This file implements the APSInt class, which is a simple class that 22 class LLVM_NODISCARD APSInt : public APInt { 27 explicit APSInt() : IsUnsigned(false) {} 29 /// Create an APSInt with the specified width, default to unsigned. 30 explicit APSInt(uint32_t BitWidth, bool isUnsigned = true) 33 explicit APSInt(APInt I, bool isUnsigned = true) 36 /// Construct an APSInt from a string representation. 40 /// constructed APSInt is determined automatically. 43 explicit APSInt(StringRef Str) [all...] |
| APFixedPoint.h | 19 #include "llvm/ADT/APSInt.h" 94 /// The APFixedPoint class works similarly to APInt/APSInt in that it is a 114 APSInt getValue() const { return APSInt(Val, !Sema.isSigned()); } 156 APSInt getIntPart() const { 164 /// zero. The value is stored into an APSInt with the provided width and sign. 168 APSInt convertToInt(unsigned DstWidth, bool DstSign, 210 static APFixedPoint getFromIntValue(const APSInt &Value, 226 APSInt Val;
|
| DenseMapInfo.h | 17 #include "llvm/ADT/APSInt.h" 375 /// Provide DenseMapInfo for APSInt, using the DenseMapInfo for APInt. 376 template <> struct DenseMapInfo<APSInt> { 377 static inline APSInt getEmptyKey() { 378 return APSInt(DenseMapInfo<APInt>::getEmptyKey()); 381 static inline APSInt getTombstoneKey() { 382 return APSInt(DenseMapInfo<APInt>::getTombstoneKey()); 385 static unsigned getHashValue(const APSInt &Key) { 389 static bool isEqual(const APSInt &LHS, const APSInt &RHS) [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/Support/ |
| APSInt.cpp | 1 //===-- llvm/ADT/APSInt.cpp - Arbitrary Precision Signed Int ---*- C++ -*--===// 9 // This file implements the APSInt class, which is a simple class that 14 #include "llvm/ADT/APSInt.h" 21 APSInt::APSInt(StringRef Str) { 31 *this = APSInt(Tmp, /*isUnsigned=*/false); 37 *this = APSInt(Tmp, /*isUnsigned=*/true); 40 void APSInt::Profile(FoldingSetNodeID& ID) const {
|
| APFixedPoint.cpp | 21 APSInt NewVal = Val; 65 APSInt ThisVal = getValue(); 66 APSInt OtherVal = Other.getValue(); 117 auto Val = APSInt::getMaxValue(Sema.getWidth(), IsUnsigned); 124 auto Val = APSInt::getMinValue(Sema.getWidth(), !Sema.isSigned()); 138 APSInt MaxInt = APFixedPoint::getMax(*this).getValue(); 145 APSInt MinInt = APFixedPoint::getMin(*this).getValue(); 181 APSInt ThisVal = ConvertedThis.getValue(); 182 APSInt OtherVal = ConvertedOther.getValue(); 185 APSInt Result [all...] |
| /src/external/apache2/llvm/dist/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| APSIntType.h | 12 #include "llvm/ADT/APSInt.h" 18 /// A record of the "type" of an APSInt, used for conversions. 27 /* implicit */ APSIntType(const llvm::APSInt &Value) 33 /// Convert a given APSInt, in place, to match this type. 37 void apply(llvm::APSInt &Value) const { 44 /// Convert and return a new APSInt with the given value, but this 48 llvm::APSInt convert(const llvm::APSInt &Value) const LLVM_READONLY { 49 llvm::APSInt Result(Value, Value.isUnsigned()); 55 llvm::APSInt getZeroValue() const LLVM_READONLY [all...] |
| RangedConstraintManager.h | 19 #include "llvm/ADT/APSInt.h" 31 Range(const llvm::APSInt &From, const llvm::APSInt &To) : Impl(&From, &To) { 35 Range(const llvm::APSInt &Point) : Range(Point, Point) {} 37 bool Includes(const llvm::APSInt &Point) const { 40 const llvm::APSInt &From() const { return *Impl.first; } 41 const llvm::APSInt &To() const { return *Impl.second; } 42 const llvm::APSInt *getConcreteValue() const { 60 std::pair<const llvm::APSInt *, const llvm::APSInt *> Impl [all...] |
| BasicValueFactory.h | 10 // of APSInt objects and symbolic constraints used by ExprEngine 25 #include "llvm/ADT/APSInt.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); 140 /// Returns the type of the APSInt used to store values of the given QualType. 153 /// Convert - Create a new persistent APSInt with the same value as 'From [all...] |
| SimpleConstraintManager.h | 43 const llvm::APSInt &From, 44 const llvm::APSInt &To, 63 const llvm::APSInt &From, 64 const llvm::APSInt &To,
|
| ConstraintManager.h | 27 class APSInt; 118 const llvm::APSInt &From, 119 const llvm::APSInt &To, 124 const llvm::APSInt &From, 125 const llvm::APSInt &To) { 151 virtual const llvm::APSInt* getSymVal(ProgramStateRef state,
|
| /src/external/apache2/llvm/dist/llvm/lib/DebugInfo/CodeView/ |
| RecordSerialization.cpp | 15 #include "llvm/ADT/APSInt.h" 36 Error llvm::codeview::consume(BinaryStreamReader &Reader, APSInt &Num) { 44 Num = APSInt(APInt(/*numBits=*/16, Short, /*isSigned=*/false), 54 Num = APSInt(APInt(8, N, true), false); 61 Num = APSInt(APInt(16, N, true), false); 68 Num = APSInt(APInt(16, N, false), true); 75 Num = APSInt(APInt(32, N, true), false); 82 Num = APSInt(APInt(32, N, FalseVal), true); 89 Num = APSInt(APInt(64, N, true), false); 96 Num = APSInt(APInt(64, N, false), true) [all...] |
| /src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/ |
| RangeConstraintManager.cpp | 123 RangeSet RangeSet::Factory::add(RangeSet Original, const llvm::APSInt &Point) { 163 const llvm::APSInt &RangeSet::getMinValue() const { 168 const llvm::APSInt &RangeSet::getMaxValue() const { 173 bool RangeSet::containsImpl(llvm::APSInt &Point) const { 185 bool RangeSet::pin(llvm::APSInt &Point) const { 194 bool RangeSet::pin(llvm::APSInt &Lower, llvm::APSInt &Upper) const { 275 RangeSet RangeSet::Factory::intersect(RangeSet What, llvm::APSInt Lower, 276 llvm::APSInt Upper) { 366 const llvm::APSInt &IntersectionStart = Second->From() [all...] |
| RangedConstraintManager.cpp | 61 const llvm::APSInt &Zero = getBasicVals().getValue(0, DiffTy); 78 const llvm::APSInt &Zero = getBasicVals().getValue(0, ExprType); 94 ProgramStateRef State, SymbolRef Sym, const llvm::APSInt &From, 95 const llvm::APSInt &To, bool InRange) { 100 llvm::APSInt Adjustment = WraparoundType.getZeroValue(); 106 llvm::APSInt ConvertedFrom = ComparisonType.convert(From); 107 llvm::APSInt ConvertedTo = ComparisonType.convert(To); 132 const llvm::APSInt &Zero = BVF.getValue(0, T); 142 const llvm::APSInt &Int) { 168 llvm::APSInt Adjustment = WraparoundType.getZeroValue() [all...] |
| APSIntType.cpp | 15 APSIntType::testInRange(const llvm::APSInt &Value,
|
| BasicValueFactory.cpp | 10 // of APSInt objects and symbolic constraints used by ExprEngine 20 #include "llvm/ADT/APSInt.h" 81 // so we iterate over the set and invoke the dstor for each APSInt. This 84 I.getValue().~APSInt(); 90 const llvm::APSInt& BasicValueFactory::getValue(const llvm::APSInt& X) { 94 using FoldNodeTy = llvm::FoldingSetNodeWrapper<llvm::APSInt>; 108 const llvm::APSInt& BasicValueFactory::getValue(const llvm::APInt& X, 110 llvm::APSInt V(X, isUnsigned); 114 const llvm::APSInt& BasicValueFactory::getValue(uint64_t X, unsigned BitWidth [all...] |
| SimpleSValBuilder.cpp | 42 const llvm::APSInt *getKnownValue(ProgramStateRef state, SVal V) override; 49 const llvm::APSInt &RHS, QualType resultTy); 87 const llvm::APSInt &RHS, 140 const llvm::APSInt &Result = BasicVals.Convert(resultTy, RHS); 154 const llvm::APSInt *ConvertedRHS = &RHS; 182 llvm::APSInt Bound, ProgramStateRef State) { 208 llvm::APSInt Max = AT.getMaxValue() / AT.getValue(4), Min = -Max; 214 static bool isWithinConstantOverflowBounds(llvm::APSInt I) { 219 llvm::APSInt Max = AT.getMaxValue() / AT.getValue(4), Min = -Max; 223 static std::pair<SymbolRef, llvm::APSInt> [all...] |
| SimpleConstraintManager.cpp | 95 ProgramStateRef State, NonLoc Value, const llvm::APSInt &From, 96 const llvm::APSInt &To, bool InRange) { 122 const llvm::APSInt &IntVal = Value.castAs<nonloc::ConcreteInt>().getValue();
|
| /src/external/apache2/llvm/dist/clang/lib/AST/Interp/ |
| InterpState.cpp | 22 using APSInt = llvm::APSInt; 51 bool InterpState::reportOverflow(const Expr *E, const llvm::APSInt &Value) {
|
| Boolean.h | 17 #include "llvm/ADT/APSInt.h" 53 APSInt toAPSInt() const { 54 return APSInt(APInt(1, static_cast<uint64_t>(V), false), true); 56 APSInt toAPSInt(unsigned NumBits) const { 57 return APSInt(toAPSInt().zextOrTrunc(NumBits), true);
|
| Integral.h | 18 #include "llvm/ADT/APSInt.h" 28 using APSInt = llvm::APSInt; 53 /// These wrappers are required to shared an interface between APSint and 80 explicit Integral(const APSInt &V) 106 APSInt toAPSInt() const { 107 return APSInt(APInt(Bits, static_cast<uint64_t>(V), Signed), !Signed); 109 APSInt toAPSInt(unsigned NumBits) const { 111 return APSInt(toAPSInt().sextOrTrunc(NumBits), !Signed); 113 return APSInt(toAPSInt().zextOrTrunc(NumBits), !Signed) [all...] |
| /src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/ |
| DebugIteratorModeling.cpp | 106 }, nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(0)))); 114 }, loc::ConcreteInt(BVF.getValue(llvm::APSInt::get(0)))); 122 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get((P->isValid())))); 123 }, nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(0))));
|
| BoolAssignmentChecker.cpp | 85 llvm::APSInt Zero = BVF.getValue(0, valTy); 86 llvm::APSInt One = BVF.getValue(1, valTy);
|
| EnumCastOutOfRangeChecker.cpp | 44 bool operator()(const llvm::APSInt &EnumDeclInitValue) { 67 using EnumValueVector = llvm::SmallVector<llvm::APSInt, 6>;
|
| UndefResultChecker.cpp | 70 const llvm::APSInt *LHS = SB.getKnownValue(State, C.getSVal(B->getLHS())); 71 const llvm::APSInt *RHS = SB.getKnownValue(State, C.getSVal(B->getRHS())); 138 const llvm::APSInt *I = 158 const llvm::APSInt *LHS = 160 const llvm::APSInt *RHS =
|
| /src/external/apache2/llvm/dist/clang/include/clang/AST/ |
| APValue.h | 1 //===--- APValue.h - Union class for APFloat/APSInt/Complex -----*- C++ -*-===// 19 #include "llvm/ADT/APSInt.h" 120 /// [APSInt] [APFloat], [Complex APSInt] [Complex APFloat], [Expr + Offset], 124 typedef llvm::APSInt APSInt; 261 APSInt Real, Imag; 301 typedef llvm::AlignedCharArrayUnion<void *, APSInt, APFloat, ComplexAPSInt, 310 explicit APValue(APSInt I) : Kind(None) { 322 APValue(APSInt R, APSInt I) : Kind(None) [all...] |