/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | 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 21 class LLVM_NODISCARD APSInt : public APInt { class in namespace:llvm 26 explicit APSInt() : IsUnsigned(false) {} function in class:llvm::APSInt 28 /// APSInt ctor - Create an APSInt with the specified width, default to 30 explicit APSInt(uint32_t BitWidth, bool isUnsigned = true) function in class:llvm::APSInt 33 explicit APSInt(APInt I, bool isUnsigned = true) function in class:llvm::APSInt 36 /// Construct an APSInt from a string representation. 40 /// constructed APSInt i [all...] |
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
H A 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) 30 : std::pair<const llvm::APSInt *, const llvm::APSInt *>(&from, &to) { 34 Range(const llvm::APSInt &point) 35 : std::pair<const llvm::APSInt *, const llvm::APSInt *>(&point, &point) {} 37 bool Includes(const llvm::APSInt [all...] |
H A D | 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 getZeroValu [all...] |
H A D | 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. 147 /// Convert - Create a new persistent APSInt wit [all...] |
H A D | SimpleConstraintManager.h | 43 const llvm::APSInt &From, 44 const llvm::APSInt &To, 63 const llvm::APSInt &From, 64 const llvm::APSInt &To,
|
H A D | 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,
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Support/ |
H A D | 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) { function in class:APSInt 31 *this = APSInt(Tmp, /*isUnsigned=*/false); 37 *this = APSInt(Tmp, /*isUnsigned=*/true); 40 void APSInt::Profile(FoldingSetNodeID& ID) const {
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | RangeConstraintManager.cpp | 105 const llvm::APSInt &Lower, 106 const llvm::APSInt &Upper, 143 const llvm::APSInt &RangeSet::getMinValue() const { 148 const llvm::APSInt &RangeSet::getMaxValue() const { 160 bool RangeSet::pin(llvm::APSInt &Lower, llvm::APSInt &Upper) const { 254 llvm::APSInt Lower, llvm::APSInt Upper) const { 314 const llvm::APSInt sampleValue = getMinValue(); 315 const llvm::APSInt [all...] |
H A D | RangedConstraintManager.cpp | 60 const llvm::APSInt &Zero = getBasicVals().getValue(0, DiffTy); 74 ProgramStateRef State, SymbolRef Sym, const llvm::APSInt &From, 75 const llvm::APSInt &To, bool InRange) { 80 llvm::APSInt Adjustment = WraparoundType.getZeroValue(); 86 llvm::APSInt ConvertedFrom = ComparisonType.convert(From); 87 llvm::APSInt ConvertedTo = ComparisonType.convert(To); 112 const llvm::APSInt &Zero = BVF.getValue(0, T); 122 const llvm::APSInt &Int) { 148 llvm::APSInt Adjustment = WraparoundType.getZeroValue(); 153 llvm::APSInt ConvertedIn [all...] |
H A D | BasicValueFactory.cpp | 10 // of APSInt objects and symbolic constraints used by ExprEngine 20 #include "llvm/ADT/APSInt.h" 80 // so we iterate over the set and invoke the dstor for each APSInt. This 83 I.getValue().~APSInt(); 89 const llvm::APSInt& BasicValueFactory::getValue(const llvm::APSInt& X) { 93 using FoldNodeTy = llvm::FoldingSetNodeWrapper<llvm::APSInt>; 107 const llvm::APSInt& BasicValueFactory::getValue(const llvm::APInt& X, 109 llvm::APSInt V(X, isUnsigned); 113 const llvm::APSInt [all...] |
H A D | APSIntType.cpp | 15 APSIntType::testInRange(const llvm::APSInt &Value,
|
H A D | SimpleSValBuilder.cpp | 47 const llvm::APSInt *getKnownValue(ProgramStateRef state, SVal V) override; 54 const llvm::APSInt &RHS, QualType resultTy); 121 llvm::APSInt i = val.castAs<nonloc::ConcreteInt>().getValue(); 180 llvm::APSInt i = val.castAs<loc::ConcreteInt>().getValue(); 219 const llvm::APSInt &RHS, 272 const llvm::APSInt &Result = BasicVals.Convert(resultTy, RHS); 286 const llvm::APSInt *ConvertedRHS = &RHS; 314 llvm::APSInt Bound, ProgramStateRef State) { 340 llvm::APSInt Max = AT.getMaxValue() / AT.getValue(4), Min = -Max; 346 static bool isWithinConstantOverflowBounds(llvm::APSInt [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/ |
H A D | 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(APIn [all...] |
/freebsd-13-stable/contrib/llvm-project/clang/lib/Basic/ |
H A D | FixedPoint.cpp | 20 llvm::APSInt NewVal = Val; 64 llvm::APSInt ThisVal = getValue(); 65 llvm::APSInt OtherVal = Other.getValue(); 116 auto Val = llvm::APSInt::getMaxValue(Sema.getWidth(), IsUnsigned); 123 auto Val = llvm::APSInt::getMinValue(Sema.getWidth(), !Sema.isSigned()); 157 llvm::APSInt ThisVal = ConvertedThis.getValue(); 158 llvm::APSInt OtherVal = ConvertedOther.getValue(); 161 llvm::APSInt Result; 181 llvm::APSInt ThisVal = ConvertedThis.getValue(); 182 llvm::APSInt OtherVa [all...] |
/freebsd-13-stable/contrib/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/ |
H A D | DWARFLocationExpression.h | 16 class APSInt; 41 const llvm::APSInt &constant, lldb::ModuleSP module);
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | InterpState.cpp | 22 using APSInt = llvm::APSInt; 51 bool InterpState::reportOverflow(const Expr *E, const llvm::APSInt &Value) {
|
H A D | 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);
|
H A D | Integral.h | 18 #include "llvm/ADT/APSInt.h" 28 using APSInt = llvm::APSInt; 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);
|
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | FixedPoint.h | 19 #include "llvm/ADT/APSInt.h" 85 /// The APFixedPoint class works similarly to APInt/APSInt in that it is a 110 llvm::APSInt getValue() const { return llvm::APSInt(Val, !Sema.isSigned()); } 149 llvm::APSInt getIntPart() const { 157 /// zero. The value is stored into an APSInt with the provided width and sign. 164 llvm::APSInt convertToInt(unsigned DstWidth, bool DstSign, 198 static APFixedPoint getFromIntValue(const llvm::APSInt &Value, 203 llvm::APSInt Val;
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/AST/ |
H A D | TemplateBase.cpp | 30 #include "llvm/ADT/APSInt.h" 56 const llvm::APSInt &Val = TemplArg.getAsIntegral(); 64 if (llvm::APSInt::isSameValue(ECD->getInitVal(), Val)) { 87 TemplateArgument::TemplateArgument(ASTContext &Ctx, const llvm::APSInt &Value, 90 // Copy the APSInt value into our decomposed form.
|
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/AST/ |
H A D | APValue.h | 1 //===--- APValue.h - Union class for APFloat/APSInt/Complex -----*- C++ -*-===// 19 #include "llvm/ADT/APSInt.h" 113 /// [APSInt] [APFloat], [Complex APSInt] [Complex APFloat], [Expr + Offset], 116 typedef llvm::APSInt APSInt; typedef in class:clang::APValue 237 APSInt Real, Imag; 277 typedef llvm::AlignedCharArrayUnion<void *, APSInt, APFloat, ComplexAPSInt, 286 explicit APValue(APSInt I) : Kind(None) { 298 APValue(APSInt [all...] |
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | 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))));
|
H A D | BoolAssignmentChecker.cpp | 85 llvm::APSInt Zero = BVF.getValue(0, valTy); 86 llvm::APSInt One = BVF.getValue(1, valTy);
|
H A D | EnumCastOutOfRangeChecker.cpp | 44 bool operator()(const llvm::APSInt &EnumDeclInitValue) { 67 using EnumValueVector = llvm::SmallVector<llvm::APSInt, 6>;
|
H A D | 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 =
|