/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | APValue.cpp | 42 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 D | ExprConstant.cpp | 85 static QualType getType(APValue::LValueBase B) { in getType() 91 static const FieldDecl *getAsField(APValue::LValuePathEntry E) { in getAsField() 96 static const CXXRecordDecl *getAsBaseClass(APValue::LValuePathEntry E) { in getAsBaseClass() 101 static bool isVirtualBaseClass(APValue::LValuePathEntry E) { in isVirtualBaseClass() 147 static bool isBaseAnAllocSizeCall(APValue::LValueBase Base) { in isBaseAnAllocSizeCall() 194 findMostDerivedSubobject(ASTContext &Ctx, APValue::LValueBase Base, in findMostDerivedSubobject() 195 ArrayRef<APValue::LValuePathEntry> Path, in findMostDerivedSubobject() 275 typedef APValue::LValuePathEntry PathEntry; 288 SubobjectDesignator(ASTContext &Ctx, const APValue &V) in SubobjectDesignator() 309 void truncate(ASTContext &Ctx, APValue::LValueBase Base, in truncate() [all …]
|
H A D | TextNodeDumper.cpp | 552 static bool isSimpleAPValue(const APValue &Value) { in isSimpleAPValue() 554 case APValue::None: in isSimpleAPValue() 555 case APValue::Indeterminate: in isSimpleAPValue() 556 case APValue::Int: in isSimpleAPValue() 557 case APValue::Float: in isSimpleAPValue() 558 case APValue::FixedPoint: in isSimpleAPValue() 559 case APValue::ComplexInt: in isSimpleAPValue() 560 case APValue::ComplexFloat: in isSimpleAPValue() 561 case APValue::LValue: in isSimpleAPValue() 562 case APValue::MemberPointer: in isSimpleAPValue() [all …]
|
H A D | Expr.cpp | 230 APValue &Value = Eval.Val; in getAsBuiltinConstantDeclRef() 295 assert((Kind == ConstantResultStorageKind::APValue || in AssertResultStorageKind() 302 ConstantResultStorageKind ConstantExpr::getStorageKind(const APValue &Value) { in getStorageKind() 304 case APValue::None: in getStorageKind() 305 case APValue::Indeterminate: in getStorageKind() 307 case APValue::Int: in getStorageKind() 312 return ConstantResultStorageKind::APValue; in getStorageKind() 320 return ConstantResultStorageKind::APValue; in getStorageKind() 327 ConstantExprBits.APValueKind = APValue::None; in ConstantExpr() 333 if (StorageKind == ConstantResultStorageKind::APValue) in ConstantExpr() [all …]
|
H A D | ItaniumMangle.cpp | 621 void mangleValueInTemplateArg(QualType T, const APValue &V, bool TopLevel, 6096 APValue Value; in mangleTemplateArg() 6099 Value = APValue(D, /*IsDerivedMember=*/false, /*Path=*/{}); in mangleTemplateArg() 6105 Value = APValue(APValue::LValueBase(D), CharUnits::Zero(), in mangleTemplateArg() 6106 {APValue::LValuePathEntry::ArrayIndex(0)}, in mangleTemplateArg() 6110 Value = APValue(APValue::LValueBase(D), CharUnits::Zero(), in mangleTemplateArg() 6111 ArrayRef<APValue::LValuePathEntry>(), in mangleTemplateArg() 6172 static bool isZeroInitialized(QualType T, const APValue &V) { in isZeroInitialized() 6177 case APValue::None: in isZeroInitialized() 6178 case APValue::Indeterminate: in isZeroInitialized() [all …]
|
H A D | MicrosoftMangle.cpp | 468 void mangleTemplateArgValue(QualType T, const APValue &V, TplArgKind, 1704 static ValueDecl *getAsArrayToPointerDecayedDecl(QualType T, const APValue &V) { in getAsArrayToPointerDecayedDecl() 1896 const APValue &V, in mangleTemplateArgValue() 1900 case APValue::None: in mangleTemplateArgValue() 1901 case APValue::Indeterminate: in mangleTemplateArgValue() 1909 case APValue::Int: in mangleTemplateArgValue() 1916 case APValue::Float: in mangleTemplateArgValue() 1922 case APValue::LValue: { in mangleTemplateArgValue() 1930 APValue::LValueBase Base = V.getLValueBase(); in mangleTemplateArgValue() 1956 for (APValue::LValuePathEntry E : V.getLValuePath()) { in mangleTemplateArgValue() [all …]
|
H A D | DeclCXX.cpp | 3094 APValue *LifetimeExtendedTemporaryDecl::getOrCreateValue(bool MayCreate) const { in getOrCreateValue() 3098 Value = (new (getASTContext()) APValue); in getOrCreateValue() 3508 APValue &MSGuidDecl::getAsAPValue() const { in getAsAPValue() 3512 APVal = APValue(APValue::UninitStruct(), 0, 4); in getAsAPValue() 3513 APVal.getStructField(0) = APValue(APSInt(APInt(32, PartVal.Part1), true)); in getAsAPValue() 3514 APVal.getStructField(1) = APValue(APSInt(APInt(16, PartVal.Part2), true)); in getAsAPValue() 3515 APVal.getStructField(2) = APValue(APSInt(APInt(16, PartVal.Part3), true)); in getAsAPValue() 3516 APValue &Arr = APVal.getStructField(3) = in getAsAPValue() 3517 APValue(APValue::UninitArray(), 8, 8); in getAsAPValue() 3520 APValue(APSInt(APInt(8, PartVal.Part4And5[I]), true)); in getAsAPValue() [all …]
|
H A D | TemplateBase.cpp | 202 const APValue &V, bool IsDefaulted) { in initFromStructural() 205 Value.Value = new (Ctx) APValue(V); in initFromStructural() 217 QualType T, const APValue &V) { in getAsSimpleValueDeclRef() 243 const APValue &V, bool IsDefaulted) { in TemplateArgument()
|
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | Pointer.cpp | 123 APValue Pointer::toAPValue(const ASTContext &ASTCtx) const { in toAPValue() 124 llvm::SmallVector<APValue::LValuePathEntry, 5> Path; in toAPValue() 127 return APValue(static_cast<const Expr *>(nullptr), CharUnits::Zero(), Path, in toAPValue() 130 return APValue(static_cast<const Expr *>(nullptr), in toAPValue() 137 APValue::LValueBase Base; in toAPValue() 146 return APValue(Base, CharUnits::Zero(), Path, in toAPValue() 165 Path.push_back(APValue::LValuePathEntry( in toAPValue() 180 Path.push_back(APValue::LValuePathEntry::ArrayIndex(Index)); in toAPValue() 206 Path.push_back(APValue::LValuePathEntry({BaseOrMember, IsVirtual})); in toAPValue() 224 return APValue(Base, Offset, Path, /*IsOnePastEnd=*/isOnePastEnd(), in toAPValue() [all …]
|
H A D | Context.h | 26 class APValue; variable 52 bool evaluateAsRValue(State &Parent, const Expr *E, APValue &Result); 55 bool evaluate(State &Parent, const Expr *E, APValue &Result); 58 bool evaluateAsInitializer(State &Parent, const VarDecl *VD, APValue &Result); 116 bool Run(State &Parent, const Function *Func, APValue &Result);
|
H A D | FunctionPointer.h | 43 APValue toAPValue(const ASTContext &) const { in toAPValue() 45 return APValue(static_cast<Expr *>(nullptr), CharUnits::Zero(), {}, in toAPValue() 49 return APValue(static_cast<Expr *>(nullptr), in toAPValue() 53 return APValue(Func->getDecl(), CharUnits::Zero(), {}, in toAPValue()
|
H A D | EvaluationResult.h | 46 std::variant<std::monostate, Pointer, FunctionPointer, APValue> Value; 58 void setValue(const APValue &V) { in setValue() 94 APValue toAPValue() const; 99 std::optional<APValue> toRValue() const;
|
H A D | MemberPointer.cpp | 63 APValue MemberPointer::toAPValue(const ASTContext &ASTCtx) const { in toAPValue() 65 return APValue(static_cast<ValueDecl *>(nullptr), /*IsDerivedMember=*/false, in toAPValue() 71 return APValue(cast<ValueDecl>(getDecl()), /*IsDerivedMember=*/false, in toAPValue()
|
H A D | Context.cpp | 37 APValue DummyResult; in isPotentialConstantExpr() 44 bool Context::evaluateAsRValue(State &Parent, const Expr *E, APValue &Result) { in evaluateAsRValue() 71 bool Context::evaluate(State &Parent, const Expr *E, APValue &Result) { in evaluate() 97 APValue &Result) { in evaluateAsInitializer() 202 bool Context::Run(State &Parent, const Function *Func, APValue &Result) { in Run()
|
H A D | EvaluationResult.cpp | 18 APValue EvaluationResult::toAPValue() const { in toAPValue() 31 return std::get<APValue>(Value); in toAPValue() 33 return APValue(); in toAPValue() 39 std::optional<APValue> EvaluationResult::toRValue() const { in toRValue()
|
H A D | EvalEmitter.cpp | 177 if (std::optional<APValue> V = in emitRet() 218 if (std::optional<APValue> APV = in emitRetValue() 285 APValue *Cached = Temp->getOrCreateValue(true); in updateGlobalTemporaries() 291 if (std::optional<APValue> APV = in updateGlobalTemporaries()
|
H A D | Boolean.h | 59 APValue toAPValue(const ASTContext &) const { return APValue(toAPSInt()); } in toAPValue()
|
H A D | Floating.h | 72 APValue toAPValue(const ASTContext &) const { return APValue(F); } in toAPValue()
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | PropertiesBase.td | 75 def APValue : PropertyType { let PassByReference = 1; } 76 def APValueKind : EnumPropertyType<"APValue::ValueKind">; 123 def LValuePathEntry : PropertyType<"APValue::LValuePathEntry">; 125 PropertyType<"APValue::LValuePathSerializationHelper"> { 257 // Type cases for APValue. 258 def : PropertyTypeKind<APValue, APValueKind, 260 let Class = PropertyTypeCase<APValue, "None"> in { 261 def : Creator<[{ return APValue(); }]>; 263 let Class = PropertyTypeCase<APValue, "Indeterminate"> in { 264 def : Creator<[{ return APValue::IndeterminateValue(); }]>; [all …]
|
H A D | AbstractBasicReader.h | 191 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 D | TextNodeDumper.h | 32 class APValue; variable 161 void dumpAPValueChildren(const APValue &Value, QualType Ty, 162 const APValue &(*IdxToChildFun)(const APValue &, 202 void Visit(const APValue &Value, QualType Ty);
|
H A D | TemplateBase.h | 53 class APValue; 146 APValue *Value; 186 const APValue &V, bool IsDefaulted); 210 TemplateArgument(const ASTContext &Ctx, QualType Type, const APValue &Value, 396 const APValue &getAsStructuralValue() const { return *Value.Value; }
|
H A D | AbstractBasicWriter.h | 173 APValue::LValuePathSerializationHelper lvaluePath) { in writeLValuePathSerializationHelper() 174 ArrayRef<APValue::LValuePathEntry> path = lvaluePath.Path; in writeLValuePathSerializationHelper()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | ConstantEmitter.h | 78 llvm::Constant *emitForInitializer(const APValue &value, LangAS destAddrSpace, 107 emitAbstract(SourceLocation loc, const APValue &value, QualType T, 114 llvm::Constant *tryEmitAbstract(const APValue &value, QualType T); 115 llvm::Constant *tryEmitAbstractForMemory(const APValue &value, QualType T); 143 tryEmitPrivate(const APValue &value, QualType T, 145 llvm::Constant *tryEmitPrivateForMemory(const APValue &value, QualType T);
|
H A D | CGExprConstant.cpp | 571 const APValue &Value, QualType ValTy); 592 bool Build(const APValue &Val, const RecordDecl *RD, bool IsPrimaryBase, 805 bool ConstStructBuilder::Build(const APValue &Val, const RecordDecl *RD, in Build() 866 const APValue &FieldValue = in Build() 913 const APValue &Val, in BuildStruct() 1273 static APValue withDestType(ASTContext &Ctx, const Expr *E, QualType SrcType, in withDestType() 1284 return APValue(Result); in withDestType() 1287 return APValue(Value); in withDestType() 1524 ConstantEmitter::tryEmitAbstract(const APValue &value, QualType destType) { in tryEmitAbstract() 1555 ConstantEmitter::emitAbstract(SourceLocation loc, const APValue &value, in emitAbstract() [all …]
|