Home
last modified time | relevance | path

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

123

/netbsd-src/external/apache2/llvm/dist/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.cpp367 static bool isSimpleAPValue(const APValue &Value) { in isSimpleAPValue()
369 case APValue::None: in isSimpleAPValue()
370 case APValue::Indeterminate: in isSimpleAPValue()
371 case APValue::Int: in isSimpleAPValue()
372 case APValue::Float: in isSimpleAPValue()
373 case APValue::FixedPoint: in isSimpleAPValue()
374 case APValue::ComplexInt: in isSimpleAPValue()
375 case APValue::ComplexFloat: in isSimpleAPValue()
376 case APValue::LValue: in isSimpleAPValue()
377 case APValue::MemberPointer: in isSimpleAPValue()
[all …]
H A DItaniumMangle.cpp610 void mangleValueInTemplateArg(QualType T, const APValue &V, bool TopLevel,
5303 APValue Value; in mangleTemplateArg()
5306 Value = APValue(D, /*IsDerivedMember=*/false, /*Path=*/{}); in mangleTemplateArg()
5313 Value = APValue(APValue::LValueBase(D), CharUnits::Zero(), in mangleTemplateArg()
5314 {APValue::LValuePathEntry::ArrayIndex(0)}, in mangleTemplateArg()
5318 Value = APValue(APValue::LValueBase(D), CharUnits::Zero(), in mangleTemplateArg()
5319 ArrayRef<APValue::LValuePathEntry>(), in mangleTemplateArg()
5376 static bool isZeroInitialized(QualType T, const APValue &V) { in isZeroInitialized()
5381 case APValue::None: in isZeroInitialized()
5382 case APValue::Indeterminate: in isZeroInitialized()
[all …]
H A DMicrosoftMangle.cpp437 void mangleTemplateArgValue(QualType T, const APValue &V,
1660 const APValue &V, in mangleTemplateArgValue()
1663 case APValue::None: in mangleTemplateArgValue()
1664 case APValue::Indeterminate: in mangleTemplateArgValue()
1672 case APValue::Int: in mangleTemplateArgValue()
1679 case APValue::Float: in mangleTemplateArgValue()
1685 case APValue::LValue: { in mangleTemplateArgValue()
1693 APValue::LValueBase Base = V.getLValueBase(); in mangleTemplateArgValue()
1720 for (APValue::LValuePathEntry E : V.getLValuePath()) { in mangleTemplateArgValue()
1742 for (APValue::LValuePathEntry E : V.getLValuePath()) { in mangleTemplateArgValue()
[all …]
H A DASTDumper.cpp280 LLVM_DUMP_METHOD void APValue::dump() const { in dump()
285 LLVM_DUMP_METHOD void APValue::dump(raw_ostream &OS, in dump()
H A DExpr.cpp254 ConstantExpr::getStorageKind(const APValue &Value) { in getStorageKind()
256 case APValue::None: in getStorageKind()
257 case APValue::Indeterminate: in getStorageKind()
259 case APValue::Int: in getStorageKind()
279 ConstantExprBits.APValueKind = APValue::None; in ConstantExpr()
286 ::new (getTrailingObjects<APValue>()) APValue(); in ConstantExpr()
295 unsigned Size = totalSizeToAlloc<APValue, uint64_t>( in Create()
303 const APValue &Result) { in Create()
315 ::new (getTrailingObjects<APValue>()) APValue(); in ConstantExpr()
322 unsigned Size = totalSizeToAlloc<APValue, uint64_t>( in CreateEmpty()
[all …]
H A DDeclCXX.cpp2972 APValue *LifetimeExtendedTemporaryDecl::getOrCreateValue(bool MayCreate) const { in getOrCreateValue()
2976 Value = (new (getASTContext()) APValue); in getOrCreateValue()
3327 APValue &MSGuidDecl::getAsAPValue() const { in getAsAPValue()
3331 APVal = APValue(APValue::UninitStruct(), 0, 4); in getAsAPValue()
3332 APVal.getStructField(0) = APValue(APSInt(APInt(32, PartVal.Part1), true)); in getAsAPValue()
3333 APVal.getStructField(1) = APValue(APSInt(APInt(16, PartVal.Part2), true)); in getAsAPValue()
3334 APVal.getStructField(2) = APValue(APSInt(APInt(16, PartVal.Part3), true)); in getAsAPValue()
3335 APValue &Arr = APVal.getStructField(3) = in getAsAPValue()
3336 APValue(APValue::UninitArray(), 8, 8); in getAsAPValue()
3339 APValue(APSInt(APInt(8, PartVal.Part4And5[I]), true)); in getAsAPValue()
/netbsd-src/external/apache2/llvm/dist/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">;
118 def LValuePathEntry : PropertyType<"APValue::LValuePathEntry">;
120 PropertyType<"APValue::LValuePathSerializationHelper"> {
250 // Type cases for APValue.
251 def : PropertyTypeKind<APValue, APValueKind,
253 let Class = PropertyTypeCase<APValue, "None"> in {
254 def : Creator<[{ return APValue(); }]>;
256 let Class = PropertyTypeCase<APValue, "Indeterminate"> in {
257 def : Creator<[{ return APValue::IndeterminateValue(); }]>;
[all …]
H A DAbstractBasicReader.h191 APValue::LValuePathSerializationHelper readLValuePathSerializationHelper( in readLValuePathSerializationHelper()
192 SmallVectorImpl<APValue::LValuePathEntry> &path) { in readLValuePathSerializationHelper()
204 APValue::LValuePathEntry(APValue::BaseOrMemberType(decl, int_))); in readLValuePathSerializationHelper()
208 APValue::LValuePathEntry::ArrayIndex(asImpl().readUInt32())); in readLValuePathSerializationHelper()
211 return APValue::LValuePathSerializationHelper(path, elemTy); in readLValuePathSerializationHelper()
H A DTextNodeDumper.h30 class APValue; variable
158 void dumpAPValueChildren(const APValue &Value, QualType Ty,
159 const APValue &(*IdxToChildFun)(const APValue &,
191 void Visit(const APValue &Value, QualType Ty);
H A DAbstractBasicWriter.h176 APValue::LValuePathSerializationHelper lvaluePath) { in writeLValuePathSerializationHelper()
177 ArrayRef<APValue::LValuePathEntry> path = lvaluePath.Path; in writeLValuePathSerializationHelper()
H A DASTImporter.h506 llvm::Expected<APValue> Import(const APValue &FromValue);
H A DExpr.h41 class APValue; variable
549 bool isCXX11ConstantExpr(const ASTContext &Ctx, APValue *Result = nullptr,
610 APValue Val;
700 bool EvaluateAsInitializer(APValue &Result, const ASTContext &Ctx,
709 bool EvaluateWithSubstitution(APValue &Value, ASTContext &Ctx,
1024 private llvm::TrailingObjects<ConstantExpr, APValue, uint64_t> {
1037 size_t numTrailingObjects(OverloadToken<APValue>) const { in numTrailingObjects() argument
1052 APValue &APValueResult() { in APValueResult()
1055 return *getTrailingObjects<APValue>(); in APValueResult()
1057 APValue &APValueResult() const { in APValueResult()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/Interp/
H A DEvalEmitter.cpp23 InterpStack &Stk, APValue &Result) in EvalEmitter()
109 std::function<bool(QualType, const Pointer &, APValue &)> Composite; in emitRetValue()
110 Composite = [this, &Composite](QualType Ty, const Pointer &Ptr, APValue &R) { in emitRetValue()
121 APValue Value; in emitRetValue()
134 R = APValue(ActiveField, Value); in emitRetValue()
140 R = APValue(APValue::UninitStruct(), NB, NF); in emitRetValue()
146 APValue &Value = R.getStructField(I); in emitRetValue()
174 R = APValue(APValue::UninitArray{}, NumElems, NumElems); in emitRetValue()
178 APValue &Slot = R.getArrayInitializedElt(I); in emitRetValue()
H A DPointer.cpp75 APValue Pointer::toAPValue() const { in toAPValue()
76 APValue::LValueBase Base; in toAPValue()
77 llvm::SmallVector<APValue::LValuePathEntry, 5> Path; in toAPValue()
111 Path.push_back(APValue::LValuePathEntry::ArrayIndex(Ptr.getIndex())); in toAPValue()
120 Path.push_back(APValue::LValuePathEntry({BaseOrMember, IsVirtual})); in toAPValue()
132 return APValue(Base, Offset, Path, IsOnePastEnd, IsNullPtr); in toAPValue()
H A DContext.cpp45 APValue Dummy; in isPotentialConstantExpr()
49 bool Context::evaluateAsRValue(State &Parent, const Expr *E, APValue &Result) { in evaluateAsRValue()
55 APValue &Result) { in evaluateAsInitializer()
113 bool Context::Run(State &Parent, Function *Func, APValue &Result) { in Run()
H A DContext.h50 bool evaluateAsRValue(State &Parent, const Expr *E, APValue &Result);
53 bool evaluateAsInitializer(State &Parent, const VarDecl *VD, APValue &Result);
69 bool Run(State &Parent, Function *Func, APValue &Result);
H A DEvalEmitter.h47 APValue &Result);
91 APValue &Result;
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()
401 bool Interpret(InterpState &S, APValue &Result) { in Interpret()
H A DBoolean.h59 APValue toAPValue() const { return APValue(toAPSInt()); } in toAPValue()
H A DIntegral.h115 APValue toAPValue() const { return APValue(toAPSInt()); }
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DConstantEmitter.h75 llvm::Constant *emitForInitializer(const APValue &value, LangAS destAddrSpace,
103 llvm::Constant *emitAbstract(SourceLocation loc, const APValue &value,
110 llvm::Constant *tryEmitAbstract(const APValue &value, QualType T);
111 llvm::Constant *tryEmitAbstractForMemory(const APValue &value, QualType T);
135 llvm::Constant *tryEmitPrivate(const APValue &value, QualType T);
136 llvm::Constant *tryEmitPrivateForMemory(const APValue &value, QualType T);
H A DCGExprConstant.cpp556 const APValue &Value, QualType ValTy);
577 bool Build(const APValue &Val, const RecordDecl *RD, bool IsPrimaryBase,
772 bool ConstStructBuilder::Build(const APValue &Val, const RecordDecl *RD, in Build()
826 const APValue &FieldValue = in Build()
872 const APValue &Val, in BuildStruct()
1360 ConstantEmitter::tryEmitAbstract(const APValue &value, QualType destType) { in tryEmitAbstract()
1394 ConstantEmitter::emitAbstract(SourceLocation loc, const APValue &value, in emitAbstract()
1419 llvm::Constant *ConstantEmitter::emitForInitializer(const APValue &value, in emitForInitializer()
1663 ConstantEmitter::tryEmitAbstractForMemory(const APValue &value, in tryEmitAbstractForMemory()
1677 llvm::Constant *ConstantEmitter::tryEmitPrivateForMemory(const APValue &value, in tryEmitPrivateForMemory()
[all …]

123