Searched refs:APValue (Results 1 - 23 of 23) sorted by relevance

/external/clang/include/clang/AST/
H A DAPValue.h1 //===--- APValue.h - Union class for APFloat/APSInt/Complex -----*- C++ -*-===//
10 // This file defines the APValue class.
35 /// APValue - This class implements a discriminated union of [uninitialized]
37 /// [Vector: N * APValue], [Array: N * APValue]
38 class APValue { class in namespace:clang
81 APValue *Elts;
87 APValue *Elts;
93 APValue *Elts;
101 APValue *Valu
120 APValue() : Kind(Uninitialized) {} function in class:clang::APValue
121 explicit APValue(APSInt I) : Kind(Uninitialized) { function in class:clang::APValue
124 explicit APValue(APFloat F) : Kind(Uninitialized) { function in class:clang::APValue
127 explicit APValue(const APValue *E, unsigned N) : Kind(Uninitialized) { function in class:clang::APValue
130 APValue(APSInt R, APSInt I) : Kind(Uninitialized) { function in class:clang::APValue
133 APValue(APFloat R, APFloat I) : Kind(Uninitialized) { function in class:clang::APValue
137 APValue(APValue &&RHS) : Kind(Uninitialized) { swap(RHS); } function in class:clang::APValue
138 APValue(LValueBase B, const CharUnits &O, NoLValuePath N, unsigned CallIndex) function in class:clang::APValue
142 APValue(LValueBase B, const CharUnits &O, ArrayRef<LValuePathEntry> Path, function in class:clang::APValue
147 APValue(UninitArray, unsigned InitElts, unsigned Size) : Kind(Uninitialized) { function in class:clang::APValue
150 APValue(UninitStruct, unsigned B, unsigned M) : Kind(Uninitialized) { function in class:clang::APValue
153 APValue(const FieldDecl *D, const APValue &V = APValue()) argument
157 APValue(const ValueDecl *Member, bool IsDerivedMember, function in class:clang::APValue
161 APValue(const AddrLabelExpr* LHSExpr, const AddrLabelExpr* RHSExpr) function in class:clang::APValue
[all...]
H A DDecl.h17 #include "clang/AST/APValue.h"
644 APValue Evaluated;
1051 APValue *evaluateValue() const;
1052 APValue *evaluateValue(SmallVectorImpl<PartialDiagnosticAt> &Notes) const;
1056 /// to untyped APValue if the value could not be evaluated.
1057 APValue *getEvaluatedValue() const {
H A DExpr.h17 #include "clang/AST/APValue.h"
34 class APValue;
500 bool isCXX11ConstantExpr(const ASTContext &Ctx, APValue *Result = nullptr,
555 APValue Val;
612 bool EvaluateAsInitializer(APValue &Result, const ASTContext &Ctx,
620 bool EvaluateWithSubstitution(APValue &Value, ASTContext &Ctx,
H A DASTContext.h171 llvm::DenseMap<const MaterializeTemporaryExpr*, APValue>
2200 APValue *getMaterializedTemporaryValue(const MaterializeTemporaryExpr *E,
/external/clang/lib/AST/
H A DAPValue.cpp1 //===--- APValue.cpp - Union class for APFloat/APSInt/Complex -------------===//
10 // This file implements the APValue class.
14 #include "clang/AST/APValue.h"
28 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) :
109 Elts(new APValue[NumElts + (NumElts != Size ? 1 : 0)]),
111 APValue::Arr::~Arr() { delete [] Elts; }
113 APValue
125 APValue::APValue(const APValue &RHS) : Kind(Uninitialized) { function in class:APValue
[all...]
H A DExprConstant.cpp36 #include "clang/AST/APValue.h"
55 static bool IsGlobalLValue(APValue::LValueBase B);
62 static QualType getType(APValue::LValueBase B) {
90 APValue::BaseOrMemberType getAsBaseOrMember(APValue::LValuePathEntry E) {
91 APValue::BaseOrMemberType Value;
98 static const FieldDecl *getAsField(APValue::LValuePathEntry E) {
103 static const CXXRecordDecl *getAsBaseClass(APValue::LValuePathEntry E) {
108 static bool isVirtualBaseClass(APValue::LValuePathEntry E) {
116 ArrayRef<APValue
[all...]
H A DAndroid.mk28 APValue.cpp \
H A DASTDiagnostic.cpp1227 APValue &FromVal = FromResult.Val;
1228 APValue &ToVal = ToResult.Val;
1233 case APValue::Int:
1235 case APValue::LValue: {
1236 APValue::LValueBase FromBase = FromVal.getLValueBase();
1237 APValue::LValueBase ToBase = ToVal.getLValueBase();
1245 case APValue::MemberPointer:
H A DDecl.cpp1996 // Note: EvaluatedStmt contains an APValue, which usually holds
2007 APValue *VarDecl::evaluateValue() const {
2013 // Destroy an APValue that was allocated in an ASTContext.
2015 static_cast<APValue*>(UntypedValue)->~APValue();
2019 APValue *VarDecl::evaluateValue(
2044 // Ensure the computed APValue is cleaned up later if evaluation succeeded,
2048 Eval->Evaluated = APValue();
H A DASTContext.cpp8094 APValue *
8102 llvm::DenseMap<const MaterializeTemporaryExpr *, APValue>::iterator I =
/external/clang/lib/CodeGen/
H A DCGExprConstant.cpp19 #include "clang/AST/APValue.h"
48 const APValue &Value, QualType ValTy);
71 void Build(const APValue &Val, const RecordDecl *RD, bool IsPrimaryBase,
405 void ConstStructBuilder::Build(const APValue &Val, const RecordDecl *RD,
457 const APValue &FieldValue =
540 const APValue &Val,
557 /// 1) Literals (this is used by APValue emission to emit literals).
860 llvm::Constant *EmitLValue(APValue::LValueBase LVBase) {
997 if (const APValue *Value = D.evaluateValue())
1045 llvm::Constant *CodeGenModule::EmitConstantValue(const APValue
[all...]
H A DCGCXXABI.cpp144 llvm::Constant *CGCXXABI::EmitMemberPointer(const APValue &MP, QualType MPT) {
281 CharUnits CGCXXABI::getMemberPointerPathAdjustment(const APValue &MP) {
282 // TODO: Store base specifiers in APValue member pointer paths so we can
H A DCGCXXABI.h170 virtual llvm::Constant *EmitMemberPointer(const APValue &MP, QualType MPT);
195 /// conversion along an inheritance path stored in an APValue. Unlike
198 CharUnits getMemberPointerPathAdjustment(const APValue &MP);
H A DCodeGenModule.h873 llvm::Constant *EmitConstantValue(const APValue &Value, QualType DestType,
878 llvm::Constant *EmitConstantValueForMemory(const APValue &Value,
H A DItaniumCXXABI.cpp96 llvm::Constant *EmitMemberPointer(const APValue &MP, QualType MPT) override;
690 llvm::Constant *ItaniumCXXABI::EmitMemberPointer(const APValue &MP,
H A DMicrosoftCXXABI.cpp492 llvm::Constant *EmitMemberPointer(const APValue &MP, QualType MPT) override;
1926 llvm::Constant *MicrosoftCXXABI::EmitMemberPointer(const APValue &MP,
H A DCGDebugInfo.cpp884 const APValue *Value = Var->evaluateValue();
H A DCodeGenModule.cpp2909 APValue *Value = nullptr;
/external/clang/include/clang/Sema/
H A DOverload.h241 APValue &ConstantValue,
H A DInitialization.h947 APValue *ConstantValue) const;
/external/clang/lib/Sema/
H A DSemaOverload.cpp314 APValue &ConstantValue,
348 ConstantValue = APValue(IntConstantValue);
441 ConstantValue = APValue(InitializerValue);
5034 APValue PreNarrowingValue;
5731 APValue Result;
H A DSemaChecking.cpp4986 static IntRange GetValueRange(ASTContext &C, APValue &result, QualType Ty,
5009 // the sign right on this one case. It would be nice if APValue
5267 static bool IsSameFloatAfterCast(const APValue &value,
H A DSemaInit.cpp7109 APValue ConstantValue;

Completed in 5207 milliseconds