/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 { 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) 36 APSInt &operator=(APInt RHS) { 42 APSInt &operator=(uint64_t RHS) { 71 APSInt LLVM_ATTRIBUTE_UNUSED_RESULT trunc(uint32_t width) const { in trunc() 72 return APSInt(APInt::trunc(width), IsUnsigned); in trunc() 75 APSInt LLVM_ATTRIBUTE_UNUSED_RESULT extend(uint32_t width) const { in extend() 77 return APSInt(zext(width), IsUnsigned); in extend() [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() 90 RangeSet(Factory &F, const llvm::APSInt &from, const llvm::APSInt &to) in RangeSet() 100 const llvm::APSInt* getConcreteValue() const { in getConcreteValue() [all …]
|
D | SimpleConstraintManager.h | 44 const llvm::APSInt& Int); 55 const llvm::APSInt& V, 56 const llvm::APSInt& Adjustment) = 0; 59 const llvm::APSInt& V, 60 const llvm::APSInt& Adjustment) = 0; 63 const llvm::APSInt& V, 64 const llvm::APSInt& Adjustment) = 0; 67 const llvm::APSInt& V, 68 const llvm::APSInt& Adjustment) = 0; 71 const llvm::APSInt& V, [all …]
|
D | BasicValueFactory.cpp | 66 I->getValue().~APSInt(); in ~BasicValueFactory() 72 const llvm::APSInt& BasicValueFactory::getValue(const llvm::APSInt& X) { in getValue() 75 typedef llvm::FoldingSetNodeWrapper<llvm::APSInt> FoldNodeTy; in getValue() 89 const llvm::APSInt& BasicValueFactory::getValue(const llvm::APInt& X, in getValue() 91 llvm::APSInt V(X, isUnsigned); in getValue() 95 const llvm::APSInt& BasicValueFactory::getValue(uint64_t X, unsigned BitWidth, in getValue() 97 llvm::APSInt V(BitWidth, isUnsigned); in getValue() 102 const llvm::APSInt& BasicValueFactory::getValue(uint64_t X, QualType T) { in getValue() 145 const llvm::APSInt* 147 const llvm::APSInt& V1, const llvm::APSInt& V2) { in evalAPSInt()
|
D | SimpleSValBuilder.cpp | 45 const llvm::APSInt *getKnownValue(ProgramStateRef state, SVal V) override; 48 const llvm::APSInt &RHS, QualType resultTy); 115 llvm::APSInt i = val.castAs<nonloc::ConcreteInt>().getValue(); in evalCastFromNonLoc() 172 llvm::APSInt i = val.castAs<loc::ConcreteInt>().getValue(); in evalCastFromLoc() 211 const llvm::APSInt &RHS, in MakeSymIntVal() 264 const llvm::APSInt &Result = BasicVals.Convert(resultTy, RHS); in MakeSymIntVal() 278 const llvm::APSInt *ConvertedRHS = &RHS; in MakeSymIntVal() 347 llvm::APSInt i = rhs.castAs<nonloc::ConcreteInt>().getValue(); in evalBinOpNN() 364 llvm::APSInt LHSValue = lhs.castAs<nonloc::ConcreteInt>().getValue(); in evalBinOpNN() 367 if (const llvm::APSInt *KnownRHSValue = getKnownValue(state, rhs)) { in evalBinOpNN() [all …]
|
D | SimpleConstraintManager.cpp | 107 const llvm::APSInt &zero = BVF.getValue(0, T); in assumeAuxForSymbol() 169 const llvm::APSInt &Zero = getBasicVals().getValue(0, DiffTy); in assumeAux() 193 static void computeAdjustment(SymbolRef &Sym, llvm::APSInt &Adjustment) { in computeAdjustment() 213 const llvm::APSInt& Int) { in assumeSymRel() 229 llvm::APSInt Adjustment = WraparoundType.getZeroValue(); in assumeSymRel() 234 llvm::APSInt ConvertedInt = ComparisonType.convert(Int); in assumeSymRel()
|
D | SVals.cpp | 21 using llvm::APSInt; 198 const llvm::APSInt* X = in evalBinOp() 227 const llvm::APSInt *X = BasicVals.evalAPSInt(Op, getValue(), R.getValue()); in evalBinOp()
|
D | APSIntType.cpp | 16 APSIntType::testInRange(const llvm::APSInt &Value, in testInRange()
|
D | SValBuilder.cpp | 45 const llvm::APSInt& rhs, QualType type) { in makeNonLoc() 54 NonLoc SValBuilder::makeNonLoc(const llvm::APSInt& lhs, in makeNonLoc() 82 const llvm::APSInt& I = CI->getValue(); in convertToArrayIndex() 289 llvm::APSInt Result; in getConstantVal()
|
/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 …]
|
D | SymbolManager.h | 370 const llvm::APSInt& RHS; 374 const llvm::APSInt& rhs, QualType t) in SymIntExpr() 380 const llvm::APSInt &getRHS() const { return RHS; } in getRHS() 383 BinaryOperator::Opcode op, const llvm::APSInt& rhs, in Profile() 404 const llvm::APSInt& LHS; 408 IntSymExpr(const llvm::APSInt& lhs, BinaryOperator::Opcode op, in IntSymExpr() 415 const llvm::APSInt &getLHS() const { return LHS; } in getLHS() 417 static void Profile(llvm::FoldingSetNodeID& ID, const llvm::APSInt& lhs, in Profile() 527 const llvm::APSInt& rhs, QualType t); 530 const llvm::APSInt& rhs, QualType t) { in getSymIntExpr() [all …]
|
D | SValBuilder.h | 109 virtual const llvm::APSInt *getKnownValue(ProgramStateRef state, SVal val) = 0; 244 nonloc::ConcreteInt makeIntVal(const llvm::APSInt& integer) { in makeIntVal() 248 loc::ConcreteInt makeIntLocVal(const llvm::APSInt &integer) { in makeIntLocVal() 277 const llvm::APSInt& rhs, QualType type); 279 NonLoc makeNonLoc(const llvm::APSInt& rhs, BinaryOperator::Opcode op, 312 Loc makeLoc(const llvm::APSInt& integer) { in makeLoc()
|
D | SVals.h | 341 explicit ConcreteInt(const llvm::APSInt& V) : NonLoc(ConcreteIntKind, &V) {} in ConcreteInt() 343 const llvm::APSInt& getValue() const { in getValue() 344 return *static_cast<const llvm::APSInt*>(Data); in getValue() 531 explicit ConcreteInt(const llvm::APSInt& V) : Loc(ConcreteIntKind, &V) {} in ConcreteInt() 533 const llvm::APSInt& getValue() const { in getValue() 534 return *static_cast<const llvm::APSInt*>(Data); in getValue()
|
D | ConstraintManager.h | 22 class APSInt; variable 107 virtual const llvm::APSInt* getSymVal(ProgramStateRef state, in getSymVal()
|
/external/clang/test/SemaCXX/ |
D | unused.cpp | 8 class APSInt : public APInt { class 11 APSInt &operator=(const APSInt &RHS); 14 APSInt& APSInt::operator=(const APSInt &RHS) { in operator =()
|
/external/clang/include/clang/AST/ |
D | APValue.h | 39 typedef llvm::APSInt APSInt; typedef 72 APSInt Real, Imag; 112 typedef llvm::AlignedCharArrayUnion<void *, APSInt, APFloat, ComplexAPSInt, 121 explicit APValue(APSInt I) : Kind(Uninitialized) { in APValue() 130 APValue(APSInt R, APSInt I) : Kind(Uninitialized) { in APValue() 200 APSInt &getInt() { in getInt() 202 return *(APSInt*)(char*)Data.buffer; in getInt() 204 const APSInt &getInt() const { in getInt() 216 APSInt &getComplexIntReal() { in getComplexIntReal() 220 const APSInt &getComplexIntReal() const { in getComplexIntReal() [all …]
|
D | TemplateBase.h | 144 TemplateArgument(ASTContext &Ctx, const llvm::APSInt &Value, QualType Type); 284 llvm::APSInt getAsIntegral() const { in getAsIntegral() 288 return APSInt(APInt(Integer.BitWidth, Integer.VAL), Integer.IsUnsigned); in getAsIntegral() 291 return APSInt(APInt(Integer.BitWidth, makeArrayRef(Integer.pVal, NumWords)), in getAsIntegral()
|
/external/clang/lib/AST/ |
D | ExprConstant.cpp | 52 using llvm::APSInt; 361 OptionalDiagnostic &operator<<(const APSInt &I) { in operator <<() 882 APSInt IntReal, IntImag; 894 APSInt &getComplexIntReal() { return IntReal; } in getComplexIntReal() 895 APSInt &getComplexIntImag() { return IntImag; } in getComplexIntImag() 1105 static bool EvaluateInteger(const Expr *E, APSInt &Result, EvalInfo &Info); 1165 static int64_t getExtValue(const APSInt &Value) { in getExtValue() 1503 QualType DestType, APSInt &Result) { in HandleFloatToIntCast() 1508 Result = APSInt(DestWidth, !DestSigned); in HandleFloatToIntCast() 1528 static APSInt HandleIntToIntCast(EvalInfo &Info, const Expr *E, in HandleIntToIntCast() [all …]
|
D | ASTDiagnostic.cpp | 482 llvm::APSInt FromInt, ToInt; 549 void SetNode(llvm::APSInt FromInt, llvm::APSInt ToInt, in SetNode() 652 void GetNode(llvm::APSInt &FromInt, llvm::APSInt &ToInt, in GetNode() 938 bool &IsNullPtr, Expr *&E, llvm::APSInt &Value, ValueDecl *&VD) { in InitializeNonTypeDiffVariables() 986 llvm::APSInt FromInt, ToInt; in DiffNonTypes() 1221 Expr *ArgExpr, llvm::APSInt &Int, QualType IntegerType) { in GetInt() 1403 llvm::APSInt FromInt, ToInt; in TreeToString() 1617 void PrintAPSInt(llvm::APSInt FromInt, llvm::APSInt ToInt, in PrintAPSInt() 1639 void PrintAPSInt(llvm::APSInt Val, Expr *E, bool Valid) { in PrintAPSInt()
|
/external/clang/lib/Lex/ |
D | PPExpressions.cpp | 37 llvm::APSInt Val; 309 llvm::APSInt Val(NumBits); in EvaluateValue() 543 llvm::APSInt Res(LHS.getBitWidth()); in EvaluateDirectiveSubExpr() 587 Res = llvm::APSInt(LHS.Val.sdiv_ov(RHS.Val, Overflow), false); in EvaluateDirectiveSubExpr() 599 Res = llvm::APSInt(LHS.Val.smul_ov(RHS.Val, Overflow), false); in EvaluateDirectiveSubExpr() 608 Res = llvm::APSInt(LHS.Val.sshl_ov(RHS.Val, Overflow), false); in EvaluateDirectiveSubExpr() 623 Res = llvm::APSInt(LHS.Val.sadd_ov(RHS.Val, Overflow), false); in EvaluateDirectiveSubExpr() 629 Res = llvm::APSInt(LHS.Val.ssub_ov(RHS.Val, Overflow), false); in EvaluateDirectiveSubExpr()
|
/external/clang/lib/Sema/ |
D | SemaStmt.cpp | 382 llvm::APSInt TempVal; in ActOnCaseStmt() 520 bool operator()(const std::pair<llvm::APSInt, CaseStmt*> &LHS, in operator ()() 521 const llvm::APSInt &RHS) { in operator ()() 524 bool operator()(const std::pair<llvm::APSInt, CaseStmt*> &LHS, in operator ()() 525 const std::pair<llvm::APSInt, CaseStmt*> &RHS) { in operator ()() 528 bool operator()(const llvm::APSInt &LHS, in operator ()() 529 const std::pair<llvm::APSInt, CaseStmt*> &RHS) { in operator ()() 537 static bool CmpCaseVals(const std::pair<llvm::APSInt, CaseStmt*>& lhs, in CmpCaseVals() argument 538 const std::pair<llvm::APSInt, CaseStmt*>& rhs) { in CmpCaseVals() 551 static bool CmpEnumVals(const std::pair<llvm::APSInt, EnumConstantDecl*>& lhs, in CmpEnumVals() argument [all …]
|
/external/llvm/lib/AsmParser/ |
D | LLLexer.h | 43 APSInt APSIntVal; 59 const APSInt &getAPSIntVal() const { return APSIntVal; } in getAPSIntVal()
|
/external/llvm/lib/Support/ |
D | APSInt.cpp | 20 void APSInt::Profile(FoldingSetNodeID& ID) const { in Profile()
|