class DICompileUnit

Declaration

class DICompileUnit : public DIScope { /* full declaration omitted */ };

Description

Compile unit.

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1322

Inherits from: DIScope

Member Variables

private unsigned int SourceLanguage
private bool IsOptimized
private unsigned int RuntimeVersion
private unsigned int EmissionKind
private uint64_t DWOId
private bool SplitDebugInlining
private bool DebugInfoForProfiling
private unsigned int NameTableKind
private bool RangesBaseAddress

Inherited from Metadata:

protected Storage
protected SubclassData1
protected SubclassData16 = 0
protected SubclassData32 = 0

Method Overview

  • private DICompileUnit(llvm::LLVMContext & C, llvm::Metadata::StorageType Storage, unsigned int SourceLanguage, bool IsOptimized, unsigned int RuntimeVersion, unsigned int EmissionKind, uint64_t DWOId, bool SplitDebugInlining, bool DebugInfoForProfiling, unsigned int NameTableKind, bool RangesBaseAddress, ArrayRef<llvm::Metadata *> Ops)
  • public static bool classof(const llvm::Metadata * MD)
  • public llvm::TempDICompileUnit clone() const
  • private llvm::TempDICompileUnit cloneImpl() const
  • public static const char * emissionKindString(llvm::DICompileUnit::DebugEmissionKind EK)
  • public static void get()
  • public uint64_t getDWOId() const
  • public bool getDebugInfoForProfiling() const
  • public static Optional<llvm::DICompileUnit::DebugEmissionKind> getEmissionKind(llvm::StringRef Str)
  • public llvm::DICompileUnit::DebugEmissionKind getEmissionKind() const
  • public llvm::DICompositeTypeArray getEnumTypes() const
  • public llvm::StringRef getFlags() const
  • public llvm::DIGlobalVariableExpressionArray getGlobalVariables() const
  • public static void getIfExists()
  • private static llvm::DICompileUnit * getImpl(llvm::LLVMContext & Context, unsigned int SourceLanguage, llvm::DIFile * File, llvm::StringRef Producer, bool IsOptimized, llvm::StringRef Flags, unsigned int RuntimeVersion, llvm::StringRef SplitDebugFilename, unsigned int EmissionKind, llvm::DICompositeTypeArray EnumTypes, llvm::DIScopeArray RetainedTypes, llvm::DIGlobalVariableExpressionArray GlobalVariables, llvm::DIImportedEntityArray ImportedEntities, llvm::DIMacroNodeArray Macros, uint64_t DWOId, bool SplitDebugInlining, bool DebugInfoForProfiling, unsigned int NameTableKind, bool RangesBaseAddress, llvm::StringRef SysRoot, llvm::StringRef SDK, llvm::Metadata::StorageType Storage, bool ShouldCreate = true)
  • private static llvm::DICompileUnit * getImpl(llvm::LLVMContext & Context, unsigned int SourceLanguage, llvm::Metadata * File, llvm::MDString * Producer, bool IsOptimized, llvm::MDString * Flags, unsigned int RuntimeVersion, llvm::MDString * SplitDebugFilename, unsigned int EmissionKind, llvm::Metadata * EnumTypes, llvm::Metadata * RetainedTypes, llvm::Metadata * GlobalVariables, llvm::Metadata * ImportedEntities, llvm::Metadata * Macros, uint64_t DWOId, bool SplitDebugInlining, bool DebugInfoForProfiling, unsigned int NameTableKind, bool RangesBaseAddress, llvm::MDString * SysRoot, llvm::MDString * SDK, llvm::Metadata::StorageType Storage, bool ShouldCreate = true)
  • public llvm::DIImportedEntityArray getImportedEntities() const
  • public llvm::DIMacroNodeArray getMacros() const
  • public llvm::DICompileUnit::DebugNameTableKind getNameTableKind() const
  • public static Optional<llvm::DICompileUnit::DebugNameTableKind> getNameTableKind(llvm::StringRef Str)
  • public llvm::StringRef getProducer() const
  • public bool getRangesBaseAddress() const
  • public llvm::Metadata * getRawEnumTypes() const
  • public llvm::MDString * getRawFlags() const
  • public llvm::Metadata * getRawGlobalVariables() const
  • public llvm::Metadata * getRawImportedEntities() const
  • public llvm::Metadata * getRawMacros() const
  • public llvm::MDString * getRawProducer() const
  • public llvm::Metadata * getRawRetainedTypes() const
  • public llvm::MDString * getRawSDK() const
  • public llvm::MDString * getRawSplitDebugFilename() const
  • public llvm::MDString * getRawSysRoot() const
  • public llvm::DIScopeArray getRetainedTypes() const
  • public unsigned int getRuntimeVersion() const
  • public llvm::StringRef getSDK() const
  • public unsigned int getSourceLanguage() const
  • public llvm::StringRef getSplitDebugFilename() const
  • public bool getSplitDebugInlining() const
  • public llvm::StringRef getSysRoot() const
  • public bool isDebugDirectivesOnly() const
  • public bool isOptimized() const
  • public static const char * nameTableKindString(llvm::DICompileUnit::DebugNameTableKind PK)
  • public void replaceEnumTypes(llvm::DICompositeTypeArray N)
  • public void replaceGlobalVariables(llvm::DIGlobalVariableExpressionArray N)
  • public void replaceImportedEntities(llvm::DIImportedEntityArray N)
  • public void replaceMacros(llvm::DIMacroNodeArray N)
  • public void replaceRetainedTypes(llvm::DITypeArray N)
  • public void setDWOId(uint64_t DwoId)
  • public void setSplitDebugInlining(bool SplitDebugInlining)
  • private ~DICompileUnit()

Inherited from DIScope:

Inherited from DINode:

Inherited from MDNode:

Inherited from Metadata:

Methods

DICompileUnit(llvm::LLVMContext& C,
              llvm::Metadata::StorageType Storage,
              unsigned int SourceLanguage,
              bool IsOptimized,
              unsigned int RuntimeVersion,
              unsigned int EmissionKind,
              uint64_t DWOId,
              bool SplitDebugInlining,
              bool DebugInfoForProfiling,
              unsigned int NameTableKind,
              bool RangesBaseAddress,
              ArrayRef<llvm::Metadata*> Ops)

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1358

Parameters

llvm::LLVMContext& C
llvm::Metadata::StorageType Storage
unsigned int SourceLanguage
bool IsOptimized
unsigned int RuntimeVersion
unsigned int EmissionKind
uint64_t DWOId
bool SplitDebugInlining
bool DebugInfoForProfiling
unsigned int NameTableKind
bool RangesBaseAddress
ArrayRef<llvm::Metadata*> Ops

static bool classof(const llvm::Metadata* MD)

Description

@ }

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1517

Parameters

const llvm::Metadata* MD

llvm::TempDICompileUnit clone() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1442

llvm::TempDICompileUnit cloneImpl() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1397

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

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1343

Parameters

llvm::DICompileUnit::DebugEmissionKind EK

static void get()

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1408

uint64_t getDWOId() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1476

bool getDebugInfoForProfiling() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1453

static Optional<
    llvm::DICompileUnit::DebugEmissionKind>
getEmissionKind(llvm::StringRef Str)

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1342

Parameters

llvm::StringRef Str

llvm::DICompileUnit::DebugEmissionKind
getEmissionKind() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1447

llvm::DICompositeTypeArray getEnumTypes() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1461

llvm::StringRef getFlags() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1459

llvm::DIGlobalVariableExpressionArray
getGlobalVariables() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1467

static void getIfExists()

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1409

static llvm::DICompileUnit* getImpl(
    llvm::LLVMContext& Context,
    unsigned int SourceLanguage,
    llvm::DIFile* File,
    llvm::StringRef Producer,
    bool IsOptimized,
    llvm::StringRef Flags,
    unsigned int RuntimeVersion,
    llvm::StringRef SplitDebugFilename,
    unsigned int EmissionKind,
    llvm::DICompositeTypeArray EnumTypes,
    llvm::DIScopeArray RetainedTypes,
    llvm::DIGlobalVariableExpressionArray
        GlobalVariables,
    llvm::DIImportedEntityArray ImportedEntities,
    llvm::DIMacroNodeArray Macros,
    uint64_t DWOId,
    bool SplitDebugInlining,
    bool DebugInfoForProfiling,
    unsigned int NameTableKind,
    bool RangesBaseAddress,
    llvm::StringRef SysRoot,
    llvm::StringRef SDK,
    llvm::Metadata::StorageType Storage,
    bool ShouldCreate = true)

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1366

Parameters

llvm::LLVMContext& Context
unsigned int SourceLanguage
llvm::DIFile* File
llvm::StringRef Producer
bool IsOptimized
llvm::StringRef Flags
unsigned int RuntimeVersion
llvm::StringRef SplitDebugFilename
unsigned int EmissionKind
llvm::DICompositeTypeArray EnumTypes
llvm::DIScopeArray RetainedTypes
llvm::DIGlobalVariableExpressionArray GlobalVariables
llvm::DIImportedEntityArray ImportedEntities
llvm::DIMacroNodeArray Macros
uint64_t DWOId
bool SplitDebugInlining
bool DebugInfoForProfiling
unsigned int NameTableKind
bool RangesBaseAddress
llvm::StringRef SysRoot
llvm::StringRef SDK
llvm::Metadata::StorageType Storage
bool ShouldCreate = true

static llvm::DICompileUnit* getImpl(
    llvm::LLVMContext& Context,
    unsigned int SourceLanguage,
    llvm::Metadata* File,
    llvm::MDString* Producer,
    bool IsOptimized,
    llvm::MDString* Flags,
    unsigned int RuntimeVersion,
    llvm::MDString* SplitDebugFilename,
    unsigned int EmissionKind,
    llvm::Metadata* EnumTypes,
    llvm::Metadata* RetainedTypes,
    llvm::Metadata* GlobalVariables,
    llvm::Metadata* ImportedEntities,
    llvm::Metadata* Macros,
    uint64_t DWOId,
    bool SplitDebugInlining,
    bool DebugInfoForProfiling,
    unsigned int NameTableKind,
    bool RangesBaseAddress,
    llvm::MDString* SysRoot,
    llvm::MDString* SDK,
    llvm::Metadata::StorageType Storage,
    bool ShouldCreate = true)

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1387

Parameters

llvm::LLVMContext& Context
unsigned int SourceLanguage
llvm::Metadata* File
llvm::MDString* Producer
bool IsOptimized
llvm::MDString* Flags
unsigned int RuntimeVersion
llvm::MDString* SplitDebugFilename
unsigned int EmissionKind
llvm::Metadata* EnumTypes
llvm::Metadata* RetainedTypes
llvm::Metadata* GlobalVariables
llvm::Metadata* ImportedEntities
llvm::Metadata* Macros
uint64_t DWOId
bool SplitDebugInlining
bool DebugInfoForProfiling
unsigned int NameTableKind
bool RangesBaseAddress
llvm::MDString* SysRoot
llvm::MDString* SDK
llvm::Metadata::StorageType Storage
bool ShouldCreate = true

llvm::DIImportedEntityArray getImportedEntities()
    const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1470

llvm::DIMacroNodeArray getMacros() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1473

llvm::DICompileUnit::DebugNameTableKind
getNameTableKind() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1454

static Optional<
    llvm::DICompileUnit::DebugNameTableKind>
getNameTableKind(llvm::StringRef Str)

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1344

Parameters

llvm::StringRef Str

llvm::StringRef getProducer() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1458

bool getRangesBaseAddress() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1457

llvm::Metadata* getRawEnumTypes() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1490

llvm::MDString* getRawFlags() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1486

llvm::Metadata* getRawGlobalVariables() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1492

llvm::Metadata* getRawImportedEntities() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1493

llvm::Metadata* getRawMacros() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1494

llvm::MDString* getRawProducer() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1485

llvm::Metadata* getRawRetainedTypes() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1491

llvm::MDString* getRawSDK() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1496

llvm::MDString* getRawSplitDebugFilename() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1487

llvm::MDString* getRawSysRoot() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1495

llvm::DIScopeArray getRetainedTypes() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1464

unsigned int getRuntimeVersion() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1446

llvm::StringRef getSDK() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1483

unsigned int getSourceLanguage() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1444

llvm::StringRef getSplitDebugFilename() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1460

bool getSplitDebugInlining() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1478

llvm::StringRef getSysRoot() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1482

bool isDebugDirectivesOnly() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1450

bool isOptimized() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1445

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

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1345

Parameters

llvm::DICompileUnit::DebugNameTableKind PK

void replaceEnumTypes(
    llvm::DICompositeTypeArray N)

Description

Replace arrays. If this \a isUniqued() and not \a isResolved(), it will be RAUW'ed and deleted on a uniquing collision. In practice, uniquing collisions on \a DICompileUnit should be fairly rare. @ {

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1504

Parameters

llvm::DICompositeTypeArray N

void replaceGlobalVariables(
    llvm::DIGlobalVariableExpressionArray N)

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1508

Parameters

llvm::DIGlobalVariableExpressionArray N

void replaceImportedEntities(
    llvm::DIImportedEntityArray N)

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1511

Parameters

llvm::DIImportedEntityArray N

void replaceMacros(llvm::DIMacroNodeArray N)

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1514

Parameters

llvm::DIMacroNodeArray N

void replaceRetainedTypes(llvm::DITypeArray N)

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1507

Parameters

llvm::DITypeArray N

void setDWOId(uint64_t DwoId)

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1477

Parameters

uint64_t DwoId

void setSplitDebugInlining(
    bool SplitDebugInlining)

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1479

Parameters

bool SplitDebugInlining

~DICompileUnit()

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:1363