LLVM 22.0.0git
|
Tagged DWARF-like metadata node. More...
#include "llvm/IR/DebugInfoMetadata.h"
Public Types | |
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 Member Functions | |
static LLVM_ABI DIFlags | getFlag (StringRef Flag) |
static LLVM_ABI StringRef | getFlagString (DIFlags Flag) |
static LLVM_ABI DIFlags | splitFlags (DIFlags Flags, SmallVectorImpl< DIFlags > &SplitFlags) |
Split up a flags bitfield. | |
static bool | classof (const Metadata *MD) |
Static Public Member Functions inherited from llvm::MDNode | |
static MDTuple * | get (LLVMContext &Context, ArrayRef< Metadata * > MDs) |
static MDTuple * | getIfExists (LLVMContext &Context, ArrayRef< Metadata * > MDs) |
static MDTuple * | getDistinct (LLVMContext &Context, ArrayRef< Metadata * > MDs) |
static TempMDTuple | getTemporary (LLVMContext &Context, ArrayRef< Metadata * > MDs) |
static LLVM_ABI void | deleteTemporary (MDNode *N) |
Deallocate a node created by getTemporary. | |
template<class T> | |
static std::enable_if_t< std::is_base_of< MDNode, T >::value, T * > | replaceWithPermanent (std::unique_ptr< T, TempMDNodeDeleter > N) |
Replace a temporary node with a permanent one. | |
template<class T> | |
static std::enable_if_t< std::is_base_of< MDNode, T >::value, T * > | replaceWithUniqued (std::unique_ptr< T, TempMDNodeDeleter > N) |
Replace a temporary node with a uniqued one. | |
template<class T> | |
static std::enable_if_t< std::is_base_of< MDNode, T >::value, T * > | replaceWithDistinct (std::unique_ptr< T, TempMDNodeDeleter > N) |
Replace a temporary node with a distinct one. | |
static bool | classof (const Metadata *MD) |
Methods for support type inquiry through isa, cast, and dyn_cast: | |
static LLVM_ABI MDNode * | concatenate (MDNode *A, MDNode *B) |
Methods for metadata merging. | |
static LLVM_ABI MDNode * | intersect (MDNode *A, MDNode *B) |
static LLVM_ABI MDNode * | getMostGenericTBAA (MDNode *A, MDNode *B) |
static LLVM_ABI MDNode * | getMostGenericFPMath (MDNode *A, MDNode *B) |
static LLVM_ABI MDNode * | getMostGenericRange (MDNode *A, MDNode *B) |
static LLVM_ABI MDNode * | getMostGenericNoaliasAddrspace (MDNode *A, MDNode *B) |
static LLVM_ABI MDNode * | getMostGenericAliasScope (MDNode *A, MDNode *B) |
static LLVM_ABI MDNode * | getMostGenericAlignmentOrDereferenceable (MDNode *A, MDNode *B) |
static LLVM_ABI MDNode * | getMergedProfMetadata (MDNode *A, MDNode *B, const Instruction *AInstr, const Instruction *BInstr) |
Merge !prof metadata from two instructions. | |
static LLVM_ABI MDNode * | getMergedMemProfMetadata (MDNode *A, MDNode *B) |
static LLVM_ABI MDNode * | getMergedCallsiteMetadata (MDNode *A, MDNode *B) |
static LLVM_ABI MDNode * | getMergedCalleeTypeMetadata (const MDNode *A, const MDNode *B) |
Static Protected Member Functions | |
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) |
Friends | |
class | LLVMContextImpl |
class | MDNode |
Additional Inherited Members | |
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 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 |
Tagged DWARF-like metadata node.
A metadata node with a DWARF tag (i.e., a constant named DW_TAG_*
, defined in llvm/BinaryFormat/Dwarf.h). Called DINode because it's potentially used for non-DWARF output.
Uses the SubclassData16 Metadata slot.
Definition at line 135 of file DebugInfoMetadata.h.
enum llvm::DINode::DIFlags : uint32_t |
Debug info flags.
The three accessibility flags are mutually exclusive and rolled together in the first two bits.
Enumerator | |
---|---|
FlagAccessibility | |
FlagPtrToMemberRep |
Definition at line 174 of file DebugInfoMetadata.h.
|
inlineprotected |
Definition at line 140 of file DebugInfoMetadata.h.
References llvm::CallingConv::C, llvm::Metadata::Storage, and llvm::Tag.
Referenced by llvm::DIImportedEntity::DEFINE_MDNODE_GET(), llvm::DIScope::DIScope(), llvm::DITemplateParameter::DITemplateParameter(), llvm::DIVariable::DIVariable(), llvm::DIImportedEntity::MDNode, and llvm::GenericDINode::MDNode.
|
protecteddefault |
Definition at line 194 of file DebugInfoMetadata.h.
References llvm::Metadata::getMetadataID().
|
inlinestaticprotected |
Definition at line 158 of file DebugInfoMetadata.h.
References llvm::StringRef::empty(), and llvm::MDString::get().
Referenced by llvm::DIBasicType::getImpl().
|
static |
Definition at line 459 of file DebugInfoMetadata.cpp.
References llvm::StringSwitch< T, R >::Default().
Referenced by llvm::LLParser::parseMDField().
Definition at line 466 of file DebugInfoMetadata.cpp.
|
inlineprotected |
Definition at line 148 of file DebugInfoMetadata.h.
References llvm::cast_or_null(), llvm::MDNode::getOperand(), and I.
Referenced by llvm::DICompositeType::getDiscriminator(), llvm::DICompileUnit::getRawFlags(), llvm::DIObjCProperty::getRawGetterName(), llvm::GenericDINode::getRawHeader(), llvm::DICompositeType::getRawIdentifier(), llvm::DIGlobalVariable::getRawLinkageName(), llvm::DICommonBlock::getRawName(), llvm::DIEnumerator::getRawName(), llvm::DILabel::getRawName(), llvm::DINamespace::getRawName(), llvm::DIObjCProperty::getRawName(), llvm::DITemplateParameter::getRawName(), llvm::DIType::getRawName(), llvm::DIVariable::getRawName(), llvm::DICompileUnit::getRawProducer(), llvm::DICompileUnit::getRawSDK(), llvm::DIObjCProperty::getRawSetterName(), llvm::DICompileUnit::getRawSplitDebugFilename(), llvm::DICompileUnit::getRawSysRoot(), getStringOperand(), and llvm::DIGlobalVariable::getTemplateParams().
Definition at line 152 of file DebugInfoMetadata.h.
References getOperandAs(), and I.
Referenced by llvm::DIGlobalVariable::getDisplayName(), llvm::DICompileUnit::getFlags(), llvm::DIObjCProperty::getGetterName(), llvm::GenericDINode::getHeader(), llvm::DICompositeType::getIdentifier(), llvm::DIGlobalVariable::getLinkageName(), llvm::DICommonBlock::getName(), llvm::DIEnumerator::getName(), llvm::DILabel::getName(), llvm::DINamespace::getName(), llvm::DIObjCProperty::getName(), llvm::DITemplateParameter::getName(), llvm::DIType::getName(), llvm::DIVariable::getName(), llvm::DICompileUnit::getProducer(), llvm::DICompileUnit::getSDK(), llvm::DIObjCProperty::getSetterName(), llvm::DICompileUnit::getSplitDebugFilename(), and llvm::DICompileUnit::getSysRoot().
dwarf::Tag DINode::getTag | ( | ) | const |
Definition at line 457 of file DebugInfoMetadata.cpp.
References llvm::Metadata::SubclassData16.
Referenced by llvm::DIBasicType::cloneImpl(), llvm::BTFDebug::endModule(), llvm::DIType::getAlignInBits(), llvm::DIDerivedType::getClassType(), llvm::DIDerivedType::getConstant(), llvm::DIDerivedType::getDiscriminantValue(), llvm::DwarfCompileUnit::getOrCreateGlobalVariableDIE(), llvm::DwarfUnit::getOrCreateStaticMemberDIE(), llvm::DIDerivedType::getStorageOffsetInBits(), llvm::DIDerivedType::getVBPtrOffset(), stripQualifiers(), and stripQualifiers().
|
inlineprotected |
Allow subclasses to mutate the tag.
Definition at line 165 of file DebugInfoMetadata.h.
References llvm::Metadata::SubclassData16, and llvm::Tag.
Referenced by llvm::DIType::mutate().
|
static |
Split up a flags bitfield.
Split Flags
into SplitFlags
, a vector of its components. Returns any remaining (unrecognized) bits.
Definition at line 476 of file DebugInfoMetadata.cpp.
References A(), FlagAccessibility, FlagPtrToMemberRep, and llvm::SmallVectorTemplateBase< T, bool >::push_back().
|
friend |
Definition at line 136 of file DebugInfoMetadata.h.
References LLVMContextImpl.
Referenced by LLVMContextImpl.
|
friend |