Home
last modified time | relevance | path

Searched refs:APValue (Results 1 – 21 of 21) sorted by relevance

/external/clang/include/clang/AST/
DAPValue.h38 class APValue {
81 APValue *Elts;
87 APValue *Elts;
93 APValue *Elts;
101 APValue *Value;
122 APValue() : Kind(Uninitialized) {} in APValue() function
123 explicit APValue(const APSInt &I) : Kind(Uninitialized) { in APValue() function
126 explicit APValue(const APFloat &F) : Kind(Uninitialized) { in APValue() function
129 explicit APValue(const APValue *E, unsigned N) : Kind(Uninitialized) { in APValue() function
132 APValue(const APSInt &R, const APSInt &I) : Kind(Uninitialized) { in APValue() function
[all …]
DDecl.h705 APValue Evaluated;
1092 APValue *evaluateValue() const;
1093 APValue *evaluateValue(
1099 APValue *getEvaluatedValue() const { in getEvaluatedValue()
DExpr.h36 class APValue; variable
438 bool isCXX11ConstantExpr(ASTContext &Ctx, APValue *Result = 0,
480 APValue Val;
534 bool EvaluateAsInitializer(APValue &Result, const ASTContext &Ctx,
/external/clang/lib/AST/
DAPValue.cpp28 llvm::PointerIntPair<APValue::LValueBase, 1, bool> BaseAndIsOnePastTheEnd;
35 struct APValue::LV : LVBase {
76 struct APValue::MemberPointerData : MemberPointerBase {
108 APValue::Arr::Arr(unsigned NumElts, unsigned Size) : in Arr()
109 Elts(new APValue[NumElts + (NumElts != Size ? 1 : 0)]), in Arr()
111 APValue::Arr::~Arr() { delete [] Elts; } in ~Arr()
113 APValue::StructData::StructData(unsigned NumBases, unsigned NumFields) : in StructData()
114 Elts(new APValue[NumBases+NumFields]), in StructData()
116 APValue::StructData::~StructData() { in ~StructData()
120 APValue::UnionData::UnionData() : Field(0), Value(new APValue) {} in UnionData()
[all …]
DExprConstant.cpp54 static bool IsGlobalLValue(APValue::LValueBase B);
61 static QualType getType(APValue::LValueBase B) { in getType()
71 APValue::BaseOrMemberType getAsBaseOrMember(APValue::LValuePathEntry E) { in getAsBaseOrMember()
72 APValue::BaseOrMemberType Value; in getAsBaseOrMember()
79 static const FieldDecl *getAsField(APValue::LValuePathEntry E) { in getAsField()
84 static const CXXRecordDecl *getAsBaseClass(APValue::LValuePathEntry E) { in getAsBaseClass()
89 static bool isVirtualBaseClass(APValue::LValuePathEntry E) { in isVirtualBaseClass()
97 ArrayRef<APValue::LValuePathEntry> Path, in findMostDerivedSubobject()
152 typedef APValue::LValuePathEntry PathEntry;
163 SubobjectDesignator(ASTContext &Ctx, const APValue &V) in SubobjectDesignator()
[all …]
DASTDiagnostic.cpp959 APValue &FromVal = FromResult.Val; in IsEqualExpr()
960 APValue &ToVal = ToResult.Val; in IsEqualExpr()
965 case APValue::Int: in IsEqualExpr()
967 case APValue::LValue: { in IsEqualExpr()
968 APValue::LValueBase FromBase = FromVal.getLValueBase(); in IsEqualExpr()
969 APValue::LValueBase ToBase = ToVal.getLValueBase(); in IsEqualExpr()
977 case APValue::MemberPointer: in IsEqualExpr()
DCMakeLists.txt4 APValue.cpp
DAndroid.mk24 APValue.cpp \
DDecl.cpp1427 APValue *VarDecl::evaluateValue() const { in evaluateValue()
1432 APValue *VarDecl::evaluateValue( in evaluateValue()
1459 Eval->Evaluated = APValue(); in evaluateValue()
/external/clang/lib/CodeGen/
DCGExprConstant.cpp48 const APValue &Value, QualType ValTy);
74 void Build(const APValue &Val, const RecordDecl *RD, bool IsPrimaryBase,
445 void ConstStructBuilder::Build(const APValue &Val, const RecordDecl *RD, in Build()
507 const APValue &FieldValue = in Build()
590 const APValue &Val, in BuildStruct()
904 llvm::Constant *EmitLValue(APValue::LValueBase LVBase) { in EmitLValue()
1015 if (const APValue *Value = D.evaluateValue()) in EmitConstantInit()
1063 llvm::Constant *CodeGenModule::EmitConstantValue(const APValue &Value, in EmitConstantValue()
1067 case APValue::Uninitialized: in EmitConstantValue()
1069 case APValue::LValue: { in EmitConstantValue()
[all …]
DCodeGenModule.cpp1515 APValue initListValue(APValue::UninitStruct(), 0, 2); in MaybeEmitGlobalStdInitializerListInitializer()
1516 APValue &startField = initListValue.getStructField(0); in MaybeEmitGlobalStdInitializerListInitializer()
1517 APValue::LValuePathEntry startOffsetPathEntry; in MaybeEmitGlobalStdInitializerListInitializer()
1519 startField = APValue(APValue::LValueBase(backingArray), in MaybeEmitGlobalStdInitializerListInitializer()
1525 APValue &endField = initListValue.getStructField(1); in MaybeEmitGlobalStdInitializerListInitializer()
1526 APValue::LValuePathEntry endOffsetPathEntry; in MaybeEmitGlobalStdInitializerListInitializer()
1528 endField = APValue(APValue::LValueBase(backingArray), in MaybeEmitGlobalStdInitializerListInitializer()
1533 APValue &sizeField = initListValue.getStructField(1); in MaybeEmitGlobalStdInitializerListInitializer()
1534 sizeField = APValue(llvm::APSInt(numElements)); in MaybeEmitGlobalStdInitializerListInitializer()
DCGCXXABI.h132 virtual llvm::Constant *EmitMemberPointer(const APValue &MP, QualType MPT);
DCGCXXABI.cpp112 llvm::Constant *CGCXXABI::EmitMemberPointer(const APValue &MP, QualType MPT) { in EmitMemberPointer()
DCodeGenModule.h738 llvm::Constant *EmitConstantValue(const APValue &Value, QualType DestType,
743 llvm::Constant *EmitConstantValueForMemory(const APValue &Value,
DItaniumCXXABI.cpp81 llvm::Constant *EmitMemberPointer(const APValue &MP, QualType MPT);
530 llvm::Constant *ItaniumCXXABI::EmitMemberPointer(const APValue &MP, in EmitMemberPointer()
DCGDebugInfo.cpp724 const APValue *Value = V->evaluateValue(); in CollectRecordStaticVars()
/external/clang/include/clang/Sema/
DOverload.h239 APValue &ConstantValue,
DInitialization.h843 APValue *ConstantValue) const;
/external/clang/lib/Sema/
DSemaOverload.cpp297 APValue &ConstantValue, in getNarrowingKind()
331 ConstantValue = APValue(IntConstantValue); in getNarrowingKind()
424 ConstantValue = APValue(InitializerValue); in getNarrowingKind()
4899 APValue PreNarrowingValue; in CheckConvertedConstantExpression()
DSemaChecking.cpp3934 static IntRange GetValueRange(ASTContext &C, APValue &result, QualType Ty, in GetValueRange()
4209 static bool IsSameFloatAfterCast(const APValue &value, in IsSameFloatAfterCast()
DSemaInit.cpp6094 APValue ConstantValue; in DiagnoseNarrowingInInitList()