| /openbsd-src/gnu/llvm/llvm/include/llvm/ADT/ |
| H A D | APSInt.h | 23 class [[nodiscard]] APSInt : public APInt { 28 explicit APSInt() = default; 31 explicit APSInt(uint32_t BitWidth, bool isUnsigned = true) 34 explicit APSInt(APInt I, bool isUnsigned = true) 44 explicit APSInt(StringRef Str); 64 APSInt &operator=(APInt RHS) { 70 APSInt &operator=(uint64_t RHS) { 108 APSInt trunc(uint32_t width) const { in trunc() 109 return APSInt(APInt::trunc(width), IsUnsigned); in trunc() 112 APSInt extend(uint32_t width) const { in extend() [all …]
|
| H A D | APFixedPoint.h | 168 APSInt getValue() const { return APSInt(Val, !Sema.isSigned()); } 212 APSInt getIntPart() const { 214 return APSInt(APInt::getZero(getWidth()), Val.isUnsigned()); 215 APSInt ExtVal = 227 APSInt convertToInt(unsigned DstWidth, bool DstSign, 272 static APFixedPoint getFromIntValue(const APSInt &Value, 288 APSInt Val;
|
| /openbsd-src/gnu/llvm/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | RangedConstraintManager.h | 31 Range(const llvm::APSInt &From, const llvm::APSInt &To) : Impl(&From, &To) { in Range() 35 Range(const llvm::APSInt &Point) : Range(Point, Point) {} in Range() 37 bool Includes(const llvm::APSInt &Point) const { in Includes() 40 const llvm::APSInt &From() const { return *Impl.first; } in From() 41 const llvm::APSInt &To() const { return *Impl.second; } in To() 42 const llvm::APSInt *getConcreteValue() const { in getConcreteValue() 61 std::pair<const llvm::APSInt *, const llvm::APSInt *> Impl; 142 RangeSet add(RangeSet Original, const llvm::APSInt &Point); 160 RangeSet unite(RangeSet Original, llvm::APSInt Point); 166 RangeSet unite(RangeSet Original, llvm::APSInt From, llvm::APSInt To); [all …]
|
| H A D | BasicValueFactory.h | 115 llvm::FoldingSet<llvm::FoldingSetNodeWrapper<llvm::APSInt>>; 132 const llvm::APSInt& getValue(uint64_t X, unsigned BitWidth, bool isUnsigned); 143 const llvm::APSInt& getValue(const llvm::APSInt& X); 144 const llvm::APSInt& getValue(const llvm::APInt& X, bool isUnsigned); 145 const llvm::APSInt& getValue(uint64_t X, QualType T); 168 const llvm::APSInt &Convert(const llvm::APSInt& To, in Convert() 169 const llvm::APSInt& From) { in Convert() 177 const llvm::APSInt &Convert(QualType T, const llvm::APSInt &From) { in Convert() 182 const llvm::APSInt &Convert(APSIntType TargetType, const llvm::APSInt &From) { in Convert() 189 const llvm::APSInt &getIntValue(uint64_t X, bool isUnsigned) { in getIntValue() [all …]
|
| H A 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 …]
|
| H A D | ConstraintManager.h | 27 class APSInt; variable 90 const llvm::APSInt &From, 91 const llvm::APSInt &To, bool InBound); 99 const llvm::APSInt &From, 100 const llvm::APSInt &To); 108 virtual const llvm::APSInt* getSymVal(ProgramStateRef state, in getSymVal() 151 const llvm::APSInt &From, 152 const llvm::APSInt &To,
|
| H A D | SimpleConstraintManager.h | 53 const llvm::APSInt &From, 54 const llvm::APSInt &To, 74 const llvm::APSInt &From, 75 const llvm::APSInt &To,
|
| H A D | SMTConv.h | 274 Exp, Solver->mkBitvector(llvm::APSInt("1"), ToBitWidth), in fromCast() 275 Solver->mkBitvector(llvm::APSInt("0"), ToBitWidth)); in fromCast() 313 static inline llvm::APSInt castAPSInt(llvm::SMTSolverRef &Solver, in castAPSInt() 314 const llvm::APSInt &V, QualType ToTy, in castAPSInt() 392 llvm::APSInt NewRInt; in getSymBinExpr() 400 llvm::APSInt NewLInt; in getSymBinExpr() 522 Solver->mkBitvector(llvm::APSInt("0"), Ctx.getTypeSize(Ty)), in getZeroExpr() 533 const llvm::APSInt &From, const llvm::APSInt &To, bool InRange) { in getRangeExpr() 536 llvm::APSInt NewFromInt; in getRangeExpr() 551 llvm::APSInt NewToInt; in getRangeExpr() [all …]
|
| H A D | SMTConstraintManager.h | 65 const llvm::APSInt &From, in REGISTER_TRAIT_WITH_PROGRAMSTATE() 66 const llvm::APSInt &To, in REGISTER_TRAIT_WITH_PROGRAMSTATE() 111 const llvm::APSInt *getSymVal(ProgramStateRef State, in REGISTER_TRAIT_WITH_PROGRAMSTATE() 119 llvm::APSInt Value(Ctx.getTypeSize(Ty), in REGISTER_TRAIT_WITH_PROGRAMSTATE() 164 const llvm::APSInt *Value; in REGISTER_TRAIT_WITH_PROGRAMSTATE() 171 const llvm::APSInt *LHS, *RHS; in REGISTER_TRAIT_WITH_PROGRAMSTATE() 189 llvm::APSInt ConvertedLHS, ConvertedRHS; in REGISTER_TRAIT_WITH_PROGRAMSTATE() 193 SMTConv::doIntTypeConversion<llvm::APSInt, &SMTConv::castAPSInt>( in REGISTER_TRAIT_WITH_PROGRAMSTATE()
|
| H A D | SVals.h | 173 const llvm::APSInt *getAsInteger() const; 331 explicit ConcreteInt(const llvm::APSInt& V) : NonLoc(ConcreteIntKind, &V) {} in ConcreteInt() 333 const llvm::APSInt& getValue() const { in getValue() 334 return *static_cast<const llvm::APSInt *>(Data); in getValue() 541 explicit ConcreteInt(const llvm::APSInt& V) : Loc(ConcreteIntKind, &V) {} in ConcreteInt() 543 const llvm::APSInt &getValue() const { in getValue() 544 return *static_cast<const llvm::APSInt *>(Data); in getValue()
|
| /openbsd-src/gnu/llvm/llvm/lib/Support/ |
| H A D | APFixedPoint.cpp | 34 APSInt NewVal = Val; in convert() 74 APSInt ThisVal = getValue(); in compare() 75 APSInt OtherVal = Other.getValue(); in compare() 121 auto Val = APSInt::getMaxValue(Sema.getWidth(), IsUnsigned); in getMax() 128 auto Val = APSInt::getMinValue(Sema.getWidth(), !Sema.isSigned()); in getMin() 142 APSInt MaxInt = APFixedPoint::getMax(*this).getValue(); in fitsInFloatSemantics() 149 APSInt MinInt = APFixedPoint::getMin(*this).getValue(); in fitsInFloatSemantics() 186 APSInt ThisVal = ConvertedThis.getValue(); in add() 187 APSInt OtherVal = ConvertedOther.getValue(); in add() 190 APSInt Result; in add() [all …]
|
| H A 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()
|
| /openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Core/ |
| H A D | RangeConstraintManager.cpp | 134 RangeSet RangeSet::Factory::add(RangeSet Original, const llvm::APSInt &Point) { in add() 150 RangeSet RangeSet::Factory::unite(RangeSet Original, llvm::APSInt Point) { in unite() 154 RangeSet RangeSet::Factory::unite(RangeSet Original, llvm::APSInt From, in unite() 155 llvm::APSInt To) { in unite() 173 using llvm::APSInt; in unite() 181 const APSInt Min = Ty.getMinValue(); in unite() 218 const APSInt One = Ty.getValue(1); in unite() 241 const llvm::APSInt &UnionStart = First->From(); in unite() 347 const llvm::APSInt &RangeSet::getMinValue() const { in getMinValue() 352 const llvm::APSInt &RangeSet::getMaxValue() const { in getMaxValue() [all …]
|
| H A D | RangedConstraintManager.cpp | 45 const llvm::APSInt &Zero = getBasicVals().getValue(0, SIE->getType()); in assumeSym() 68 const llvm::APSInt &Zero = getBasicVals().getValue(0, DiffTy); in assumeSym() 85 const llvm::APSInt &Zero = getBasicVals().getValue(0, ExprType); in assumeSym() 102 ProgramStateRef State, SymbolRef Sym, const llvm::APSInt &From, in assumeSymInclusiveRange() 103 const llvm::APSInt &To, bool InRange) { in assumeSymInclusiveRange() 111 llvm::APSInt Adjustment = WraparoundType.getZeroValue(); in assumeSymInclusiveRange() 117 llvm::APSInt ConvertedFrom = ComparisonType.convert(From); in assumeSymInclusiveRange() 118 llvm::APSInt ConvertedTo = ComparisonType.convert(To); in assumeSymInclusiveRange() 145 const llvm::APSInt &Zero = BVF.getValue(0, T); in assumeSymUnsupported() 155 const llvm::APSInt &Int) { in assumeSymRel() [all …]
|
| H A D | SimpleSValBuilder.cpp | 31 const llvm::APSInt *getConstValue(ProgramStateRef state, SVal V); 77 const llvm::APSInt *getKnownValue(ProgramStateRef state, SVal V) override; 82 const llvm::APSInt &RHS, QualType resultTy); 94 static bool isNegationValuePreserving(const llvm::APSInt &Value, in isNegationValuePreserving() 115 const llvm::APSInt &RHS, in MakeSymIntVal() 168 const llvm::APSInt &Result = BasicVals.Convert(resultTy, RHS); in MakeSymIntVal() 182 const llvm::APSInt *ConvertedRHS = &RHS; in MakeSymIntVal() 221 llvm::APSInt Bound, ProgramStateRef State) { in isInRelation() 247 llvm::APSInt Max = AT.getMaxValue() / AT.getValue(4), Min = -Max; in isWithinConstantOverflowBounds() 253 static bool isWithinConstantOverflowBounds(llvm::APSInt I) { in isWithinConstantOverflowBounds() [all …]
|
| H A D | BasicValueFactory.cpp | 84 I.getValue().~APSInt(); in ~BasicValueFactory() 90 const llvm::APSInt& BasicValueFactory::getValue(const llvm::APSInt& X) { in getValue() 94 using FoldNodeTy = llvm::FoldingSetNodeWrapper<llvm::APSInt>; in getValue() 108 const llvm::APSInt& BasicValueFactory::getValue(const llvm::APInt& X, in getValue() 110 llvm::APSInt V(X, isUnsigned); in getValue() 114 const llvm::APSInt& BasicValueFactory::getValue(uint64_t X, unsigned BitWidth, in getValue() 116 llvm::APSInt V(BitWidth, isUnsigned); in getValue() 121 const llvm::APSInt& BasicValueFactory::getValue(uint64_t X, QualType T) { in getValue() 249 const llvm::APSInt* 251 const llvm::APSInt& V1, const llvm::APSInt& V2) { in evalAPSInt()
|
| H A D | ConstraintManager.cpp | 102 const llvm::APSInt &From, in assumeInclusiveRangeDual() 103 const llvm::APSInt &To) { in assumeInclusiveRangeDual() 118 const llvm::APSInt &From, in assumeInclusiveRange() 119 const llvm::APSInt &To, bool InBound) { in assumeInclusiveRange()
|
| /openbsd-src/gnu/llvm/llvm/lib/DebugInfo/CodeView/ |
| H A 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 …]
|
| /openbsd-src/gnu/llvm/clang/include/clang/AST/ |
| H A D | APValue.h | 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) { 415 APSInt &getInt() { 417 return *(APSInt *)(char *)&Data; 419 const APSInt &getInt() const { 426 bool toIntegralConstant(APSInt &Result, QualType SrcTy, 445 APSInt &getComplexIntReal() { [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/AST/Interp/ |
| H A D | Integral.h | 28 using APSInt = llvm::APSInt; variable 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);
|
| H A D | InterpState.cpp | 22 using APSInt = llvm::APSInt; typedef 51 bool InterpState::reportOverflow(const Expr *E, const llvm::APSInt &Value) { in reportOverflow()
|
| H A D | Boolean.h | 59 APSInt toAPSInt() const { in toAPSInt() 60 return APSInt(APInt(1, static_cast<uint64_t>(V), false), true); in toAPSInt() 62 APSInt toAPSInt(unsigned NumBits) const { in toAPSInt() 63 return APSInt(toAPSInt().zextOrTrunc(NumBits), true); in toAPSInt()
|
| /openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | UndefResultChecker.cpp | 70 const llvm::APSInt *LHS = SB.getKnownValue(State, C.getSVal(B->getLHS())); in isLeftShiftResultUnrepresentable() 71 const llvm::APSInt *RHS = SB.getKnownValue(State, C.getSVal(B->getRHS())); in isLeftShiftResultUnrepresentable() 138 const llvm::APSInt *I = in checkPostStmt() 158 const llvm::APSInt *LHS = in checkPostStmt() 160 const llvm::APSInt *RHS = in checkPostStmt()
|
| H A D | DebugIteratorModeling.cpp | 107 }, nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(0)))); in analyzerIteratorPosition() 115 }, loc::ConcreteInt(BVF.getValue(llvm::APSInt::get(0)))); in analyzerIteratorContainer() 123 nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get((P->isValid())))); in analyzerIteratorValidity() 124 }, nonloc::ConcreteInt(BVF.getValue(llvm::APSInt::get(0)))); in analyzerIteratorValidity()
|
| H A D | MallocOverflowSecurityChecker.cpp | 32 using llvm::APSInt; 39 APSInt maxVal; 42 const Expr *v, APSInt val) in MallocOverflowCheck() 63 static inline bool EvaluatesToZero(APSInt &Val, BinaryOperatorKind op) { in EvaluatesToZero() 78 APSInt maxVal; in CheckMallocArgument() 180 APSInt denomVal; in CheckAssignmentExpr()
|