|
LLVM 22.0.0git
|
Composite types. More...
#include "llvm/IR/DebugInfoMetadata.h"
Friends | |
| class | LLVMContextImpl |
| class | MDNode |
Additional Inherited Members | |
| Public Types inherited from llvm::DINode | |
| enum | DIFlags : uint32_t { FlagAccessibility = FlagPrivate | FlagProtected | FlagPublic , FlagPtrToMemberRep } |
| Debug info flags. More... | |
| Public Types inherited from llvm::MDNode | |
| using | op_iterator = const MDOperand * |
| using | op_range = iterator_range<op_iterator> |
| Public Types inherited from llvm::Metadata | |
| enum | MetadataKind |
| Static Public Attributes inherited from llvm::Metadata | |
| static constexpr const unsigned | PoisonGeneratingIDs [] |
| Metadata IDs that may generate poison. | |
| Protected Types inherited from llvm::MDNode | |
| using | mutable_op_range = iterator_range<MDOperand *> |
| Protected Types inherited from llvm::Metadata | |
| enum | StorageType { Uniqued , Distinct , Temporary } |
| Active type of storage. More... | |
| Protected Member Functions inherited from llvm::DIType | |
| DIType (LLVMContext &C, unsigned ID, StorageType Storage, unsigned Tag, unsigned Line, uint32_t AlignInBits, uint32_t NumExtraInhabitants, DIFlags Flags, ArrayRef< Metadata * > Ops) | |
| ~DIType ()=default | |
| void | init (unsigned Line, uint32_t AlignInBits, uint32_t NumExtraInhabitants, DIFlags Flags) |
| void | mutate (unsigned Tag, unsigned Line, uint32_t AlignInBits, uint32_t NumExtraInhabitants, DIFlags Flags) |
| Change fields in place. | |
| Protected Member Functions inherited from llvm::DIScope | |
| DIScope (LLVMContext &C, unsigned ID, StorageType Storage, unsigned Tag, ArrayRef< Metadata * > Ops) | |
| ~DIScope ()=default | |
| Protected Member Functions inherited from llvm::DINode | |
| DINode (LLVMContext &C, unsigned ID, StorageType Storage, unsigned Tag, ArrayRef< Metadata * > Ops1, ArrayRef< Metadata * > Ops2={}) | |
| ~DINode ()=default | |
| template<class Ty> | |
| Ty * | getOperandAs (unsigned I) const |
| StringRef | getStringOperand (unsigned I) const |
| void | setTag (unsigned Tag) |
| Allow subclasses to mutate the tag. | |
| Protected Member Functions inherited from llvm::MDNode | |
| LLVM_ABI | MDNode (LLVMContext &Context, unsigned ID, StorageType Storage, ArrayRef< Metadata * > Ops1, ArrayRef< Metadata * > Ops2={}) |
| ~MDNode ()=default | |
| LLVM_ABI void * | operator new (size_t Size, size_t NumOps, StorageType Storage) |
| LLVM_ABI void | operator delete (void *Mem) |
| void | operator delete (void *, unsigned) |
| Required by std, but never called. | |
| void | operator delete (void *, unsigned, bool) |
| Required by std, but never called. | |
| LLVM_ABI void | dropAllReferences () |
| MDOperand * | mutable_begin () |
| MDOperand * | mutable_end () |
| mutable_op_range | mutable_operands () |
| LLVM_ABI void | setOperand (unsigned I, Metadata *New) |
| Set an operand. | |
| unsigned | getNumUnresolved () const |
| void | setNumUnresolved (unsigned N) |
| LLVM_ABI void | storeDistinctInContext () |
| void | resize (size_t NumOps) |
| Resize the node to hold NumOps operands. | |
| Protected Member Functions inherited from llvm::Metadata | |
| Metadata (unsigned ID, StorageType Storage) | |
| ~Metadata ()=default | |
| void | handleChangedOperand (void *, Metadata *) |
| Default handling of a changed operand, which asserts. | |
| Static Protected Member Functions inherited from llvm::DINode | |
| static MDString * | getCanonicalMDString (LLVMContext &Context, StringRef S) |
| Static Protected Member Functions inherited from llvm::MDNode | |
| template<class T, class StoreT> | |
| static T * | storeImpl (T *N, StorageType Storage, StoreT &Store) |
| template<class T> | |
| static T * | storeImpl (T *N, StorageType Storage) |
| Protected Attributes inherited from llvm::Metadata | |
| unsigned char | Storage: 7 |
| Storage flag for non-uniqued, otherwise unowned, metadata. | |
| unsigned char | SubclassData1: 1 |
| unsigned short | SubclassData16 = 0 |
| unsigned | SubclassData32 = 0 |
| Static Protected Attributes inherited from llvm::DIType | |
| static constexpr unsigned | N_OPERANDS = 5 |
Composite types.
TODO: Detach from DerivedTypeBase (split out MDEnumType?). TODO: Create a custom, unrelated node for DW_TAG_array_type.
Definition at line 1607 of file DebugInfoMetadata.h.
|
static |
Build a DICompositeType with the given ODR identifier.
Looks up the mapped DICompositeType for the given ODR Identifier. If it doesn't exist, creates a new one. If it does exist and isForwardDecl(), and the new arguments would be a definition, mutates the the type in place. In either case, returns the type.
If not LLVMContext::isODRUniquingDebugTypes(), this function returns nullptr.
Definition at line 1047 of file DebugInfoMetadata.cpp.
References AbstractManglingParser< Derived, Alloc >::Ops, AlignInBits, Allocated, Annotations, assert(), Associated, BaseType, BitStride, DataLocation, Discriminator, Elements, File, Flags, llvm::MDNode::getDistinct(), I, Identifier, Line, Name, NumExtraInhabitants, OffsetInBits, Rank, Scope, SizeInBits, Specification, Tag, TemplateParams, and VTableHolder.
Definition at line 1959 of file DebugInfoMetadata.h.
References llvm::Metadata::getMetadataID().
| llvm::DICompositeType::DEFINE_MDNODE_GET | ( | DICompositeType | , |
| (unsigned Tag, StringRef Name, DIFile *File, unsigned Line, DIScope *Scope, DIType *BaseType, uint64_t SizeInBits, uint32_t AlignInBits, uint64_t OffsetInBits, DIFlags Flags, DINodeArray Elements, unsigned RuntimeLang, std::optional< uint32_t > EnumKind, DIType *VTableHolder, DITemplateParameterArray TemplateParams=nullptr, StringRef Identifier="", DIDerivedType *Discriminator=nullptr, Metadata *DataLocation=nullptr, Metadata *Associated=nullptr, Metadata *Allocated=nullptr, Metadata *Rank=nullptr, DINodeArray Annotations=nullptr, DIType *Specification=nullptr, uint32_t NumExtraInhabitants=0, Metadata *BitStride=nullptr) | , | ||
| (Tag, Name, File, Line, Scope, BaseType, SizeInBits, AlignInBits, OffsetInBits, Specification, NumExtraInhabitants, Flags, Elements, RuntimeLang, EnumKind, VTableHolder, TemplateParams, Identifier, Discriminator, DataLocation, Associated, Allocated, Rank, Annotations, BitStride) | ) |
References AlignInBits, Allocated, Annotations, Associated, BaseType, BitStride, DataLocation, Discriminator, llvm::DIType::DIType(), Elements, File, Flags, Identifier, Line, Name, NumExtraInhabitants, OffsetInBits, Rank, Scope, SizeInBits, Specification, Tag, TemplateParams, and VTableHolder.
|
inline |
Definition at line 1896 of file DebugInfoMetadata.h.
References llvm::dyn_cast_or_null(), and getRawAllocated().
|
inline |
Definition at line 1899 of file DebugInfoMetadata.h.
References llvm::dyn_cast_or_null(), and getRawAllocated().
|
inline |
Definition at line 1915 of file DebugInfoMetadata.h.
References llvm::cast_or_null(), and getRawAnnotations().
Referenced by llvm::DwarfUnit::constructTypeDIE().
|
inline |
Definition at line 1889 of file DebugInfoMetadata.h.
References llvm::dyn_cast_or_null(), and getRawAssociated().
|
inline |
Definition at line 1892 of file DebugInfoMetadata.h.
References llvm::dyn_cast_or_null(), and getRawAssociated().
|
inline |
Definition at line 1844 of file DebugInfoMetadata.h.
References llvm::cast_or_null(), llvm::DIType::DIType(), and getRawBaseType().
Referenced by hasVectorBeenPadded().
|
inline |
Definition at line 1929 of file DebugInfoMetadata.h.
References llvm::dyn_cast_or_null(), and getRawBitStride().
|
inline |
Definition at line 1880 of file DebugInfoMetadata.h.
References llvm::dyn_cast_or_null(), and getRawDataLocation().
|
inline |
Definition at line 1883 of file DebugInfoMetadata.h.
References llvm::dyn_cast_or_null(), and getRawDataLocation().
|
inline |
Definition at line 1874 of file DebugInfoMetadata.h.
References llvm::DINode::getOperandAs().
Referenced by llvm::DwarfUnit::constructTypeDIE().
|
inline |
Definition at line 1845 of file DebugInfoMetadata.h.
References llvm::cast_or_null(), and getRawElements().
Referenced by calcArraySize(), llvm::DwarfUnit::constructTypeDIE(), hasVectorBeenPadded(), and replaceElements().
|
inline |
Definition at line 1858 of file DebugInfoMetadata.h.
|
inline |
Definition at line 1854 of file DebugInfoMetadata.h.
References llvm::DINode::getStringOperand().
Referenced by llvm::DwarfUnit::constructTypeDIE().
|
static |
Definition at line 1118 of file DebugInfoMetadata.cpp.
References assert(), and Identifier.
|
inline |
Definition at line 1903 of file DebugInfoMetadata.h.
References llvm::dyn_cast_or_null(), and getRawRank().
|
inline |
Definition at line 1908 of file DebugInfoMetadata.h.
References llvm::dyn_cast_or_null(), and getRawRank().
|
inline |
Definition at line 1895 of file DebugInfoMetadata.h.
References llvm::MDNode::getOperand().
Referenced by getAllocated(), and getAllocatedExp().
|
inline |
Definition at line 1912 of file DebugInfoMetadata.h.
References llvm::MDNode::getOperand().
Referenced by getAnnotations().
|
inline |
Definition at line 1886 of file DebugInfoMetadata.h.
References llvm::MDNode::getOperand().
Referenced by getAssociated(), and getAssociatedExp().
|
inline |
Definition at line 1860 of file DebugInfoMetadata.h.
References llvm::MDNode::getOperand().
Referenced by getBaseType().
|
inline |
Definition at line 1926 of file DebugInfoMetadata.h.
References llvm::MDNode::getOperand().
Referenced by getBitStrideConst().
|
inline |
Definition at line 1877 of file DebugInfoMetadata.h.
References llvm::MDNode::getOperand().
Referenced by getDataLocation(), and getDataLocationExp().
|
inline |
Definition at line 1871 of file DebugInfoMetadata.h.
References llvm::MDNode::getOperand().
|
inline |
Definition at line 1861 of file DebugInfoMetadata.h.
References llvm::MDNode::getOperand().
Referenced by getElements().
|
inline |
Definition at line 1868 of file DebugInfoMetadata.h.
References llvm::DINode::getOperandAs().
Referenced by llvm::DwarfUnit::constructTypeDIE().
|
inline |
Definition at line 1902 of file DebugInfoMetadata.h.
References llvm::MDNode::getOperand().
Referenced by getRankConst(), and getRankExp().
|
inline |
Definition at line 1919 of file DebugInfoMetadata.h.
References llvm::MDNode::getOperand().
Referenced by getSpecification().
|
inline |
Definition at line 1865 of file DebugInfoMetadata.h.
References llvm::MDNode::getOperand().
Referenced by getTemplateParams().
|
inline |
Definition at line 1862 of file DebugInfoMetadata.h.
References llvm::MDNode::getOperand().
Referenced by getVTableHolder().
|
inline |
Definition at line 1857 of file DebugInfoMetadata.h.
Referenced by llvm::DwarfUnit::constructTypeDIE().
|
inline |
Definition at line 1922 of file DebugInfoMetadata.h.
References llvm::cast_or_null(), llvm::DIType::DIType(), and getRawSpecification().
Referenced by llvm::DwarfUnit::constructTypeDIE().
|
inline |
Definition at line 1851 of file DebugInfoMetadata.h.
References llvm::cast_or_null(), and getRawTemplateParams().
Referenced by llvm::DwarfUnit::constructTypeDIE().
|
inline |
Definition at line 1848 of file DebugInfoMetadata.h.
References llvm::cast_or_null(), llvm::DIType::DIType(), and getRawVTableHolder().
Referenced by llvm::DwarfUnit::constructTypeDIE().
|
inline |
Replace operands.
If this isUniqued() and not isResolved(), on a uniquing collision this will be RAUW'ed and deleted. Use a TrackingMDRef to keep track of its movement if necessary.
Definition at line 1941 of file DebugInfoMetadata.h.
References assert(), Elements, getElements(), llvm::is_contained(), and llvm::MDNode::replaceOperandWith().
|
inline |
Definition at line 1954 of file DebugInfoMetadata.h.
References llvm::MDNode::replaceOperandWith(), and TemplateParams.
|
inline |
Definition at line 1950 of file DebugInfoMetadata.h.
References llvm::DIType::DIType(), llvm::MDNode::replaceOperandWith(), and VTableHolder.
|
friend |
Definition at line 1608 of file DebugInfoMetadata.h.
References LLVMContextImpl.
Referenced by LLVMContextImpl.
|
friend |
Definition at line 1609 of file DebugInfoMetadata.h.
References AbstractManglingParser< Derived, Alloc >::Ops, AlignInBits, llvm::CallingConv::C, llvm::DIType::DIType(), Flags, Line, MDNode, llvm::DIType::N_OPERANDS, NumExtraInhabitants, llvm::Metadata::Storage, and Tag.
Referenced by MDNode.
| unsigned MDString Metadata unsigned Metadata Metadata uint64_t uint32_t llvm::DICompositeType::AlignInBits |
Definition at line 1749 of file DebugInfoMetadata.h.
Referenced by buildODRType(), DEFINE_MDNODE_GET(), and MDNode.
| unsigned MDString Metadata unsigned Metadata Metadata uint64_t uint32_t uint64_t DIFlags Metadata unsigned std::optional<uint32_t> Metadata Metadata MDString Metadata Metadata Metadata Metadata* llvm::DICompositeType::Allocated = nullptr |
Definition at line 1754 of file DebugInfoMetadata.h.
Referenced by buildODRType(), and DEFINE_MDNODE_GET().
| unsigned MDString Metadata unsigned Metadata Metadata uint64_t uint32_t uint64_t DIFlags Metadata unsigned std::optional<uint32_t> Metadata Metadata MDString Metadata Metadata Metadata Metadata Metadata Metadata* llvm::DICompositeType::Annotations = nullptr |
Definition at line 1755 of file DebugInfoMetadata.h.
Referenced by buildODRType(), and DEFINE_MDNODE_GET().
| unsigned MDString Metadata unsigned Metadata Metadata uint64_t uint32_t uint64_t DIFlags Metadata unsigned std::optional<uint32_t> Metadata Metadata MDString Metadata Metadata Metadata* llvm::DICompositeType::Associated = nullptr |
Definition at line 1754 of file DebugInfoMetadata.h.
Referenced by buildODRType(), and DEFINE_MDNODE_GET().
Definition at line 1748 of file DebugInfoMetadata.h.
Referenced by buildODRType(), and DEFINE_MDNODE_GET().
| unsigned MDString Metadata unsigned Metadata Metadata uint64_t uint32_t uint64_t DIFlags Metadata unsigned std::optional<uint32_t> Metadata Metadata MDString Metadata Metadata Metadata Metadata Metadata Metadata Metadata uint32_t Metadata* llvm::DICompositeType::BitStride |
Definition at line 1757 of file DebugInfoMetadata.h.
Referenced by buildODRType(), and DEFINE_MDNODE_GET().
| unsigned MDString Metadata unsigned Metadata Metadata uint64_t uint32_t uint64_t DIFlags Metadata unsigned std::optional<uint32_t> Metadata Metadata MDString Metadata Metadata* llvm::DICompositeType::DataLocation = nullptr |
Definition at line 1753 of file DebugInfoMetadata.h.
Referenced by buildODRType(), and DEFINE_MDNODE_GET().
| unsigned MDString Metadata unsigned Metadata Metadata uint64_t uint32_t uint64_t DIFlags Metadata unsigned std::optional<uint32_t> Metadata Metadata MDString Metadata* llvm::DICompositeType::Discriminator = nullptr |
Definition at line 1753 of file DebugInfoMetadata.h.
Referenced by buildODRType(), and DEFINE_MDNODE_GET().
| unsigned MDString Metadata unsigned Metadata Metadata uint64_t uint32_t uint64_t DIFlags Metadata* llvm::DICompositeType::Elements |
Definition at line 1750 of file DebugInfoMetadata.h.
Referenced by buildODRType(), DEFINE_MDNODE_GET(), and replaceElements().
| unsigned MDString Metadata unsigned Metadata Metadata uint64_t uint32_t uint64_t DIFlags Metadata unsigned std::optional<uint32_t> llvm::DICompositeType::EnumKind |
Definition at line 1751 of file DebugInfoMetadata.h.
Definition at line 1747 of file DebugInfoMetadata.h.
Referenced by buildODRType(), and DEFINE_MDNODE_GET().
| unsigned MDString Metadata unsigned Metadata Metadata uint64_t uint32_t uint64_t DIFlags llvm::DICompositeType::Flags |
Definition at line 1749 of file DebugInfoMetadata.h.
Referenced by buildODRType(), DEFINE_MDNODE_GET(), and MDNode.
| unsigned MDString Metadata unsigned Metadata Metadata uint64_t uint32_t uint64_t DIFlags Metadata unsigned std::optional<uint32_t> Metadata Metadata MDString* llvm::DICompositeType::Identifier = nullptr |
Definition at line 1752 of file DebugInfoMetadata.h.
Referenced by buildODRType(), DEFINE_MDNODE_GET(), and getODRTypeIfExists().
Definition at line 1747 of file DebugInfoMetadata.h.
Referenced by buildODRType(), DEFINE_MDNODE_GET(), and MDNode.
Definition at line 1747 of file DebugInfoMetadata.h.
Referenced by buildODRType(), and DEFINE_MDNODE_GET().
| unsigned MDString Metadata unsigned Metadata Metadata uint64_t uint32_t uint64_t DIFlags Metadata unsigned std::optional<uint32_t> Metadata Metadata MDString Metadata Metadata Metadata Metadata Metadata Metadata Metadata uint32_t llvm::DICompositeType::NumExtraInhabitants = 0 |
Definition at line 1756 of file DebugInfoMetadata.h.
Referenced by buildODRType(), DEFINE_MDNODE_GET(), and MDNode.
| unsigned MDString Metadata unsigned Metadata Metadata uint64_t uint32_t uint64_t llvm::DICompositeType::OffsetInBits |
Definition at line 1749 of file DebugInfoMetadata.h.
Referenced by buildODRType(), and DEFINE_MDNODE_GET().
| unsigned MDString Metadata unsigned Metadata Metadata uint64_t uint32_t uint64_t DIFlags Metadata unsigned std::optional<uint32_t> Metadata Metadata MDString Metadata Metadata Metadata Metadata Metadata* llvm::DICompositeType::Rank = nullptr |
Definition at line 1755 of file DebugInfoMetadata.h.
Referenced by buildODRType(), and DEFINE_MDNODE_GET().
| unsigned MDString Metadata unsigned Metadata Metadata uint64_t uint32_t uint64_t DIFlags Metadata unsigned llvm::DICompositeType::RuntimeLang |
Definition at line 1750 of file DebugInfoMetadata.h.
Definition at line 1748 of file DebugInfoMetadata.h.
Referenced by buildODRType(), and DEFINE_MDNODE_GET().
Definition at line 1748 of file DebugInfoMetadata.h.
Referenced by buildODRType(), and DEFINE_MDNODE_GET().
| unsigned MDString Metadata unsigned Metadata Metadata uint64_t uint32_t uint64_t DIFlags Metadata unsigned std::optional<uint32_t> Metadata Metadata MDString Metadata Metadata Metadata Metadata Metadata Metadata Metadata* llvm::DICompositeType::Specification = nullptr |
Definition at line 1756 of file DebugInfoMetadata.h.
Referenced by buildODRType(), and DEFINE_MDNODE_GET().
| unsigned llvm::DICompositeType::Tag |
Definition at line 1747 of file DebugInfoMetadata.h.
Referenced by buildODRType(), DEFINE_MDNODE_GET(), and MDNode.
| unsigned MDString Metadata unsigned Metadata Metadata uint64_t uint32_t uint64_t DIFlags Metadata unsigned std::optional<uint32_t> Metadata Metadata* llvm::DICompositeType::TemplateParams = nullptr |
Definition at line 1752 of file DebugInfoMetadata.h.
Referenced by buildODRType(), DEFINE_MDNODE_GET(), and replaceTemplateParams().
| unsigned MDString Metadata unsigned Metadata Metadata uint64_t uint32_t uint64_t DIFlags Metadata unsigned std::optional<uint32_t> Metadata* llvm::DICompositeType::VTableHolder |
Definition at line 1751 of file DebugInfoMetadata.h.
Referenced by buildODRType(), DEFINE_MDNODE_GET(), and replaceVTableHolder().