/external/llvm/include/llvm/ADT/ |
APSInt.h | 1 //===-- llvm/ADT/APSInt.h - Arbitrary Precision Signed Int -----*- C++ -*--===// 10 // This file implements the APSInt class, which is a simple class that 22 class APSInt : public APInt { 26 explicit APSInt() : IsUnsigned(false) {} 28 /// APSInt ctor - Create an APSInt with the specified width, default to 30 explicit APSInt(uint32_t BitWidth, bool isUnsigned = true) 33 explicit APSInt(const APInt &I, bool isUnsigned = true) 36 APSInt &operator=(const APSInt &RHS) [all...] |
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
APSIntType.h | 13 #include "llvm/ADT/APSInt.h" 18 /// \brief A record of the "type" of an APSInt, used for conversions. 27 /* implicit */ APSIntType(const llvm::APSInt &Value) 33 /// \brief 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...] |
BasicValueFactory.h | 11 // of APSInt objects and symbolic constraints used by ExprEngine 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); 94 /// Returns the type of the APSInt used to store values of the given QualType. 101 /// Convert - Create a new persistent APSInt with the same value as 'From' 103 const llvm::APSInt &Convert(const llvm::APSInt& To [all...] |
ConstraintManager.h | 22 class APSInt; 107 virtual const llvm::APSInt* getSymVal(ProgramStateRef state,
|
SValBuilder.h | 36 /// Manager of APSInt values. 109 virtual const llvm::APSInt *getKnownValue(ProgramStateRef state, SVal val) = 0; 243 nonloc::ConcreteInt makeIntVal(const llvm::APSInt& integer) { 247 loc::ConcreteInt makeIntLocVal(const llvm::APSInt &integer) { 276 const llvm::APSInt& rhs, QualType type); 278 NonLoc makeNonLoc(const llvm::APSInt& rhs, BinaryOperator::Opcode op, 311 Loc makeLoc(const llvm::APSInt& integer) {
|
SymbolManager.h | 373 const llvm::APSInt& RHS; 377 const llvm::APSInt& rhs, QualType t) 383 const llvm::APSInt &getRHS() const { return RHS; } 386 BinaryOperator::Opcode op, const llvm::APSInt& rhs, 407 const llvm::APSInt& LHS; 411 IntSymExpr(const llvm::APSInt& lhs, BinaryOperator::Opcode op, 418 const llvm::APSInt &getLHS() const { return LHS; } 420 static void Profile(llvm::FoldingSetNodeID& ID, const llvm::APSInt& lhs, 530 const llvm::APSInt& rhs, QualType t); 533 const llvm::APSInt& rhs, QualType t) [all...] |
SVals.h | 341 explicit ConcreteInt(const llvm::APSInt& V) : NonLoc(ConcreteIntKind, &V) {} 343 const llvm::APSInt& getValue() const { 344 return *static_cast<const llvm::APSInt*>(Data); 531 explicit ConcreteInt(const llvm::APSInt& V) : Loc(ConcreteIntKind, &V) {} 533 const llvm::APSInt& getValue() const { 534 return *static_cast<const llvm::APSInt*>(Data);
|
/external/clang/test/SemaCXX/ |
unused.cpp | 8 class APSInt : public APInt { 11 APSInt &operator=(const APSInt &RHS); 14 APSInt& APSInt::operator=(const APSInt &RHS) {
|
/external/clang/lib/StaticAnalyzer/Core/ |
SimpleConstraintManager.h | 46 const llvm::APSInt& Int); 57 const llvm::APSInt& V, 58 const llvm::APSInt& Adjustment) = 0; 61 const llvm::APSInt& V, 62 const llvm::APSInt& Adjustment) = 0; 65 const llvm::APSInt& V, 66 const llvm::APSInt& Adjustment) = 0; 69 const llvm::APSInt& V, 70 const llvm::APSInt& Adjustment) = 0; 73 const llvm::APSInt& V [all...] |
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) 35 : std::pair<const llvm::APSInt*, const llvm::APSInt*>(&from, &to) { 38 bool Includes(const llvm::APSInt &v) const { 41 const llvm::APSInt &From() const { 44 const llvm::APSInt &To() const { 47 const llvm::APSInt *getConcreteValue() const [all...] |
BasicValueFactory.cpp | 11 // of APSInt objects and symbolic constraints used by ExprEngine 63 // so we iterate over the set and invoke the dstor for each APSInt. This 66 I->getValue().~APSInt(); 72 const llvm::APSInt& BasicValueFactory::getValue(const llvm::APSInt& X) { 75 typedef llvm::FoldingSetNodeWrapper<llvm::APSInt> FoldNodeTy; 89 const llvm::APSInt& BasicValueFactory::getValue(const llvm::APInt& X, 91 llvm::APSInt V(X, isUnsigned); 95 const llvm::APSInt& BasicValueFactory::getValue(uint64_t X, unsigned BitWidth, 97 llvm::APSInt V(BitWidth, isUnsigned) [all...] |
APSIntType.cpp | 16 APSIntType::testInRange(const llvm::APSInt &Value,
|
SimpleSValBuilder.cpp | 45 virtual const llvm::APSInt *getKnownValue(ProgramStateRef state, SVal V); 48 const llvm::APSInt &RHS, QualType resultTy); 115 llvm::APSInt i = val.castAs<nonloc::ConcreteInt>().getValue(); 146 llvm::APSInt i = val.castAs<loc::ConcreteInt>().getValue(); 185 const llvm::APSInt &RHS, 238 const llvm::APSInt &Result = BasicVals.Convert(resultTy, RHS); 252 const llvm::APSInt *ConvertedRHS = &RHS; 321 llvm::APSInt i = rhs.castAs<nonloc::ConcreteInt>().getValue(); 338 llvm::APSInt LHSValue = lhs.castAs<nonloc::ConcreteInt>().getValue(); 341 if (const llvm::APSInt *KnownRHSValue = getKnownValue(state, rhs)) [all...] |
SimpleConstraintManager.cpp | 97 const llvm::APSInt &zero = getBasicVals().getZeroWithPtrWidth(); 138 const llvm::APSInt &zero = BVF.getValue(0, T); 200 const llvm::APSInt &Zero = getBasicVals().getValue(0, DiffTy); 224 static void computeAdjustment(SymbolRef &Sym, llvm::APSInt &Adjustment) { 244 const llvm::APSInt& Int) { 260 llvm::APSInt Adjustment = WraparoundType.getZeroValue(); 265 llvm::APSInt ConvertedInt = ComparisonType.convert(Int);
|
SVals.cpp | 21 using llvm::APSInt; 198 const llvm::APSInt* X = 227 const llvm::APSInt *X = BasicVals.evalAPSInt(Op, getValue(), R.getValue());
|
/external/llvm/lib/Support/ |
APSInt.cpp | 1 //===-- llvm/ADT/APSInt.cpp - Arbitrary Precision Signed Int ---*- C++ -*--===// 10 // This file implements the APSInt class, which is a simple class that 15 #include "llvm/ADT/APSInt.h" 20 void APSInt::Profile(FoldingSetNodeID& ID) const {
|
/external/clang/include/clang/AST/ |
APValue.h | 1 //===--- APValue.h - Union class for APFloat/APSInt/Complex -----*- C++ -*-===// 19 #include "llvm/ADT/APSInt.h" 36 /// [APSInt] [APFloat], [Complex APSInt] [Complex APFloat], [Expr + Offset], 39 typedef llvm::APSInt APSInt; 72 APSInt Real, Imag; 123 explicit APValue(const APSInt &I) : Kind(Uninitialized) { 132 APValue(const APSInt &R, const APSInt &I) : Kind(Uninitialized) [all...] |
TemplateBase.h | 20 #include "llvm/ADT/APSInt.h" 54 /// The template argument is an integral value stored in an llvm::APSInt 80 // We store a decomposed APSInt with the data allocated by ASTContext if 130 TemplateArgument(ASTContext &Ctx, const llvm::APSInt &Value, QualType Type); 272 llvm::APSInt getAsIntegral() const { 276 return APSInt(APInt(Integer.BitWidth, Integer.VAL), Integer.IsUnsigned); 279 return APSInt(APInt(Integer.BitWidth, makeArrayRef(Integer.pVal, NumWords)),
|
/external/clang/lib/AST/ |
TemplateBase.cpp | 39 const llvm::APSInt &Val = TemplArg.getAsIntegral(); 57 TemplateArgument::TemplateArgument(ASTContext &Ctx, const llvm::APSInt &Value, 60 // Copy the APSInt value into our decomposed form.
|
ASTDiagnostic.cpp | 418 /// Integer difference, uses APSInt and Expr 452 /// FromInt, ToInt - APSInt's for integral arguments. 453 llvm::APSInt FromInt, ToInt; 455 /// IsValidFromInt, IsValidToInt - Whether the APSInt's are valid. 518 void SetNode(llvm::APSInt FromInt, llvm::APSInt ToInt, 615 void GetNode(llvm::APSInt &FromInt, llvm::APSInt &ToInt, 886 llvm::APSInt FromInt, ToInt; [all...] |
ExprConstant.cpp | 52 using llvm::APSInt; 359 OptionalDiagnostic &operator<<(const APSInt &I) { 752 APSInt IntReal, IntImag; 764 APSInt &getComplexIntReal() { return IntReal; } 765 APSInt &getComplexIntImag() { return IntImag; } [all...] |
/external/llvm/lib/AsmParser/ |
LLLexer.h | 19 #include "llvm/ADT/APSInt.h" 43 APSInt APSIntVal; 60 const APSInt &getAPSIntVal() const { return APSIntVal; }
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
CastSizeChecker.cpp | 58 const llvm::APSInt *extentInt = svalBuilder.getKnownValue(state, extent);
|
/frameworks/compile/slang/ |
slang_rs_export_var.cpp | 22 #include "llvm/ADT/APSInt.h" 64 mInit.Val = clang::APValue(llvm::APSInt(1));
|
/external/clang/lib/Sema/ |
SemaStmt.cpp | 471 void Sema::ConvertIntegerToTypeWarnOnOverflow(llvm::APSInt &Val, 487 llvm::APSInt ConvVal(Val); 505 llvm::APSInt OldVal(Val); 512 bool operator()(const std::pair<llvm::APSInt, CaseStmt*> &LHS, 513 const llvm::APSInt &RHS) { 516 bool operator()(const std::pair<llvm::APSInt, CaseStmt*> &LHS, 517 const std::pair<llvm::APSInt, CaseStmt*> &RHS) { 520 bool operator()(const llvm::APSInt &LHS, 521 const std::pair<llvm::APSInt, CaseStmt*> &RHS) { 529 static bool CmpCaseVals(const std::pair<llvm::APSInt, CaseStmt*>& lhs [all...] |