HomeSort by relevance Sort by last modified time
    Searched refs:APSInt (Results 1 - 25 of 90) sorted by null

1 2 3 4

  /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(APInt I, bool isUnsigned = true)
36 APSInt &operator=(APInt RHS) {
42 APSInt &operator=(uint64_t RHS)
    [all...]
  /external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
APSIntType.h 13 #include "llvm/ADT/APSInt.h"
19 /// \brief A record of the "type" of an APSInt, used for conversions.
28 /* implicit */ APSIntType(const llvm::APSInt &Value)
34 /// \brief Convert a given APSInt, in place, to match this type.
38 void apply(llvm::APSInt &Value) const {
45 /// Convert and return a new APSInt with the given value, but this
49 llvm::APSInt convert(const llvm::APSInt &Value) const LLVM_READONLY {
50 llvm::APSInt Result(Value, Value.isUnsigned());
56 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;
244 nonloc::ConcreteInt makeIntVal(const llvm::APSInt& integer) {
248 loc::ConcreteInt makeIntLocVal(const llvm::APSInt &integer) {
277 const llvm::APSInt& rhs, QualType type);
279 NonLoc makeNonLoc(const llvm::APSInt& rhs, BinaryOperator::Opcode op,
312 Loc makeLoc(const llvm::APSInt& integer) {
SymbolManager.h 370 const llvm::APSInt& RHS;
374 const llvm::APSInt& rhs, QualType t)
380 const llvm::APSInt &getRHS() const { return RHS; }
383 BinaryOperator::Opcode op, const llvm::APSInt& rhs,
404 const llvm::APSInt& LHS;
408 IntSymExpr(const llvm::APSInt& lhs, BinaryOperator::Opcode op,
415 const llvm::APSInt &getLHS() const { return LHS; }
417 static void Profile(llvm::FoldingSetNodeID& ID, const llvm::APSInt& lhs,
527 const llvm::APSInt& rhs, QualType t);
530 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 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...]
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,
SimpleConstraintManager.cpp 107 const llvm::APSInt &zero = BVF.getValue(0, T);
169 const llvm::APSInt &Zero = getBasicVals().getValue(0, DiffTy);
193 static void computeAdjustment(SymbolRef &Sym, llvm::APSInt &Adjustment) {
213 const llvm::APSInt& Int) {
229 llvm::APSInt Adjustment = WraparoundType.getZeroValue();
234 llvm::APSInt ConvertedInt = ComparisonType.convert(Int);
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();
172 llvm::APSInt i = val.castAs<loc::ConcreteInt>().getValue();
211 const llvm::APSInt &RHS,
264 const llvm::APSInt &Result = BasicVals.Convert(resultTy, RHS);
278 const llvm::APSInt *ConvertedRHS = &RHS;
347 llvm::APSInt i = rhs.castAs<nonloc::ConcreteInt>().getValue();
364 llvm::APSInt LHSValue = lhs.castAs<nonloc::ConcreteInt>().getValue();
367 if (const llvm::APSInt *KnownRHSValue = getKnownValue(state, rhs))
    [all...]
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/llvm/unittests/ADT/
APSIntTest.cpp 1 //===- llvm/unittest/ADT/APSIntTest.cpp - APSInt unit tests ---------------===//
10 #include "llvm/ADT/APSInt.h"
18 APSInt A(32, true);
21 APSInt B(128, false);
25 APSInt C(B);
30 APSInt D(std::move(Wide));
34 A = APSInt(64, true);
  /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;
112 typedef llvm::AlignedCharArrayUnion<void *, APSInt, APFloat, ComplexAPSInt,
121 explicit APValue(APSInt I) : Kind(Uninitialized) {
130 APValue(APSInt R, APSInt I) : Kind(Uninitialized)
    [all...]
TemplateBase.h 20 #include "llvm/ADT/APSInt.h"
53 /// The template argument is an integral value stored in an llvm::APSInt
83 // We store a decomposed APSInt with the data allocated by ASTContext if
143 TemplateArgument(ASTContext &Ctx, const llvm::APSInt &Value, QualType Type);
285 llvm::APSInt getAsIntegral() const {
289 return APSInt(APInt(Integer.BitWidth, Integer.VAL), Integer.IsUnsigned);
292 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.
ExprConstant.cpp 52 using llvm::APSInt;
360 OptionalDiagnostic &operator<<(const APSInt &I) {
881 APSInt IntReal, 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/
BuiltinFunctionChecker.cpp 82 llvm::APSInt Result;
CastSizeChecker.cpp 117 const llvm::APSInt *extentInt = svalBuilder.getKnownValue(state, extent);
  /frameworks/compile/slang/
slang_rs_export_var.cpp 22 #include "llvm/ADT/APSInt.h"
51 mInit.Val = clang::APValue(llvm::APSInt(1));

Completed in 243 milliseconds

1 2 3 4