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
122 APValue() : Kind(Uninitialized) {} function in class:clang::APValue
123 explicit APValue(const APSInt &I) : Kind(Uninitialized) { function in class:clang::APValue
126 explicit APValue(const APFloat &F) : Kind(Uninitialized) { function in class:clang::APValue
129 explicit APValue(const APValue *E, unsigned N) : Kind(Uninitialized) { function in class:clang::APValue
132 APValue(const APSInt &R, const APSInt &I) : Kind(Uninitialized) { function in class:clang::APValue
135 APValue(const APFloat &R, const APFloat &I) : Kind(Uninitialized) { function in class:clang::APValue
139 APValue(LValueBase B, const CharUnits &O, NoLValuePath N, unsigned CallIndex) function in class:clang::APValue
143 APValue(LValueBase B, const CharUnits &O, ArrayRef<LValuePathEntry> Path, function in class:clang::APValue
148 APValue(UninitArray, unsigned InitElts, unsigned Size) : Kind(Uninitialized) { function in class:clang::APValue
151 APValue(UninitStruct, unsigned B, unsigned M) : Kind(Uninitialized) { function in class:clang::APValue
154 APValue(const FieldDecl *D, const APValue &V = APValue()) argument
158 APValue(const ValueDecl *Member, bool IsDerivedMember, function in class:clang::APValue
162 APValue(const AddrLabelExpr* LHSExpr, const AddrLabelExpr* RHSExpr) function in class:clang::APValue
[all...]
H A DDecl.h17 #include "clang/AST/APValue.h"
635 APValue Evaluated;
1033 APValue *evaluateValue() const;
1034 APValue *evaluateValue(SmallVectorImpl<PartialDiagnosticAt> &Notes) const;
1038 /// to untyped APValue if the value could not be evaluated.
1039 APValue *getEvaluatedValue() const {
H A DASTContext.h170 llvm::DenseMap<const MaterializeTemporaryExpr*, APValue>
2129 APValue *getMaterializedTemporaryValue(const MaterializeTemporaryExpr *E,
H A DExpr.h17 #include "clang/AST/APValue.h"
34 class APValue;
499 bool isCXX11ConstantExpr(ASTContext &Ctx, APValue *Result = 0,
541 APValue Val;
599 bool EvaluateAsInitializer(APValue &Result, const ASTContext &Ctx,
/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.mk27 APValue.cpp \
H A DASTDiagnostic.cpp1181 APValue &FromVal = FromResult.Val;
1182 APValue &ToVal = ToResult.Val;
1187 case APValue::Int:
1189 case APValue::LValue: {
1190 APValue::LValueBase FromBase = FromVal.getLValueBase();
1191 APValue::LValueBase ToBase = ToVal.getLValueBase();
1199 case APValue::MemberPointer:
H A DDecl.cpp1853 // Note: EvaluatedStmt contains an APValue, which usually holds
1864 APValue *VarDecl::evaluateValue() const {
1870 // Destroy an APValue that was allocated in an ASTContext.
1872 static_cast<APValue*>(UntypedValue)->~APValue();
1876 APValue *VarDecl::evaluateValue(
1901 // Ensure the computed APValue is cleaned up later if evaluation succeeded,
1905 Eval->Evaluated = APValue();
H A DASTContext.cpp8034 APValue *
8042 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);
74 void Build(const APValue &Val, const RecordDecl *RD, bool IsPrimaryBase,
426 void ConstStructBuilder::Build(const APValue &Val, const RecordDecl *RD,
474 const APValue &FieldValue =
557 const APValue &Val,
578 /// 1) Literals (this is used by APValue emission to emit literals).
875 llvm::Constant *EmitLValue(APValue::LValueBase LVBase) {
1012 if (const APValue *Value = D.evaluateValue())
1060 llvm::Constant *CodeGenModule::EmitConstantValue(const APValue
[all...]
H A DCGCXXABI.cpp110 llvm::Constant *CGCXXABI::EmitMemberPointer(const APValue &MP, QualType MPT) {
254 CharUnits CGCXXABI::getMemberPointerPathAdjustment(const APValue &MP) {
255 // TODO: Store base specifiers in APValue member pointer paths so we can
H A DCGCXXABI.h175 virtual llvm::Constant *EmitMemberPointer(const APValue &MP, QualType MPT);
200 /// conversion along an inheritance path stored in an APValue. Unlike
203 CharUnits getMemberPointerPathAdjustment(const APValue &MP);
H A DCodeGenModule.cpp2668 APValue *Value = 0;
3102 APValue InitStruct(APValue::UninitStruct(), /*NumBases=*/0, /*NumFields=*/4);
3103 InitStruct.getStructField(0) = APValue(llvm::APSInt(Field0));
3104 InitStruct.getStructField(1) = APValue(llvm::APSInt(Field1));
3105 InitStruct.getStructField(2) = APValue(llvm::APSInt(Field2));
3106 APValue& Arr = InitStruct.getStructField(3);
3107 Arr = APValue(APValue::UninitArray(), 8, 8);
3109 Arr.getArrayInitializedElt(t) = APValue(llv
[all...]
H A DCodeGenModule.h831 llvm::Constant *EmitConstantValue(const APValue &Value, QualType DestType,
836 llvm::Constant *EmitConstantValueForMemory(const APValue &Value,
H A DItaniumCXXABI.cpp87 llvm::Constant *EmitMemberPointer(const APValue &MP, QualType MPT);
586 llvm::Constant *ItaniumCXXABI::EmitMemberPointer(const APValue &MP,
H A DMicrosoftCXXABI.cpp248 virtual llvm::Constant *EmitMemberPointer(const APValue &MP, QualType MPT);
787 llvm::Constant *MicrosoftCXXABI::EmitMemberPointer(const APValue &MP,
H A DCGDebugInfo.cpp894 const APValue *Value = Var->evaluateValue();
/external/clang/include/clang/Sema/
H A DOverload.h241 APValue &ConstantValue,
H A DInitialization.h918 APValue *ConstantValue) const;
/external/clang/lib/Sema/
H A DSemaOverload.cpp311 APValue &ConstantValue,
345 ConstantValue = APValue(IntConstantValue);
438 ConstantValue = APValue(InitializerValue);
4952 APValue PreNarrowingValue;
H A DSemaChecking.cpp4388 static IntRange GetValueRange(ASTContext &C, APValue &result, QualType Ty,
4411 // the sign right on this one case. It would be nice if APValue
4666 static bool IsSameFloatAfterCast(const APValue &value,
H A DSemaInit.cpp6888 APValue ConstantValue;

Completed in 1519 milliseconds