LLVM
8.0.1
|
Compile unit. More...
#include "llvm/IR/DebugInfoMetadata.h"
Public Types | |
enum | DebugEmissionKind : unsigned { NoDebug = 0, FullDebug, LineTablesOnly, DebugDirectivesOnly, LastEmissionKind = DebugDirectivesOnly } |
enum | DebugNameTableKind : unsigned { DebugNameTableKind::Default = 0, DebugNameTableKind::GNU = 1, DebugNameTableKind::None = 2, DebugNameTableKind::LastDebugNameTableKind = None } |
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 Optional< DebugEmissionKind > | getEmissionKind (StringRef Str) |
static const char * | emissionKindString (DebugEmissionKind EK) |
static 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. More... | |
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. More... | |
template<class T > | |
static std::enable_if< std::is_base_of< MDNode, T >::value, T * >::type | replaceWithPermanent (std::unique_ptr< T, TempMDNodeDeleter > N) |
Replace a temporary node with a permanent one. More... | |
template<class T > | |
static std::enable_if< std::is_base_of< MDNode, T >::value, T * >::type | replaceWithUniqued (std::unique_ptr< T, TempMDNodeDeleter > N) |
Replace a temporary node with a uniqued one. More... | |
template<class T > | |
static std::enable_if< std::is_base_of< MDNode, T >::value, T * >::type | replaceWithDistinct (std::unique_ptr< T, TempMDNodeDeleter > N) |
Replace a temporary node with a distinct one. More... | |
static bool | classof (const Metadata *MD) |
Methods for support type inquiry through isa, cast, and dyn_cast: More... | |
static MDNode * | concatenate (MDNode *A, MDNode *B) |
Methods for metadata merging. More... | |
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) |
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=None) | |
~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. More... | |
Protected Member Functions inherited from llvm::MDNode | |
MDNode (LLVMContext &Context, unsigned ID, StorageType Storage, ArrayRef< Metadata *> Ops1, ArrayRef< Metadata *> Ops2=None) | |
~MDNode ()=default | |
void * | operator new (size_t Size, unsigned NumOps) |
void | operator delete (void *Mem) |
void | operator delete (void *, unsigned) |
Required by std, but never called. More... | |
void | operator delete (void *, unsigned, bool) |
Required by std, but never called. More... | |
void | dropAllReferences () |
MDOperand * | mutable_begin () |
MDOperand * | mutable_end () |
mutable_op_range | mutable_operands () |
void | setOperand (unsigned I, Metadata *New) |
Set an operand. More... | |
void | storeDistinctInContext () |
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. More... | |
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. More... | |
unsigned char | ImplicitCode: 1 |
unsigned short | SubclassData16 = 0 |
unsigned | SubclassData32 = 0 |
Compile unit.
Definition at line 1161 of file DebugInfoMetadata.h.
Enumerator | |
---|---|
NoDebug | |
FullDebug | |
LineTablesOnly | |
DebugDirectivesOnly | |
LastEmissionKind |
Definition at line 1166 of file DebugInfoMetadata.h.
|
strong |
Enumerator | |
---|---|
Default | |
GNU | |
None | |
LastDebugNameTableKind |
Definition at line 1174 of file DebugInfoMetadata.h.
Definition at line 1361 of file DebugInfoMetadata.h.
References llvm::Metadata::getMetadataID().
|
inline |
Definition at line 1284 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) | , | ||
(SourceLanguage, File, Producer, IsOptimized, Flags, RuntimeVersion, SplitDebugFilename, EmissionKind, EnumTypes, RetainedTypes, GlobalVariables, ImportedEntities, Macros, DWOId, SplitDebugInlining, DebugInfoForProfiling,(unsigned) NameTableKind, RangesBaseAddress) | |||
) |
|
static |
Definition at line 554 of file DebugInfoMetadata.cpp.
|
staticdelete |
Referenced by llvm::DISubprogram::toSPFlags().
|
inline |
Definition at line 1295 of file DebugInfoMetadata.h.
Referenced by llvm::DwarfUnit::applySubprogramAttributes(), rotateSign(), and llvm::StripDebugInfo().
|
inline |
Definition at line 1322 of file DebugInfoMetadata.h.
Referenced by rotateSign(), llvm::DwarfDebug::shareAcrossDWOCUs(), shouldKeepInEntry(), and llvm::StripDebugInfo().
|
static |
Definition at line 536 of file DebugInfoMetadata.cpp.
References llvm::StringSwitch< T, R >::Case(), llvm::StringSwitch< T, R >::Default(), and llvm::None.
Referenced by hasConflictingReferenceFlags(), llvm::DwarfCompileUnit::includeMinimalInlineScopes(), and rotateSign().
|
inline |
Definition at line 1289 of file DebugInfoMetadata.h.
References llvm::lltok::EmissionKind.
Referenced by FunctionNumber().
|
inline |
Definition at line 1307 of file DebugInfoMetadata.h.
Referenced by hasConflictingReferenceFlags(), llvm::DebugInfoFinder::processModule(), and rotateSign().
|
inline |
Definition at line 1303 of file DebugInfoMetadata.h.
Referenced by llvm::DwarfDebug::shareAcrossDWOCUs(), and llvm::StripDebugInfo().
|
inline |
Definition at line 1313 of file DebugInfoMetadata.h.
Referenced by hasConflictingReferenceFlags(), llvm::DebugInfoFinder::processModule(), and rotateSign().
|
staticdelete |
|
inline |
Definition at line 1316 of file DebugInfoMetadata.h.
Referenced by hasConflictingReferenceFlags(), llvm::DebugInfoFinder::processModule(), rotateSign(), and llvm::DwarfDebug::shareAcrossDWOCUs().
|
inline |
Definition at line 1319 of file DebugInfoMetadata.h.
Referenced by hasConflictingReferenceFlags(), rotateSign(), and llvm::StripDebugInfo().
|
static |
Definition at line 546 of file DebugInfoMetadata.cpp.
References llvm::StringSwitch< T, R >::Case(), llvm::Default, llvm::StringSwitch< T, R >::Default(), llvm::GNU, and llvm::None.
Referenced by llvm::DwarfDebug::addDwarfTypeUnitType(), llvm::DwarfDebug::addSubprogramNames(), computeIndexValue(), llvm::DwarfCompileUnit::hasDwarfPubSections(), rotateSign(), and llvm::StripDebugInfo().
|
inline |
Definition at line 1296 of file DebugInfoMetadata.h.
References llvm::lltok::NameTableKind.
Referenced by FunctionNumber().
|
inline |
Definition at line 1301 of file DebugInfoMetadata.h.
Referenced by llvm::DwarfDebug::shareAcrossDWOCUs(), and llvm::StripDebugInfo().
|
inline |
Definition at line 1299 of file DebugInfoMetadata.h.
Referenced by emitRangeList(), and llvm::StripDebugInfo().
|
inline |
Definition at line 1334 of file DebugInfoMetadata.h.
Referenced by hasConflictingReferenceFlags().
|
inline |
Definition at line 1330 of file DebugInfoMetadata.h.
Referenced by rotateSign().
|
inline |
Definition at line 1336 of file DebugInfoMetadata.h.
Referenced by hasConflictingReferenceFlags().
|
inline |
Definition at line 1337 of file DebugInfoMetadata.h.
Referenced by hasConflictingReferenceFlags().
|
inline |
Definition at line 1338 of file DebugInfoMetadata.h.
Referenced by hasConflictingReferenceFlags().
|
inline |
Definition at line 1329 of file DebugInfoMetadata.h.
Referenced by rotateSign().
|
inline |
Definition at line 1335 of file DebugInfoMetadata.h.
Referenced by hasConflictingReferenceFlags().
|
inline |
Definition at line 1331 of file DebugInfoMetadata.h.
Referenced by rotateSign().
|
inline |
Definition at line 1310 of file DebugInfoMetadata.h.
Referenced by hasConflictingReferenceFlags(), llvm::DebugInfoFinder::processModule(), and rotateSign().
|
inline |
Definition at line 1288 of file DebugInfoMetadata.h.
Referenced by rotateSign(), llvm::DwarfDebug::shareAcrossDWOCUs(), and llvm::StripDebugInfo().
|
inline |
Definition at line 1286 of file DebugInfoMetadata.h.
Referenced by llvm::DwarfUnit::getLanguage(), rotateSign(), llvm::DwarfDebug::shareAcrossDWOCUs(), and llvm::StripDebugInfo().
|
inline |
Definition at line 1305 of file DebugInfoMetadata.h.
Referenced by llvm::DwarfDebug::shareAcrossDWOCUs(), and llvm::StripDebugInfo().
|
inline |
Definition at line 1324 of file DebugInfoMetadata.h.
Referenced by forBothCUs(), rotateSign(), and llvm::StripDebugInfo().
|
inline |
Definition at line 1292 of file DebugInfoMetadata.h.
Referenced by llvm::DwarfUnit::addString(), llvm::DwarfDebug::beginModule(), emitDebugRangesImpl(), llvm::DwarfFile::emitUnit(), llvm::DwarfCompileUnit::hasDwarfPubSections(), and llvm::DwarfCompileUnit::initStmtList().
|
inline |
Definition at line 1287 of file DebugInfoMetadata.h.
Referenced by rotateSign(), llvm::DwarfDebug::shareAcrossDWOCUs(), and llvm::StripDebugInfo().
|
static |
Definition at line 564 of file DebugInfoMetadata.cpp.
References llvm::Default, llvm::GNU, and llvm::None.
|
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 1346 of file DebugInfoMetadata.h.
Referenced by llvm::DIBuilder::finalize().
|
inline |
Definition at line 1352 of file DebugInfoMetadata.h.
Referenced by llvm::DIBuilder::finalize().
|
inline |
Definition at line 1355 of file DebugInfoMetadata.h.
Referenced by llvm::DIBuilder::finalize().
|
inline |
Definition at line 1358 of file DebugInfoMetadata.h.
Referenced by llvm::DIBuilder::finalize().
|
inline |
Definition at line 1349 of file DebugInfoMetadata.h.
Referenced by llvm::DIBuilder::finalize().
|
inline |
Definition at line 1323 of file DebugInfoMetadata.h.
|
inline |
Definition at line 1325 of file DebugInfoMetadata.h.
|
friend |
Definition at line 1162 of file DebugInfoMetadata.h.
|
friend |
Definition at line 1163 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 1272 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::DebugInfoForProfiling |
Definition at line 1272 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 1272 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::DWOId |
Definition at line 1272 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned llvm::DICompileUnit::EmissionKind |
Definition at line 1272 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::EmissionKind |
Definition at line 1272 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata* llvm::DICompileUnit::EnumTypes |
Definition at line 1272 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::EnumTypes |
Definition at line 1272 of file DebugInfoMetadata.h.
Definition at line 1272 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::File |
Definition at line 1272 of file DebugInfoMetadata.h.
Definition at line 1272 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::Flags |
Definition at line 1272 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata* llvm::DICompileUnit::GlobalVariables |
Definition at line 1272 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::GlobalVariables |
Definition at line 1272 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata* llvm::DICompileUnit::ImportedEntities |
Definition at line 1272 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::ImportedEntities |
Definition at line 1272 of file DebugInfoMetadata.h.
Definition at line 1272 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::IsOptimized |
Definition at line 1272 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata Metadata Metadata Metadata* llvm::DICompileUnit::Macros |
Definition at line 1272 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::Macros |
Definition at line 1272 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 1272 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::NameTableKind |
Definition at line 1272 of file DebugInfoMetadata.h.
Definition at line 1272 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::Producer |
Definition at line 1272 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 1272 of file DebugInfoMetadata.h.
unsigned Metadata MDString bool MDString unsigned MDString unsigned Metadata Metadata* llvm::DICompileUnit::RetainedTypes |
Definition at line 1272 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::RetainedTypes |
Definition at line 1272 of file DebugInfoMetadata.h.
Definition at line 1272 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::RuntimeVersion |
Definition at line 1272 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::SourceLanguage |
Definition at line 1272 of file DebugInfoMetadata.h.
Definition at line 1272 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::SplitDebugFilename |
Definition at line 1272 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 1272 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::SplitDebugInlining |
Definition at line 1272 of file DebugInfoMetadata.h.