Home
last modified time | relevance | path

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

123

/openbsd-src/gnu/llvm/clang/lib/AST/
H A DAPValue.cpp42 APValue::LValueBase::LValueBase(const ValueDecl *P, unsigned I, unsigned V) in LValueBase()
44 APValue::LValueBase::LValueBase(const Expr *P, unsigned I, unsigned V) in LValueBase()
47 APValue::LValueBase APValue::LValueBase::getDynamicAlloc(DynamicAllocLValue LV, in getDynamicAlloc()
55 APValue::LValueBase APValue::LValueBase::getTypeInfo(TypeInfoLValue LV, in getTypeInfo()
63 QualType APValue::LValueBase::getType() const { in getType()
108 unsigned APValue::LValueBase::getCallIndex() const { in getCallIndex()
113 unsigned APValue::LValueBase::getVersion() const { in getVersion()
117 QualType APValue::LValueBase::getTypeInfoType() const { in getTypeInfoType()
122 QualType APValue::LValueBase::getDynamicAllocType() const { in getDynamicAllocType()
127 void APValue::LValueBase::Profile(llvm::FoldingSetNodeID &ID) const { in Profile()
[all …]
H A DExprConstant.cpp81 static QualType getType(APValue::LValueBase B) { in getType()
87 static const FieldDecl *getAsField(APValue::LValuePathEntry E) { in getAsField()
92 static const CXXRecordDecl *getAsBaseClass(APValue::LValuePathEntry E) { in getAsBaseClass()
97 static bool isVirtualBaseClass(APValue::LValuePathEntry E) { in isVirtualBaseClass()
143 static bool isBaseAnAllocSizeCall(APValue::LValueBase Base) { in isBaseAnAllocSizeCall()
190 findMostDerivedSubobject(ASTContext &Ctx, APValue::LValueBase Base, in findMostDerivedSubobject()
191 ArrayRef<APValue::LValuePathEntry> Path, in findMostDerivedSubobject()
267 typedef APValue::LValuePathEntry PathEntry;
280 SubobjectDesignator(ASTContext &Ctx, const APValue &V) in SubobjectDesignator()
301 void truncate(ASTContext &Ctx, APValue::LValueBase Base, in truncate()
[all …]
H A DTextNodeDumper.cpp410 static bool isSimpleAPValue(const APValue &Value) { in isSimpleAPValue()
412 case APValue::None: in isSimpleAPValue()
413 case APValue::Indeterminate: in isSimpleAPValue()
414 case APValue::Int: in isSimpleAPValue()
415 case APValue::Float: in isSimpleAPValue()
416 case APValue::FixedPoint: in isSimpleAPValue()
417 case APValue::ComplexInt: in isSimpleAPValue()
418 case APValue::ComplexFloat: in isSimpleAPValue()
419 case APValue::LValue: in isSimpleAPValue()
420 case APValue::MemberPointer: in isSimpleAPValue()
[all …]
H A DItaniumMangle.cpp584 void mangleValueInTemplateArg(QualType T, const APValue &V, bool TopLevel,
5404 APValue Value; in mangleTemplateArg()
5407 Value = APValue(D, /*IsDerivedMember=*/false, /*Path=*/{}); in mangleTemplateArg()
5414 Value = APValue(APValue::LValueBase(D), CharUnits::Zero(), in mangleTemplateArg()
5415 {APValue::LValuePathEntry::ArrayIndex(0)}, in mangleTemplateArg()
5419 Value = APValue(APValue::LValueBase(D), CharUnits::Zero(), in mangleTemplateArg()
5420 ArrayRef<APValue::LValuePathEntry>(), in mangleTemplateArg()
5477 static bool isZeroInitialized(QualType T, const APValue &V) { in isZeroInitialized()
5482 case APValue::None: in isZeroInitialized()
5483 case APValue::Indeterminate: in isZeroInitialized()
[all …]
H A DMicrosoftMangle.cpp452 void mangleTemplateArgValue(QualType T, const APValue &V,
1695 const APValue &V, in mangleTemplateArgValue()
1698 case APValue::None: in mangleTemplateArgValue()
1699 case APValue::Indeterminate: in mangleTemplateArgValue()
1707 case APValue::Int: in mangleTemplateArgValue()
1714 case APValue::Float: in mangleTemplateArgValue()
1720 case APValue::LValue: { in mangleTemplateArgValue()
1728 APValue::LValueBase Base = V.getLValueBase(); in mangleTemplateArgValue()
1755 for (APValue::LValuePathEntry E : V.getLValuePath()) { in mangleTemplateArgValue()
1777 for (APValue::LValuePathEntry E : V.getLValuePath()) { in mangleTemplateArgValue()
[all …]
H A DExpr.cpp294 APValue &Value = Eval.Val; in getAsBuiltinConstantDeclRef()
355 ConstantExpr::getStorageKind(const APValue &Value) { in getStorageKind()
357 case APValue::None: in getStorageKind()
358 case APValue::Indeterminate: in getStorageKind()
360 case APValue::Int: in getStorageKind()
380 ConstantExprBits.APValueKind = APValue::None; in ConstantExpr()
387 ::new (getTrailingObjects<APValue>()) APValue(); in ConstantExpr()
396 unsigned Size = totalSizeToAlloc<APValue, uint64_t>( in Create()
404 const APValue &Result) { in Create()
416 ::new (getTrailingObjects<APValue>()) APValue(); in ConstantExpr()
[all …]
H A DDeclCXX.cpp3009 APValue *LifetimeExtendedTemporaryDecl::getOrCreateValue(bool MayCreate) const { in getOrCreateValue()
3013 Value = (new (getASTContext()) APValue); in getOrCreateValue()
3420 APValue &MSGuidDecl::getAsAPValue() const { in getAsAPValue()
3424 APVal = APValue(APValue::UninitStruct(), 0, 4); in getAsAPValue()
3425 APVal.getStructField(0) = APValue(APSInt(APInt(32, PartVal.Part1), true)); in getAsAPValue()
3426 APVal.getStructField(1) = APValue(APSInt(APInt(16, PartVal.Part2), true)); in getAsAPValue()
3427 APVal.getStructField(2) = APValue(APSInt(APInt(16, PartVal.Part3), true)); in getAsAPValue()
3428 APValue &Arr = APVal.getStructField(3) = in getAsAPValue()
3429 APValue(APValue::UninitArray(), 8, 8); in getAsAPValue()
3432 APValue(APSInt(APInt(8, PartVal.Part4And5[I]), true)); in getAsAPValue()
[all …]
H A DASTDumper.cpp325 LLVM_DUMP_METHOD void APValue::dump() const { in dump()
330 LLVM_DUMP_METHOD void APValue::dump(raw_ostream &OS, in dump()
H A DLinkage.h143 LinkageInfo getLVForValue(const APValue &V, LVComputationKind computation);
/openbsd-src/gnu/llvm/clang/include/clang/AST/
H A DAPValue.h122 class APValue {
270 APValue *Elts;
276 APValue *Elts;
282 APValue *Elts;
290 APValue *Value;
309 APValue() : Kind(None) {}
310 explicit APValue(APSInt I) : Kind(None) {
313 explicit APValue(APFloat F) : Kind(None) {
316 explicit APValue(APFixedPoint FX) : Kind(None) {
319 explicit APValue(const APValue *E, unsigned N) : Kind(None) {
[all …]
H A DPropertiesBase.td75 def APValue : PropertyType { let PassByReference = 1; }
76 def APValueKind : EnumPropertyType<"APValue::ValueKind">;
121 def LValuePathEntry : PropertyType<"APValue::LValuePathEntry">;
123 PropertyType<"APValue::LValuePathSerializationHelper"> {
254 // Type cases for APValue.
255 def : PropertyTypeKind<APValue, APValueKind,
257 let Class = PropertyTypeCase<APValue, "None"> in {
258 def : Creator<[{ return APValue(); }]>;
260 let Class = PropertyTypeCase<APValue, "Indeterminate"> in {
261 def : Creator<[{ return APValue::IndeterminateValue(); }]>;
[all …]
H A DAbstractBasicReader.h191 APValue::LValuePathSerializationHelper readLValuePathSerializationHelper( in readLValuePathSerializationHelper()
192 SmallVectorImpl<APValue::LValuePathEntry> &path) { in readLValuePathSerializationHelper()
205 APValue::LValuePathEntry(APValue::BaseOrMemberType(decl, int_))); in readLValuePathSerializationHelper()
209 APValue::LValuePathEntry::ArrayIndex(asImpl().readUInt32())); in readLValuePathSerializationHelper()
212 return APValue::LValuePathSerializationHelper(path, origTy); in readLValuePathSerializationHelper()
H A DTextNodeDumper.h31 class APValue; variable
159 void dumpAPValueChildren(const APValue &Value, QualType Ty,
160 const APValue &(*IdxToChildFun)(const APValue &,
194 void Visit(const APValue &Value, QualType Ty);
H A DAbstractBasicWriter.h173 APValue::LValuePathSerializationHelper lvaluePath) { in writeLValuePathSerializationHelper()
174 ArrayRef<APValue::LValuePathEntry> path = lvaluePath.Path; in writeLValuePathSerializationHelper()
H A DASTImporter.h481 llvm::Expected<APValue> Import(const APValue &FromValue);
/openbsd-src/gnu/llvm/clang/lib/AST/Interp/
H A DEvalEmitter.cpp23 InterpStack &Stk, APValue &Result) in EvalEmitter()
120 std::function<bool(QualType, const Pointer &, APValue &)> Composite; in emitRetValue()
121 Composite = [this, &Composite](QualType Ty, const Pointer &Ptr, APValue &R) { in emitRetValue()
132 APValue Value; in emitRetValue()
145 R = APValue(ActiveField, Value); in emitRetValue()
151 R = APValue(APValue::UninitStruct(), NB, NF); in emitRetValue()
157 APValue &Value = R.getStructField(I); in emitRetValue()
185 R = APValue(APValue::UninitArray{}, NumElems, NumElems); in emitRetValue()
189 APValue &Slot = R.getArrayInitializedElt(I); in emitRetValue()
H A DPointer.cpp78 APValue Pointer::toAPValue() const { in toAPValue()
79 APValue::LValueBase Base; in toAPValue()
80 llvm::SmallVector<APValue::LValuePathEntry, 5> Path; in toAPValue()
114 Path.push_back(APValue::LValuePathEntry::ArrayIndex(Ptr.getIndex())); in toAPValue()
123 Path.push_back(APValue::LValuePathEntry({BaseOrMember, IsVirtual})); in toAPValue()
141 return APValue(Base, Offset, Path, IsOnePastEnd, IsNullPtr); in toAPValue()
H A DContext.h47 bool evaluateAsRValue(State &Parent, const Expr *E, APValue &Result);
50 bool evaluateAsInitializer(State &Parent, const VarDecl *VD, APValue &Result);
66 bool Run(State &Parent, Function *Func, APValue &Result);
H A DContext.cpp48 bool Context::evaluateAsRValue(State &Parent, const Expr *E, APValue &Result) { in evaluateAsRValue()
61 APValue &Result) { in evaluateAsInitializer()
126 bool Context::Run(State &Parent, Function *Func, APValue &Result) { in Run()
H A DEvalEmitter.h46 APValue &Result);
90 APValue &Result;
H A DBoolean.h65 APValue toAPValue() const { return APValue(toAPSInt()); } in toAPValue()
H A DInterp.cpp34 static bool Ret(InterpState &S, CodePtr &PC, APValue &Result) { in Ret()
56 static bool RetVoid(InterpState &S, CodePtr &PC, APValue &Result) { in RetVoid()
74 static bool RetValue(InterpState &S, CodePtr &Pt, APValue &Result) { in RetValue()
476 bool Interpret(InterpState &S, APValue &Result) { in Interpret()
H A DIntegral.h115 APValue toAPValue() const { return APValue(toAPSInt()); }
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DConstantEmitter.h78 llvm::Constant *emitForInitializer(const APValue &value, LangAS destAddrSpace,
106 llvm::Constant *emitAbstract(SourceLocation loc, const APValue &value,
113 llvm::Constant *tryEmitAbstract(const APValue &value, QualType T);
114 llvm::Constant *tryEmitAbstractForMemory(const APValue &value, QualType T);
138 llvm::Constant *tryEmitPrivate(const APValue &value, QualType T);
139 llvm::Constant *tryEmitPrivateForMemory(const APValue &value, QualType T);
H A DCGExprConstant.cpp568 const APValue &Value, QualType ValTy);
589 bool Build(const APValue &Val, const RecordDecl *RD, bool IsPrimaryBase,
792 bool ConstStructBuilder::Build(const APValue &Val, const RecordDecl *RD, in Build()
846 const APValue &FieldValue = in Build()
893 const APValue &Val, in BuildStruct()
1389 ConstantEmitter::tryEmitAbstract(const APValue &value, QualType destType) { in tryEmitAbstract()
1420 ConstantEmitter::emitAbstract(SourceLocation loc, const APValue &value, in emitAbstract()
1445 llvm::Constant *ConstantEmitter::emitForInitializer(const APValue &value, in emitForInitializer()
1689 ConstantEmitter::tryEmitAbstractForMemory(const APValue &value, in tryEmitAbstractForMemory()
1703 llvm::Constant *ConstantEmitter::tryEmitPrivateForMemory(const APValue &value, in tryEmitPrivateForMemory()
[all …]

123