LLVM: llvm::DICompileUnit Class Reference (original) (raw)
Compile unit. More...
#include "[llvm/IR/DebugInfoMetadata.h](DebugInfoMetadata%5F8h%5Fsource.html)"
| 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 LLVM_ABI std::optional< DebugEmissionKind > | getEmissionKind (StringRef Str) |
| static LLVM_ABI const char * | emissionKindString (DebugEmissionKind EK) |
| static LLVM_ABI std::optional< DebugNameTableKind > | getNameTableKind (StringRef Str) |
| static LLVM_ABI 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 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 LLVM_ABI CaptureComponents | toCaptureComponents (const MDNode *MD) |
| Convert !captures metadata to CaptureComponents. MD may be nullptr. | |
| static LLVM_ABI MDNode * | fromCaptureComponents (LLVMContext &Ctx, CaptureComponents CC) |
| Convert CaptureComponents to !captures metadata. |
| 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 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 | |
| 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 |
Compile unit.
Definition at line 2046 of file DebugInfoMetadata.h.
◆ DebugEmissionKind
| Enumerator |
|---|
| NoDebug |
| FullDebug |
| LineTablesOnly |
| DebugDirectivesOnly |
| LastEmissionKind |
Definition at line 2051 of file DebugInfoMetadata.h.
◆ DebugNameTableKind
◆ classof()
◆ clone()
◆ DEFINE_MDNODE_GET_DISTINCT_TEMPORARY()
| llvm::DICompileUnit::DEFINE_MDNODE_GET_DISTINCT_TEMPORARY | ( | DICompileUnit | , |
|---|---|---|---|
| (DISourceLanguageName 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) | ) |
References EnumTypes, File, Flags, GlobalVariables, ImportedEntities, Macros, Producer, RetainedTypes, SDK, SplitDebugFilename, and SysRoot.
◆ emissionKindString()
| const char * DICompileUnit::emissionKindString ( DebugEmissionKind EK) | static |
|---|
◆ get()
| void llvm::DICompileUnit::get ( ) | staticdelete |
|---|
◆ getDebugInfoForProfiling()
| bool llvm::DICompileUnit::getDebugInfoForProfiling ( ) const | inline |
|---|
◆ getDWOId()
| uint64_t llvm::DICompileUnit::getDWOId ( ) const | inline |
|---|
◆ getEmissionKind() [1/2]
| DebugEmissionKind llvm::DICompileUnit::getEmissionKind ( ) const | inline |
|---|
◆ getEmissionKind() [2/2]
| std::optional< DICompileUnit::DebugEmissionKind > DICompileUnit::getEmissionKind ( StringRef Str) | static |
|---|
◆ getEnumTypes()
| DICompositeTypeArray llvm::DICompileUnit::getEnumTypes ( ) const | inline |
|---|
◆ getFlags()
| StringRef llvm::DICompileUnit::getFlags ( ) const | inline |
|---|
◆ getGlobalVariables()
| DIGlobalVariableExpressionArray llvm::DICompileUnit::getGlobalVariables ( ) const | inline |
|---|
◆ getIfExists()
| void llvm::DICompileUnit::getIfExists ( ) | staticdelete |
|---|
◆ getImportedEntities()
| DIImportedEntityArray llvm::DICompileUnit::getImportedEntities ( ) const | inline |
|---|
◆ getMacros()
| DIMacroNodeArray llvm::DICompileUnit::getMacros ( ) const | inline |
|---|
◆ getNameTableKind() [1/2]
| DebugNameTableKind llvm::DICompileUnit::getNameTableKind ( ) const | inline |
|---|
◆ getNameTableKind() [2/2]
| std::optional< DICompileUnit::DebugNameTableKind > DICompileUnit::getNameTableKind ( StringRef Str) | static |
|---|
◆ getProducer()
| StringRef llvm::DICompileUnit::getProducer ( ) const | inline |
|---|
◆ getRangesBaseAddress()
| bool llvm::DICompileUnit::getRangesBaseAddress ( ) const | inline |
|---|
◆ getRawEnumTypes()
| Metadata * llvm::DICompileUnit::getRawEnumTypes ( ) const | inline |
|---|
◆ getRawFlags()
| MDString * llvm::DICompileUnit::getRawFlags ( ) const | inline |
|---|
◆ getRawGlobalVariables()
| Metadata * llvm::DICompileUnit::getRawGlobalVariables ( ) const | inline |
|---|
◆ getRawImportedEntities()
| Metadata * llvm::DICompileUnit::getRawImportedEntities ( ) const | inline |
|---|
◆ getRawMacros()
| Metadata * llvm::DICompileUnit::getRawMacros ( ) const | inline |
|---|
◆ getRawProducer()
| MDString * llvm::DICompileUnit::getRawProducer ( ) const | inline |
|---|
◆ getRawRetainedTypes()
| Metadata * llvm::DICompileUnit::getRawRetainedTypes ( ) const | inline |
|---|
◆ getRawSDK()
| MDString * llvm::DICompileUnit::getRawSDK ( ) const | inline |
|---|
◆ getRawSplitDebugFilename()
| MDString * llvm::DICompileUnit::getRawSplitDebugFilename ( ) const | inline |
|---|
◆ getRawSysRoot()
| MDString * llvm::DICompileUnit::getRawSysRoot ( ) const | inline |
|---|
◆ getRetainedTypes()
| DIScopeArray llvm::DICompileUnit::getRetainedTypes ( ) const | inline |
|---|
◆ getRuntimeVersion()
| unsigned llvm::DICompileUnit::getRuntimeVersion ( ) const | inline |
|---|
◆ getSDK()
| StringRef llvm::DICompileUnit::getSDK ( ) const | inline |
|---|
◆ getSourceLanguage()
◆ getSplitDebugFilename()
| StringRef llvm::DICompileUnit::getSplitDebugFilename ( ) const | inline |
|---|
◆ getSplitDebugInlining()
| bool llvm::DICompileUnit::getSplitDebugInlining ( ) const | inline |
|---|
◆ getSysRoot()
| StringRef llvm::DICompileUnit::getSysRoot ( ) const | inline |
|---|
◆ isDebugDirectivesOnly()
| bool llvm::DICompileUnit::isDebugDirectivesOnly ( ) const | inline |
|---|
◆ isOptimized()
| bool llvm::DICompileUnit::isOptimized ( ) const | inline |
|---|
◆ nameTableKindString()
| const char * DICompileUnit::nameTableKindString ( DebugNameTableKind PK) | static |
|---|
◆ replaceEnumTypes()
| void llvm::DICompileUnit::replaceEnumTypes ( DICompositeTypeArray N) | inline |
|---|
◆ replaceGlobalVariables()
| void llvm::DICompileUnit::replaceGlobalVariables ( DIGlobalVariableExpressionArray N) | inline |
|---|
◆ replaceImportedEntities()
| void llvm::DICompileUnit::replaceImportedEntities ( DIImportedEntityArray N) | inline |
|---|
◆ replaceMacros()
| void llvm::DICompileUnit::replaceMacros ( DIMacroNodeArray N) | inline |
|---|
◆ replaceRetainedTypes()
| void llvm::DICompileUnit::replaceRetainedTypes ( DITypeArray N) | inline |
|---|
◆ setDWOId()
| void llvm::DICompileUnit::setDWOId ( uint64_t DwoId) | inline |
|---|
◆ setSplitDebugInlining()
| void llvm::DICompileUnit::setSplitDebugInlining ( bool SplitDebugInlining) | inline |
|---|
◆ LLVMContextImpl
◆ MDNode
◆ DebugInfoForProfiling [1/2]
◆ DebugInfoForProfiling [2/2]
◆ DWOId [1/2]
◆ DWOId [2/2]
◆ EmissionKind [1/2]
◆ EmissionKind [2/2]
◆ EnumTypes [1/2]
◆ EnumTypes [2/2]
◆ File [1/2]
◆ File [2/2]
◆ Flags [1/2]
◆ Flags [2/2]
◆ GlobalVariables [1/2]
◆ GlobalVariables [2/2]
◆ ImportedEntities [1/2]
◆ ImportedEntities [2/2]
◆ IsOptimized [1/2]
◆ IsOptimized [2/2]
◆ Macros [1/2]
◆ Macros [2/2]
◆ NameTableKind [1/2]
◆ NameTableKind [2/2]
◆ Producer [1/2]
◆ Producer [2/2]
◆ RangesBaseAddress [1/2]
◆ RangesBaseAddress [2/2]
◆ RetainedTypes [1/2]
◆ RetainedTypes [2/2]
◆ RuntimeVersion [1/2]
◆ RuntimeVersion [2/2]
◆ SDK
◆ SourceLanguage
◆ SplitDebugFilename [1/2]
◆ SplitDebugFilename [2/2]
◆ SplitDebugInlining [1/2]
◆ SplitDebugInlining [2/2]
◆ SysRoot [1/2]
◆ SysRoot [2/2]
The documentation for this class was generated from the following files:
- include/llvm/IR/DebugInfoMetadata.h
- lib/IR/DebugInfoMetadata.cpp