LLVM 20.0.0git
|
Compile unit. More...
#include "llvm/IR/DebugInfoMetadata.h"
Public Types | |
enum | DebugEmissionKind : unsigned { NoDebug = 0 , FullDebug , LineTablesOnly , DebugDirectivesOnly , LastEmissionKind = DebugDirectivesOnly } |
enum class | DebugNameTableKind : unsigned { Default = 0 , GNU = 1 , None = 2 , Apple = 3 , LastDebugNameTableKind = Apple } |
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 Member Functions | |
static std::optional< DebugEmissionKind > | getEmissionKind (StringRef Str) |
static const char * | emissionKindString (DebugEmissionKind EK) |
static std::optional< DebugNameTableKind > | getNameTableKind (StringRef Str) |
static const char * | nameTableKindString (DebugNameTableKind PK) |
static void | get ()=delete |
static void | getIfExists ()=delete |
static bool | classof (const Metadata *MD) |
Static Public Member Functions inherited from llvm::DIScope | |
static bool | classof (const Metadata *MD) |
Static Public Member Functions inherited from llvm::DINode | |
static DIFlags | getFlag (StringRef Flag) |
static StringRef | getFlagString (DIFlags Flag) |
static 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 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 MDNode * | concatenate (MDNode *A, MDNode *B) |
Methods for metadata merging. | |
static MDNode * | intersect (MDNode *A, MDNode *B) |
static MDNode * | getMostGenericTBAA (MDNode *A, MDNode *B) |
static MDNode * | getMostGenericFPMath (MDNode *A, MDNode *B) |
static MDNode * | getMostGenericRange (MDNode *A, MDNode *B) |
static MDNode * | getMostGenericAliasScope (MDNode *A, MDNode *B) |
static MDNode * | getMostGenericAlignmentOrDereferenceable (MDNode *A, MDNode *B) |
static MDNode * | getMergedProfMetadata (MDNode *A, MDNode *B, const Instruction *AInstr, const Instruction *BInstr) |
Merge !prof metadata from two instructions. | |
Friends | |
class | LLVMContextImpl |
class | MDNode |
Additional Inherited Members | |
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::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=std::nullopt) | |
~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 | |
MDNode (LLVMContext &Context, unsigned ID, StorageType Storage, ArrayRef< Metadata * > Ops1, ArrayRef< Metadata * > Ops2=std::nullopt) | |
~MDNode ()=default | |
void * | operator new (size_t Size, size_t NumOps, StorageType Storage) |
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. | |
void | dropAllReferences () |
MDOperand * | mutable_begin () |
MDOperand * | mutable_end () |
mutable_op_range | mutable_operands () |
void | setOperand (unsigned I, Metadata *New) |
Set an operand. | |
unsigned | getNumUnresolved () const |
void | setNumUnresolved (unsigned N) |
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 |
Compile unit.
Definition at line 1432 of file DebugInfoMetadata.h.
Enumerator | |
---|---|
NoDebug | |
FullDebug | |
LineTablesOnly | |
DebugDirectivesOnly | |
LastEmissionKind |
Definition at line 1437 of file DebugInfoMetadata.h.
|
strong |
Enumerator | |
---|---|
Default | |
GNU | |
None | |
Apple | |
LastDebugNameTableKind |
Definition at line 1445 of file DebugInfoMetadata.h.
Definition at line 1628 of file DebugInfoMetadata.h.
References llvm::Metadata::getMetadataID().
|
inline |
Definition at line 1553 of file DebugInfoMetadata.h.
llvm::DICompileUnit::DEFINE_MDNODE_GET_DISTINCT_TEMPORARY | ( | DICompileUnit | , |
(unsigned SourceLanguage, DIFile *File, StringRef Producer, bool IsOptimized, StringRef Flags, unsigned RuntimeVersion, StringRef SplitDebugFilename, DebugEmissionKind EmissionKind, DICompositeTypeArray EnumTypes, DIScopeArray RetainedTypes, DIGlobalVariableExpressionArray GlobalVariables, DIImportedEntityArray ImportedEntities, DIMacroNodeArray Macros, uint64_t DWOId, bool SplitDebugInlining, bool DebugInfoForProfiling, DebugNameTableKind NameTableKind, bool RangesBaseAddress, StringRef SysRoot, StringRef SDK) | , | ||
(SourceLanguage, File, Producer, IsOptimized, Flags, RuntimeVersion, SplitDebugFilename, EmissionKind, EnumTypes, RetainedTypes, GlobalVariables, ImportedEntities, Macros, DWOId, SplitDebugInlining, DebugInfoForProfiling,(unsigned) NameTableKind, RangesBaseAddress, SysRoot, SDK) | |||
) |
|
static |
Definition at line 995 of file DebugInfoMetadata.cpp.
References DebugDirectivesOnly, FullDebug, LineTablesOnly, and NoDebug.
|
staticdelete |
|
inline |
Definition at line 1564 of file DebugInfoMetadata.h.
Referenced by llvm::DwarfUnit::applySubprogramAttributes(), and llvm::DwarfDebug::endFunctionImpl().
|
inline |
Definition at line 1587 of file DebugInfoMetadata.h.
|
inline |
Definition at line 1558 of file DebugInfoMetadata.h.
Referenced by llvm::LLParser::parseMDField().
|
static |
Definition at line 976 of file DebugInfoMetadata.cpp.
References llvm::StringSwitch< T, R >::Case(), DebugDirectivesOnly, llvm::StringSwitch< T, R >::Default(), FullDebug, LineTablesOnly, and NoDebug.
Referenced by llvm::DwarfDebug::endFunctionImpl(), and llvm::DwarfCompileUnit::includeMinimalInlineScopes().
|
inline |
Definition at line 1572 of file DebugInfoMetadata.h.
References getRawEnumTypes().
Referenced by llvm::DIBuilder::DIBuilder().
|
inline |
Definition at line 1570 of file DebugInfoMetadata.h.
References llvm::DINode::getStringOperand().
|
inline |
Definition at line 1578 of file DebugInfoMetadata.h.
References getRawGlobalVariables().
Referenced by llvm::DIBuilder::DIBuilder().
|
staticdelete |
|
inline |
Definition at line 1581 of file DebugInfoMetadata.h.
References getRawImportedEntities().
Referenced by llvm::DIBuilder::DIBuilder().
|
inline |
Definition at line 1584 of file DebugInfoMetadata.h.
References getRawMacros().
Referenced by llvm::DIBuilder::DIBuilder().
|
inline |
Definition at line 1565 of file DebugInfoMetadata.h.
Referenced by llvm::LLParser::parseMDField().
|
static |
Definition at line 986 of file DebugInfoMetadata.cpp.
References Apple, llvm::StringSwitch< T, R >::Case(), llvm::StringSwitch< T, R >::Default(), Default, GNU, and None.
Referenced by llvm::DwarfCompileUnit::addLocationAttribute(), llvm::DwarfCompileUnit::constructImportedEntityDIE(), llvm::DwarfCompileUnit::constructInlinedScopeDIE(), llvm::DwarfCompileUnit::finishEntityDefinition(), llvm::DwarfUnit::getOrCreateNameSpace(), llvm::DwarfCompileUnit::hasDwarfPubSections(), and llvm::DwarfCompileUnit::updateSubprogramScopeDIE().
|
inline |
Definition at line 1569 of file DebugInfoMetadata.h.
References llvm::DINode::getStringOperand().
|
inline |
Definition at line 1568 of file DebugInfoMetadata.h.
|
inline |
Definition at line 1601 of file DebugInfoMetadata.h.
References llvm::MDNode::getOperand().
Referenced by getEnumTypes().
|
inline |
Definition at line 1597 of file DebugInfoMetadata.h.
|
inline |
Definition at line 1603 of file DebugInfoMetadata.h.
References llvm::MDNode::getOperand().
Referenced by getGlobalVariables().
|
inline |
Definition at line 1604 of file DebugInfoMetadata.h.
References llvm::MDNode::getOperand().
Referenced by getImportedEntities().
|
inline |
Definition at line 1605 of file DebugInfoMetadata.h.
References llvm::MDNode::getOperand().
Referenced by getMacros().
|
inline |
Definition at line 1596 of file DebugInfoMetadata.h.
|
inline |
Definition at line 1602 of file DebugInfoMetadata.h.
References llvm::MDNode::getOperand().
Referenced by getRetainedTypes().
|
inline |
Definition at line 1607 of file DebugInfoMetadata.h.
|
inline |
Definition at line 1598 of file DebugInfoMetadata.h.
|
inline |
Definition at line 1606 of file DebugInfoMetadata.h.
|
inline |
Definition at line 1575 of file DebugInfoMetadata.h.
References getRawRetainedTypes().
Referenced by llvm::DIBuilder::DIBuilder().
|
inline |
Definition at line 1557 of file DebugInfoMetadata.h.
|
inline |
Definition at line 1594 of file DebugInfoMetadata.h.
References llvm::DINode::getStringOperand().
|
inline |
Definition at line 1555 of file DebugInfoMetadata.h.
Referenced by llvm::DwarfUnit::getLanguage().
|
inline |
Definition at line 1571 of file DebugInfoMetadata.h.
References llvm::DINode::getStringOperand().
|
inline |
Definition at line 1589 of file DebugInfoMetadata.h.
Referenced by llvm::DwarfDebug::endFunctionImpl().
|
inline |
Definition at line 1593 of file DebugInfoMetadata.h.
References llvm::DINode::getStringOperand().
|
inline |
Definition at line 1561 of file DebugInfoMetadata.h.
References DebugDirectivesOnly.
Referenced by llvm::DwarfUnit::addString(), llvm::DwarfFile::emitUnit(), llvm::DwarfDebug::endFunctionImpl(), llvm::DwarfCompileUnit::hasDwarfPubSections(), and llvm::DwarfCompileUnit::initStmtList().
|
inline |
Definition at line 1556 of file DebugInfoMetadata.h.
|
static |
|
inline |
Replace arrays.
If this isUniqued() and not isResolved(), it will be RAUW'ed and deleted on a uniquing collision. In practice, uniquing collisions on DICompileUnit should be fairly rare.
Definition at line 1615 of file DebugInfoMetadata.h.
References N, and llvm::MDNode::replaceOperandWith().
Referenced by llvm::DIBuilder::finalize().
|
inline |
Definition at line 1619 of file DebugInfoMetadata.h.
References N, and llvm::MDNode::replaceOperandWith().
Referenced by llvm::DIBuilder::finalize().
|
inline |
Definition at line 1622 of file DebugInfoMetadata.h.
References N, and llvm::MDNode::replaceOperandWith().
Referenced by llvm::DIBuilder::finalize().
|
inline |
Definition at line 1625 of file DebugInfoMetadata.h.
References N, and llvm::MDNode::replaceOperandWith().
Referenced by llvm::DIBuilder::finalize().
|
inline |
Definition at line 1618 of file DebugInfoMetadata.h.
References N, and llvm::MDNode::replaceOperandWith().
Referenced by llvm::DIBuilder::finalize().
|
inline |
Definition at line 1588 of file DebugInfoMetadata.h.
|
inline |
Definition at line 1590 of file DebugInfoMetadata.h.
|
friend |
Definition at line 1433 of file DebugInfoMetadata.h.
|
friend |
Definition at line 1434 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool llvm::DICompileUnit::DebugInfoForProfiling |
Definition at line 1545 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString llvm::DICompileUnit::DebugInfoForProfiling |
Definition at line 1551 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t llvm::DICompileUnit::DWOId |
Definition at line 1544 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString llvm::DICompileUnit::DWOId |
Definition at line 1550 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned llvm::DICompileUnit::EmissionKind |
Definition at line 1542 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString llvm::DICompileUnit::EmissionKind |
Definition at line 1549 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata* llvm::DICompileUnit::EnumTypes |
Definition at line 1542 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString llvm::DICompileUnit::EnumTypes |
Definition at line 1549 of file DebugInfoMetadata.h.
Definition at line 1540 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString llvm::DICompileUnit::File |
Definition at line 1548 of file DebugInfoMetadata.h.
Definition at line 1541 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString llvm::DICompileUnit::Flags |
Definition at line 1548 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata* llvm::DICompileUnit::GlobalVariables |
Definition at line 1543 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString llvm::DICompileUnit::GlobalVariables |
Definition at line 1550 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata* llvm::DICompileUnit::ImportedEntities |
Definition at line 1544 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString llvm::DICompileUnit::ImportedEntities |
Definition at line 1550 of file DebugInfoMetadata.h.
Definition at line 1541 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString llvm::DICompileUnit::IsOptimized |
Definition at line 1548 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata* llvm::DICompileUnit::Macros |
Definition at line 1544 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString llvm::DICompileUnit::Macros |
Definition at line 1550 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned llvm::DICompileUnit::NameTableKind |
Definition at line 1546 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString llvm::DICompileUnit::NameTableKind |
Definition at line 1551 of file DebugInfoMetadata.h.
Definition at line 1540 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString llvm::DICompileUnit::Producer |
Definition at line 1548 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool llvm::DICompileUnit::RangesBaseAddress |
Definition at line 1546 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString llvm::DICompileUnit::RangesBaseAddress |
Definition at line 1551 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata* llvm::DICompileUnit::RetainedTypes |
Definition at line 1543 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString llvm::DICompileUnit::RetainedTypes |
Definition at line 1549 of file DebugInfoMetadata.h.
Definition at line 1541 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString llvm::DICompileUnit::RuntimeVersion |
Definition at line 1548 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString* llvm::DICompileUnit::SDK |
Definition at line 1547 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString llvm::DICompileUnit::SourceLanguage |
Definition at line 1548 of file DebugInfoMetadata.h.
Definition at line 1542 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString llvm::DICompileUnit::SplitDebugFilename |
Definition at line 1549 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool llvm::DICompileUnit::SplitDebugInlining |
Definition at line 1545 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString llvm::DICompileUnit::SplitDebugInlining |
Definition at line 1550 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString* llvm::DICompileUnit::SysRoot |
Definition at line 1546 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString llvm::DICompileUnit::SysRoot |
Definition at line 1551 of file DebugInfoMetadata.h.