LLVM 22.0.0git
llvm::DICompileUnit Class Reference

Compile unit. More...

#include "llvm/IR/DebugInfoMetadata.h"

Inheritance diagram for llvm::DICompileUnit:
[legend]

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 Member Functions

 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)) DEFINE_MDNODE_GET_DISTINCT_TEMPORARY(DICompileUnit
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString SDK TempDICompileUnit clone () const
unsigned getSourceLanguage () const
bool isOptimized () const
unsigned getRuntimeVersion () const
DebugEmissionKind getEmissionKind () const
bool isDebugDirectivesOnly () const
bool getDebugInfoForProfiling () const
DebugNameTableKind getNameTableKind () const
bool getRangesBaseAddress () const
StringRef getProducer () const
StringRef getFlags () const
StringRef getSplitDebugFilename () const
DICompositeTypeArray getEnumTypes () const
DIScopeArray getRetainedTypes () const
DIGlobalVariableExpressionArray getGlobalVariables () const
DIImportedEntityArray getImportedEntities () const
DIMacroNodeArray getMacros () const
uint64_t getDWOId () const
void setDWOId (uint64_t DwoId)
bool getSplitDebugInlining () const
void setSplitDebugInlining (bool SplitDebugInlining)
StringRef getSysRoot () const
StringRef getSDK () const
MDStringgetRawProducer () const
MDStringgetRawFlags () const
MDStringgetRawSplitDebugFilename () const
MetadatagetRawEnumTypes () const
MetadatagetRawRetainedTypes () const
MetadatagetRawGlobalVariables () const
MetadatagetRawImportedEntities () const
MetadatagetRawMacros () const
MDStringgetRawSysRoot () const
MDStringgetRawSDK () const
void replaceEnumTypes (DICompositeTypeArray N)
 Replace arrays.
void replaceRetainedTypes (DITypeArray N)
void replaceGlobalVariables (DIGlobalVariableExpressionArray N)
void replaceImportedEntities (DIImportedEntityArray N)
void replaceMacros (DIMacroNodeArray N)
Public Member Functions inherited from llvm::DIScope
DIFilegetFile () const
StringRef getFilename () const
StringRef getDirectory () const
std::optional< StringRefgetSource () const
LLVM_ABI StringRef getName () const
LLVM_ABI DIScopegetScope () const
MetadatagetRawFile () const
 Return the raw underlying file.
Public Member Functions inherited from llvm::DINode
LLVM_ABI dwarf::Tag getTag () const
Public Member Functions inherited from llvm::MDNode
 MDNode (const MDNode &)=delete
void operator= (const MDNode &)=delete
void * operator new (size_t)=delete
LLVM_ABI TempMDNode clone () const
 Create a (temporary) clone of this.
LLVMContextgetContext () const
LLVM_ABI void replaceOperandWith (unsigned I, Metadata *New)
 Replace a specific operand.
bool isResolved () const
 Check if node is fully resolved.
bool isUniqued () const
bool isDistinct () const
bool isTemporary () const
bool isReplaceable () const
bool isAlwaysReplaceable () const
bool hasGeneralizedMDString ()
 Check if this is a valid generalized type metadata node.
unsigned getNumTemporaryUses () const
void replaceAllUsesWith (Metadata *MD)
 RAUW a temporary.
LLVM_ABI void resolveCycles ()
 Resolve cycles.
LLVM_ABI void resolve ()
 Resolve a unique, unresolved node.
op_iterator op_begin () const
op_iterator op_end () const
ArrayRef< MDOperandoperands () const
const MDOperandgetOperand (unsigned I) const
unsigned getNumOperands () const
 Return number of MDNode operands.
LLVM_ABI bool isTBAAVtableAccess () const
 Check whether MDNode is a vtable access.
LLVM_ABI void printTree (raw_ostream &OS, const Module *M=nullptr) const
 Print in tree shape.
LLVM_ABI void printTree (raw_ostream &OS, ModuleSlotTracker &MST, const Module *M=nullptr) const
LLVM_ABI void dumpTree () const
 User-friendly dump in tree shape.
LLVM_ABI void dumpTree (const Module *M) const

Static Public Member Functions

static LLVM_ABI std::optional< DebugEmissionKindgetEmissionKind (StringRef Str)
static LLVM_ABI const charemissionKindString (DebugEmissionKind EK)
static LLVM_ABI std::optional< DebugNameTableKindgetNameTableKind (StringRef Str)
static LLVM_ABI const charnameTableKindString (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 MDTupleget (LLVMContext &Context, ArrayRef< Metadata * > MDs)
static MDTuplegetIfExists (LLVMContext &Context, ArrayRef< Metadata * > MDs)
static MDTuplegetDistinct (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 MDNodeconcatenate (MDNode *A, MDNode *B)
 Methods for metadata merging.
static LLVM_ABI MDNodeintersect (MDNode *A, MDNode *B)
static LLVM_ABI MDNodegetMostGenericTBAA (MDNode *A, MDNode *B)
static LLVM_ABI MDNodegetMostGenericFPMath (MDNode *A, MDNode *B)
static LLVM_ABI MDNodegetMostGenericRange (MDNode *A, MDNode *B)
static LLVM_ABI MDNodegetMostGenericNoaliasAddrspace (MDNode *A, MDNode *B)
static LLVM_ABI MDNodegetMostGenericAliasScope (MDNode *A, MDNode *B)
static LLVM_ABI MDNodegetMostGenericAlignmentOrDereferenceable (MDNode *A, MDNode *B)
static LLVM_ABI MDNodegetMergedProfMetadata (MDNode *A, MDNode *B, const Instruction *AInstr, const Instruction *BInstr)
 Merge !prof metadata from two instructions.
static LLVM_ABI MDNodegetMergedMemProfMetadata (MDNode *A, MDNode *B)
static LLVM_ABI MDNodegetMergedCallsiteMetadata (MDNode *A, MDNode *B)
static LLVM_ABI MDNodegetMergedCalleeTypeMetadata (const MDNode *A, const MDNode *B)

Public Attributes

unsigned MetadataFile
unsigned Metadata MDStringProducer
unsigned Metadata MDString bool IsOptimized
unsigned Metadata MDString bool MDStringFlags
unsigned Metadata MDString bool MDString unsigned RuntimeVersion
unsigned Metadata MDString bool MDString unsigned MDStringSplitDebugFilename
unsigned Metadata MDString bool MDString unsigned MDString unsigned EmissionKind
unsigned Metadata MDString bool MDString unsigned MDString unsigned MetadataEnumTypes
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata MetadataRetainedTypes
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata MetadataGlobalVariables
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata MetadataImportedEntities
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata MetadataMacros
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t DWOId
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool SplitDebugInlining
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool DebugInfoForProfiling
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned NameTableKind
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool RangesBaseAddress
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDStringSysRoot
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDStringSDK
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString SourceLanguage
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString File
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString Producer
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString IsOptimized
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString Flags
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString RuntimeVersion
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString SplitDebugFilename
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString EmissionKind
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString EnumTypes
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString RetainedTypes
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString GlobalVariables
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString ImportedEntities
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString Macros
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString DWOId
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString SplitDebugInlining
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString DebugInfoForProfiling
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString NameTableKind
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString RangesBaseAddress
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata uint64_t bool bool unsigned bool MDString MDString SysRoot

Friends

class LLVMContextImpl
class MDNode

Additional Inherited Members

Protected Types inherited from llvm::MDNode
using mutable_op_range = iterator_range<MDOperand *>
 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<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 ()
MDOperandmutable_begin ()
MDOperandmutable_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.
Static Protected Member Functions inherited from llvm::DINode
static MDStringgetCanonicalMDString (LLVMContext &Context, StringRef S)
Static Protected Member Functions inherited from llvm::MDNode
template<class T, class StoreT>
static TstoreImpl (T *N, StorageType Storage, StoreT &Store)
template<class T>
static TstoreImpl (T *N, StorageType Storage)

Detailed Description

Compile unit.

Definition at line 1977 of file DebugInfoMetadata.h.

Member Enumeration Documentation

◆ DebugEmissionKind

Enumerator
NoDebug 
FullDebug 
LineTablesOnly 
DebugDirectivesOnly 
LastEmissionKind 

Definition at line 1982 of file DebugInfoMetadata.h.

◆ DebugNameTableKind

Enumerator
Default 
GNU 
None 
Apple 
LastDebugNameTableKind 

Definition at line 1990 of file DebugInfoMetadata.h.

Member Function Documentation

◆ classof()

bool llvm::DICompileUnit::classof ( const Metadata * MD)
inlinestatic

Definition at line 2175 of file DebugInfoMetadata.h.

References llvm::Metadata::getMetadataID().

◆ clone()

Definition at line 2100 of file DebugInfoMetadata.h.

References clone().

Referenced by clone().

◆ DEFINE_MDNODE_GET_DISTINCT_TEMPORARY()

◆ emissionKindString()

const char * DICompileUnit::emissionKindString ( DebugEmissionKind EK)
static

Definition at line 1250 of file DebugInfoMetadata.cpp.

References DebugDirectivesOnly, FullDebug, LineTablesOnly, and NoDebug.

◆ get()

void llvm::DICompileUnit::get ( )
staticdelete

◆ getDebugInfoForProfiling()

bool llvm::DICompileUnit::getDebugInfoForProfiling ( ) const
inline

Definition at line 2111 of file DebugInfoMetadata.h.

Referenced by llvm::DwarfDebug::endFunctionImpl().

◆ getDWOId()

uint64_t llvm::DICompileUnit::getDWOId ( ) const
inline

Definition at line 2134 of file DebugInfoMetadata.h.

◆ getEmissionKind() [1/2]

DebugEmissionKind llvm::DICompileUnit::getEmissionKind ( ) const
inline

Definition at line 2105 of file DebugInfoMetadata.h.

Referenced by llvm::LLParser::parseMDField().

◆ getEmissionKind() [2/2]

◆ getEnumTypes()

DICompositeTypeArray llvm::DICompileUnit::getEnumTypes ( ) const
inline

Definition at line 2119 of file DebugInfoMetadata.h.

References llvm::cast_or_null(), and getRawEnumTypes().

◆ getFlags()

StringRef llvm::DICompileUnit::getFlags ( ) const
inline

Definition at line 2117 of file DebugInfoMetadata.h.

References llvm::DINode::getStringOperand().

◆ getGlobalVariables()

DIGlobalVariableExpressionArray llvm::DICompileUnit::getGlobalVariables ( ) const
inline

Definition at line 2125 of file DebugInfoMetadata.h.

References llvm::cast_or_null(), and getRawGlobalVariables().

◆ getIfExists()

void llvm::DICompileUnit::getIfExists ( )
staticdelete

◆ getImportedEntities()

DIImportedEntityArray llvm::DICompileUnit::getImportedEntities ( ) const
inline

Definition at line 2128 of file DebugInfoMetadata.h.

References llvm::cast_or_null(), and getRawImportedEntities().

◆ getMacros()

DIMacroNodeArray llvm::DICompileUnit::getMacros ( ) const
inline

Definition at line 2131 of file DebugInfoMetadata.h.

References llvm::cast_or_null(), and getRawMacros().

◆ getNameTableKind() [1/2]

DebugNameTableKind llvm::DICompileUnit::getNameTableKind ( ) const
inline

Definition at line 2112 of file DebugInfoMetadata.h.

Referenced by llvm::LLParser::parseMDField().

◆ getNameTableKind() [2/2]

std::optional< DICompileUnit::DebugNameTableKind > DICompileUnit::getNameTableKind ( StringRef Str)
static

◆ getProducer()

StringRef llvm::DICompileUnit::getProducer ( ) const
inline

Definition at line 2116 of file DebugInfoMetadata.h.

References llvm::DINode::getStringOperand().

◆ getRangesBaseAddress()

bool llvm::DICompileUnit::getRangesBaseAddress ( ) const
inline

Definition at line 2115 of file DebugInfoMetadata.h.

◆ getRawEnumTypes()

Metadata * llvm::DICompileUnit::getRawEnumTypes ( ) const
inline

Definition at line 2148 of file DebugInfoMetadata.h.

References llvm::MDNode::getOperand().

Referenced by getEnumTypes().

◆ getRawFlags()

MDString * llvm::DICompileUnit::getRawFlags ( ) const
inline

Definition at line 2144 of file DebugInfoMetadata.h.

References llvm::DINode::getOperandAs().

◆ getRawGlobalVariables()

Metadata * llvm::DICompileUnit::getRawGlobalVariables ( ) const
inline

Definition at line 2150 of file DebugInfoMetadata.h.

References llvm::MDNode::getOperand().

Referenced by getGlobalVariables().

◆ getRawImportedEntities()

Metadata * llvm::DICompileUnit::getRawImportedEntities ( ) const
inline

Definition at line 2151 of file DebugInfoMetadata.h.

References llvm::MDNode::getOperand().

Referenced by getImportedEntities().

◆ getRawMacros()

Metadata * llvm::DICompileUnit::getRawMacros ( ) const
inline

Definition at line 2152 of file DebugInfoMetadata.h.

References llvm::MDNode::getOperand().

Referenced by getMacros().

◆ getRawProducer()

MDString * llvm::DICompileUnit::getRawProducer ( ) const
inline

Definition at line 2143 of file DebugInfoMetadata.h.

References llvm::DINode::getOperandAs().

◆ getRawRetainedTypes()

Metadata * llvm::DICompileUnit::getRawRetainedTypes ( ) const
inline

Definition at line 2149 of file DebugInfoMetadata.h.

References llvm::MDNode::getOperand().

Referenced by getRetainedTypes().

◆ getRawSDK()

MDString * llvm::DICompileUnit::getRawSDK ( ) const
inline

Definition at line 2154 of file DebugInfoMetadata.h.

References llvm::DINode::getOperandAs().

◆ getRawSplitDebugFilename()

MDString * llvm::DICompileUnit::getRawSplitDebugFilename ( ) const
inline

Definition at line 2145 of file DebugInfoMetadata.h.

References llvm::DINode::getOperandAs().

◆ getRawSysRoot()

MDString * llvm::DICompileUnit::getRawSysRoot ( ) const
inline

Definition at line 2153 of file DebugInfoMetadata.h.

References llvm::DINode::getOperandAs().

◆ getRetainedTypes()

DIScopeArray llvm::DICompileUnit::getRetainedTypes ( ) const
inline

Definition at line 2122 of file DebugInfoMetadata.h.

References llvm::cast_or_null(), and getRawRetainedTypes().

◆ getRuntimeVersion()

unsigned llvm::DICompileUnit::getRuntimeVersion ( ) const
inline

Definition at line 2104 of file DebugInfoMetadata.h.

◆ getSDK()

StringRef llvm::DICompileUnit::getSDK ( ) const
inline

Definition at line 2141 of file DebugInfoMetadata.h.

References llvm::DINode::getStringOperand().

◆ getSourceLanguage()

unsigned llvm::DICompileUnit::getSourceLanguage ( ) const
inline

Definition at line 2102 of file DebugInfoMetadata.h.

◆ getSplitDebugFilename()

StringRef llvm::DICompileUnit::getSplitDebugFilename ( ) const
inline

Definition at line 2118 of file DebugInfoMetadata.h.

References llvm::DINode::getStringOperand().

◆ getSplitDebugInlining()

bool llvm::DICompileUnit::getSplitDebugInlining ( ) const
inline

Definition at line 2136 of file DebugInfoMetadata.h.

Referenced by llvm::DwarfDebug::endFunctionImpl().

◆ getSysRoot()

StringRef llvm::DICompileUnit::getSysRoot ( ) const
inline

Definition at line 2140 of file DebugInfoMetadata.h.

References llvm::DINode::getStringOperand().

◆ isDebugDirectivesOnly()

bool llvm::DICompileUnit::isDebugDirectivesOnly ( ) const
inline

◆ isOptimized()

bool llvm::DICompileUnit::isOptimized ( ) const
inline

Definition at line 2103 of file DebugInfoMetadata.h.

◆ nameTableKindString()

const char * DICompileUnit::nameTableKindString ( DebugNameTableKind PK)
static

Definition at line 1264 of file DebugInfoMetadata.cpp.

References Apple, Default, GNU, and None.

◆ replaceEnumTypes()

void llvm::DICompileUnit::replaceEnumTypes ( DICompositeTypeArray N)
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 2162 of file DebugInfoMetadata.h.

References N, and llvm::MDNode::replaceOperandWith().

◆ replaceGlobalVariables()

void llvm::DICompileUnit::replaceGlobalVariables ( DIGlobalVariableExpressionArray N)
inline

Definition at line 2166 of file DebugInfoMetadata.h.

References N, and llvm::MDNode::replaceOperandWith().

◆ replaceImportedEntities()

void llvm::DICompileUnit::replaceImportedEntities ( DIImportedEntityArray N)
inline

Definition at line 2169 of file DebugInfoMetadata.h.

References N, and llvm::MDNode::replaceOperandWith().

◆ replaceMacros()

void llvm::DICompileUnit::replaceMacros ( DIMacroNodeArray N)
inline

Definition at line 2172 of file DebugInfoMetadata.h.

References N, and llvm::MDNode::replaceOperandWith().

◆ replaceRetainedTypes()

void llvm::DICompileUnit::replaceRetainedTypes ( DITypeArray N)
inline

Definition at line 2165 of file DebugInfoMetadata.h.

References N, and llvm::MDNode::replaceOperandWith().

◆ setDWOId()

void llvm::DICompileUnit::setDWOId ( uint64_t DwoId)
inline

Definition at line 2135 of file DebugInfoMetadata.h.

◆ setSplitDebugInlining()

void llvm::DICompileUnit::setSplitDebugInlining ( bool SplitDebugInlining)
inline

Definition at line 2137 of file DebugInfoMetadata.h.

◆ LLVMContextImpl

friend class LLVMContextImpl
friend

Definition at line 1978 of file DebugInfoMetadata.h.

References LLVMContextImpl.

Referenced by LLVMContextImpl.

◆ MDNode

friend class MDNode
friend

Definition at line 1979 of file DebugInfoMetadata.h.

References MDNode.

Referenced by MDNode.

Member Data Documentation

◆ DebugInfoForProfiling [1/2]

◆ DebugInfoForProfiling [2/2]

◆ DWOId [1/2]

◆ DWOId [2/2]

◆ EmissionKind [1/2]

unsigned Metadata MDString bool MDString unsigned MDString unsigned llvm::DICompileUnit::EmissionKind

Definition at line 2089 of file DebugInfoMetadata.h.

◆ EmissionKind [2/2]

◆ EnumTypes [1/2]

Definition at line 2089 of file DebugInfoMetadata.h.

Referenced by DEFINE_MDNODE_GET_DISTINCT_TEMPORARY().

◆ EnumTypes [2/2]

◆ File [1/2]

unsigned Metadata* llvm::DICompileUnit::File

Definition at line 2087 of file DebugInfoMetadata.h.

Referenced by DEFINE_MDNODE_GET_DISTINCT_TEMPORARY().

◆ File [2/2]

◆ Flags [1/2]

unsigned Metadata MDString bool MDString* llvm::DICompileUnit::Flags

Definition at line 2088 of file DebugInfoMetadata.h.

Referenced by DEFINE_MDNODE_GET_DISTINCT_TEMPORARY().

◆ Flags [2/2]

◆ GlobalVariables [1/2]

◆ GlobalVariables [2/2]

◆ ImportedEntities [1/2]

◆ ImportedEntities [2/2]

◆ IsOptimized [1/2]

unsigned Metadata MDString bool llvm::DICompileUnit::IsOptimized

Definition at line 2088 of file DebugInfoMetadata.h.

◆ IsOptimized [2/2]

◆ Macros [1/2]

◆ Macros [2/2]

◆ NameTableKind [1/2]

◆ NameTableKind [2/2]

◆ Producer [1/2]

unsigned Metadata MDString* llvm::DICompileUnit::Producer

Definition at line 2087 of file DebugInfoMetadata.h.

Referenced by DEFINE_MDNODE_GET_DISTINCT_TEMPORARY().

◆ Producer [2/2]

◆ RangesBaseAddress [1/2]

◆ RangesBaseAddress [2/2]

◆ RetainedTypes [1/2]

Definition at line 2090 of file DebugInfoMetadata.h.

Referenced by DEFINE_MDNODE_GET_DISTINCT_TEMPORARY().

◆ RetainedTypes [2/2]

◆ RuntimeVersion [1/2]

unsigned Metadata MDString bool MDString unsigned llvm::DICompileUnit::RuntimeVersion

Definition at line 2088 of file DebugInfoMetadata.h.

◆ RuntimeVersion [2/2]

◆ SDK

◆ SourceLanguage

◆ SplitDebugFilename [1/2]

unsigned Metadata MDString bool MDString unsigned MDString* llvm::DICompileUnit::SplitDebugFilename

Definition at line 2089 of file DebugInfoMetadata.h.

Referenced by DEFINE_MDNODE_GET_DISTINCT_TEMPORARY().

◆ 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: