LLVM 20.0.0git
|
Helper class that handles loading Metadatas and keeping them available. More...
#include "Bitcode/Reader/MetadataLoader.h"
Classes | |
class | MetadataLoaderImpl |
Public Member Functions | |
~MetadataLoader () | |
MetadataLoader (BitstreamCursor &Stream, Module &TheModule, BitcodeReaderValueList &ValueList, bool IsImporting, MetadataLoaderCallbacks Callbacks) | |
MetadataLoader & | operator= (MetadataLoader &&) |
MetadataLoader (MetadataLoader &&) | |
Error | parseModuleMetadata () |
Error | parseFunctionMetadata () |
void | setStripTBAA (bool StripTBAA=true) |
Set the mode to strip TBAA metadata on load. | |
bool | isStrippingTBAA () |
Return true if the Loader is stripping TBAA metadata. | |
bool | hasFwdRefs () const |
Metadata * | getMetadataFwdRefOrLoad (unsigned Idx) |
Return the given metadata, creating a replaceable forward reference if necessary. | |
DISubprogram * | lookupSubprogramForFunction (Function *F) |
Return the DISubprogram metadata for a Function if any, null otherwise. | |
Error | parseMetadataAttachment (Function &F, ArrayRef< Instruction * > InstructionList) |
Parse a METADATA_ATTACHMENT block for a function. | |
Error | parseMetadataKinds () |
Parse a METADATA_KIND block for the current module. | |
unsigned | size () const |
void | shrinkTo (unsigned N) |
void | upgradeDebugIntrinsics (Function &F) |
Perform bitcode upgrades on llvm.dbg.* calls. | |
Helper class that handles loading Metadatas and keeping them available.
Definition at line 48 of file MetadataLoader.h.
|
default |
MetadataLoader::MetadataLoader | ( | BitstreamCursor & | Stream, |
Module & | TheModule, | ||
BitcodeReaderValueList & | ValueList, | ||
bool | IsImporting, | ||
MetadataLoaderCallbacks | Callbacks | ||
) |
Definition at line 2495 of file MetadataLoader.cpp.
MetadataLoader::MetadataLoader | ( | MetadataLoader && | RHS | ) |
Definition at line 2491 of file MetadataLoader.cpp.
References RHS.
Return the given metadata, creating a replaceable forward reference if necessary.
Definition at line 2510 of file MetadataLoader.cpp.
References Idx.
bool MetadataLoader::hasFwdRefs | ( | ) | const |
Definition at line 2506 of file MetadataLoader.cpp.
bool MetadataLoader::isStrippingTBAA | ( | ) |
Return true if the Loader is stripping TBAA metadata.
Definition at line 2531 of file MetadataLoader.cpp.
DISubprogram * MetadataLoader::lookupSubprogramForFunction | ( | Function * | F | ) |
Return the DISubprogram metadata for a Function if any, null otherwise.
Definition at line 2514 of file MetadataLoader.cpp.
References F.
MetadataLoader & MetadataLoader::operator= | ( | MetadataLoader && | RHS | ) |
Definition at line 2487 of file MetadataLoader.cpp.
References RHS.
|
inline |
Definition at line 65 of file MetadataLoader.h.
References parseMetadata().
Error MetadataLoader::parseMetadataAttachment | ( | Function & | F, |
ArrayRef< Instruction * > | InstructionList | ||
) |
Parse a METADATA_ATTACHMENT
block for a function.
Definition at line 2518 of file MetadataLoader.cpp.
References F.
Error MetadataLoader::parseMetadataKinds | ( | ) |
Parse a METADATA_KIND
block for the current module.
Definition at line 2523 of file MetadataLoader.cpp.
|
inline |
Definition at line 62 of file MetadataLoader.h.
References parseMetadata().
Set the mode to strip TBAA metadata on load.
Definition at line 2527 of file MetadataLoader.cpp.
void MetadataLoader::shrinkTo | ( | unsigned | N | ) |
Definition at line 2534 of file MetadataLoader.cpp.
References N.
unsigned MetadataLoader::size | ( | ) | const |
Definition at line 2533 of file MetadataLoader.cpp.
void MetadataLoader::upgradeDebugIntrinsics | ( | Function & | F | ) |
Perform bitcode upgrades on llvm.dbg.* calls.
Definition at line 2536 of file MetadataLoader.cpp.
References F.