| /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 | 89 static QualType getType(APValue::LValueBase B) { in getType() 95 static const FieldDecl *getAsField(APValue::LValuePathEntry E) { in getAsField() 100 static const CXXRecordDecl *getAsBaseClass(APValue::LValuePathEntry E) { in getAsBaseClass() 105 static bool isVirtualBaseClass(APValue::LValuePathEntry E) { in isVirtualBaseClass() 151 static bool isBaseAnAllocSizeCall(APValue::LValueBase Base) { in isBaseAnAllocSizeCall() 198 findMostDerivedSubobject(ASTContext &Ctx, APValue::LValueBase Base, in findMostDerivedSubobject() 199 ArrayRef<APValue::LValuePathEntry> Path, in findMostDerivedSubobject() 285 typedef APValue::LValuePathEntry PathEntry; 298 SubobjectDesignator(ASTContext &Ctx, const APValue &V) in SubobjectDesignator() 318 void truncate(ASTContext &Ctx, APValue::LValueBase Base, in truncate() [all …]
|
| H A D | TextNodeDumper.cpp | 607 static bool isSimpleAPValue(const APValue &Value) { in isSimpleAPValue() 609 case APValue::None: in isSimpleAPValue() 610 case APValue::Indeterminate: in isSimpleAPValue() 611 case APValue::Int: in isSimpleAPValue() 612 case APValue::Float: in isSimpleAPValue() 613 case APValue::FixedPoint: in isSimpleAPValue() 614 case APValue::ComplexInt: in isSimpleAPValue() 615 case APValue::ComplexFloat: in isSimpleAPValue() 616 case APValue::LValue: in isSimpleAPValue() 617 case APValue::MemberPointer: in isSimpleAPValue() [all …]
|
| H A D | ItaniumMangle.cpp | 616 void mangleValueInTemplateArg(QualType T, const APValue &V, bool TopLevel, 6369 APValue Value; in mangleTemplateArg() 6372 Value = APValue(D, /*IsDerivedMember=*/false, /*Path=*/{}); in mangleTemplateArg() 6378 Value = APValue(APValue::LValueBase(D), CharUnits::Zero(), in mangleTemplateArg() 6379 {APValue::LValuePathEntry::ArrayIndex(0)}, in mangleTemplateArg() 6383 Value = APValue(APValue::LValueBase(D), CharUnits::Zero(), in mangleTemplateArg() 6384 ArrayRef<APValue::LValuePathEntry>(), in mangleTemplateArg() 6445 static bool isZeroInitialized(QualType T, const APValue &V) { in isZeroInitialized() 6450 case APValue::None: in isZeroInitialized() 6451 case APValue::Indeterminate: in isZeroInitialized() [all …]
|
| H A D | Expr.cpp | 229 APValue &Value = Eval.Val; in getAsBuiltinConstantDeclRef() 294 assert((Kind == ConstantResultStorageKind::APValue || in AssertResultStorageKind() 301 ConstantResultStorageKind ConstantExpr::getStorageKind(const APValue &Value) { in getStorageKind() 303 case APValue::None: in getStorageKind() 304 case APValue::Indeterminate: in getStorageKind() 306 case APValue::Int: in getStorageKind() 311 return ConstantResultStorageKind::APValue; in getStorageKind() 319 return ConstantResultStorageKind::APValue; in getStorageKind() 326 ConstantExprBits.APValueKind = APValue::None; in ConstantExpr() 332 if (StorageKind == ConstantResultStorageKind::APValue) in ConstantExpr() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | APValue.h | 122 class APValue { 271 APValue *Elts = nullptr; 279 APValue *Elts; 287 APValue *Elts; 297 APValue *Value; 325 APValue() : Kind(None), AllowConstexprUnknown(false) {} 327 explicit APValue(APSInt I) : Kind(None), AllowConstexprUnknown(false) { 331 explicit APValue(APFloat F) : Kind(None), AllowConstexprUnknown(false) { 335 explicit APValue(APFixedPoint FX) : Kind(None), AllowConstexprUnknown(false) { 340 explicit APValue(const APValue *E, unsigned N) [all …]
|
| H A D | PropertiesBase.td | 75 def APValue : PropertyType { let PassByReference = 1; } 76 def APValueKind : EnumPropertyType<"APValue::ValueKind">; 124 def LValuePathEntry : PropertyType<"APValue::LValuePathEntry">; 126 PropertyType<"APValue::LValuePathSerializationHelper"> { 260 // Type cases for APValue. 261 def : PropertyTypeKind<APValue, APValueKind, 263 let Class = PropertyTypeCase<APValue, "None"> in { 264 def : Creator<[{ return APValue(); }]>; 266 let Class = PropertyTypeCase<APValue, "Indeterminate"> in { 267 def : Creator<[{ return APValue::IndeterminateValue(); }]>; [all …]
|
| H A D | AbstractBasicReader.h | 190 APValue::LValuePathSerializationHelper readLValuePathSerializationHelper( in readLValuePathSerializationHelper() 191 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, origTy); in readLValuePathSerializationHelper()
|
| H A D | ODRHash.h | 28 class APValue; variable 112 void AddStructuralValue(const APValue &);
|
| 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; 188 const APValue &V, bool IsDefaulted); 213 TemplateArgument(const ASTContext &Ctx, QualType Type, const APValue &Value, 397 const APValue &getAsStructuralValue() const { return *Value.Value; }
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/ |
| H A D | Pointer.cpp | 143 APValue Pointer::toAPValue(const ASTContext &ASTCtx) const { in toAPValue() 144 llvm::SmallVector<APValue::LValuePathEntry, 5> Path; in toAPValue() 147 return APValue(static_cast<const Expr *>(nullptr), CharUnits::Zero(), Path, in toAPValue() 150 return APValue(static_cast<const Expr *>(nullptr), in toAPValue() 157 return APValue(FD, CharUnits::fromQuantity(Offset), {}, in toAPValue() 159 return APValue(FP.getFunction()->getExpr(), CharUnits::fromQuantity(Offset), in toAPValue() 166 return APValue( in toAPValue() 167 APValue::LValueBase::getTypeInfo( in toAPValue() 175 APValue::LValueBase Base; in toAPValue() 185 Base = APValue::LValueBase::getDynamicAlloc(DA, AllocatedType); in toAPValue() [all …]
|
| H A D | FunctionPointer.cpp | 14 APValue FunctionPointer::toAPValue(const ASTContext &) const { in toAPValue() 16 return APValue(static_cast<Expr *>(nullptr), CharUnits::Zero(), {}, in toAPValue() 20 return APValue(Func->getDecl(), CharUnits::fromQuantity(0), {}, in toAPValue() 22 return APValue(Func->getExpr(), CharUnits::fromQuantity(0), {}, in toAPValue()
|
| H A D | Context.h | 26 class APValue; variable 53 bool evaluateAsRValue(State &Parent, const Expr *E, APValue &Result); 56 bool evaluate(State &Parent, const Expr *E, APValue &Result, 60 bool evaluateAsInitializer(State &Parent, const VarDecl *VD, APValue &Result); 63 const Expr *PtrExpr, APValue &Result);
|
| H A D | EvaluationResult.h | 46 std::variant<std::monostate, Pointer, FunctionPointer, APValue> Value; 58 void setValue(const APValue &V) { in setValue() 90 APValue toAPValue() const; 95 std::optional<APValue> toRValue() const;
|
| H A D | Context.cpp | 55 bool Context::evaluateAsRValue(State &Parent, const Expr *E, APValue &Result) { in evaluateAsRValue() 85 bool Context::evaluate(State &Parent, const Expr *E, APValue &Result, in evaluate() 115 APValue &Result) { in evaluateAsInitializer() 153 APValue SizeValue; in evaluateStringRepr() 163 if constexpr (std::is_same_v<ResultT, APValue>) in evaluateStringRepr() 164 Result = APValue(APValue::UninitArray{}, 0, 0); in evaluateStringRepr() 180 if constexpr (std::is_same_v<ResultT, APValue>) { in evaluateStringRepr() 182 Result = APValue(APValue::UninitArray{}, Size, Size); in evaluateStringRepr() 184 if (std::optional<APValue> ElemVal = in evaluateStringRepr() 210 const Expr *PtrExpr, APValue &Result) { in evaluateCharRange()
|
| H A D | MemberPointer.cpp | 74 APValue MemberPointer::toAPValue(const ASTContext &ASTCtx) const { in toAPValue() 76 return APValue(static_cast<ValueDecl *>(nullptr), /*IsDerivedMember=*/false, in toAPValue() 82 return APValue(getDecl(), /*IsDerivedMember=*/false, in toAPValue()
|
| H A D | FunctionPointer.h | 17 class APValue; variable 37 APValue toAPValue(const ASTContext &) const;
|
| H A D | EvaluationResult.cpp | 19 APValue EvaluationResult::toAPValue() const { in toAPValue() 32 return std::get<APValue>(Value); in toAPValue() 34 return APValue(); in toAPValue() 40 std::optional<APValue> EvaluationResult::toRValue() const { in toRValue()
|
| H A D | EvalEmitter.cpp | 216 if (std::optional<APValue> V = in emitRet() 245 if (std::optional<APValue> APV = in emitRetValue() 312 APValue *Cached = Temp->getOrCreateValue(true); in updateGlobalTemporaries() 318 if (std::optional<APValue> APV = in updateGlobalTemporaries()
|
| /freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/ |
| H A D | CIRGenExprConstant.cpp | 352 const APValue &value; 359 ConstantLValueEmitter(ConstantEmitter &emitter, const APValue &value, in ConstantLValueEmitter() 367 ConstantLValue tryEmitBase(const APValue::LValueBase &base); 388 const APValue::LValueBase &base = value.getLValueBase(); in tryEmit() 442 ConstantLValueEmitter::tryEmitBase(const APValue::LValueBase &base) { in tryEmitBase() 629 if (APValue *value = d.evaluateValue()) in tryEmitPrivateForVarInit() 646 mlir::Attribute ConstantEmitter::tryEmitPrivateForMemory(const APValue &value, in tryEmitPrivateForMemory() 654 const APValue &value, in emitAbstract() 674 mlir::Attribute ConstantEmitter::tryEmitPrivate(const APValue &value, in tryEmitPrivate() 678 case APValue::None: in tryEmitPrivate() [all …]
|
| H A D | CIRGenConstantEmitter.h | 93 mlir::Attribute emitAbstract(SourceLocation loc, const APValue &value, 104 mlir::Attribute tryEmitPrivate(const APValue &value, QualType destType); 105 mlir::Attribute tryEmitPrivateForMemory(const APValue &value, QualType t);
|
| /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 | 578 const APValue &Value, QualType ValTy); 599 bool Build(const APValue &Val, const RecordDecl *RD, bool IsPrimaryBase, 838 bool ConstStructBuilder::Build(const APValue &Val, const RecordDecl *RD, in Build() 901 const APValue &FieldValue = in Build() 999 const APValue &Val, in BuildStruct() 1359 static APValue withDestType(ASTContext &Ctx, const Expr *E, QualType SrcType, in withDestType() 1370 return APValue(Result); in withDestType() 1373 return APValue(Value); in withDestType() 1610 ConstantEmitter::tryEmitAbstract(const APValue &value, QualType destType) { in tryEmitAbstract() 1641 ConstantEmitter::emitAbstract(SourceLocation loc, const APValue &value, in emitAbstract() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Serialization/ |
| H A D | TemplateArgumentHasher.cpp | 57 void AddStructuralValue(const APValue &); 110 void TemplateArgumentHasher::AddStructuralValue(const APValue &Value) { in AddStructuralValue() 118 if (Kind == APValue::LValue || Kind == APValue::MemberPointer) { in AddStructuralValue()
|