|
LLVM
8.0.1
|
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, std::function< Type *(unsigned)> getTypeByID) | |
| MetadataLoader & | operator= (MetadataLoader &&) |
| MetadataLoader (MetadataLoader &&) | |
| Error | parseModuleMetadata () |
| Error | parseFunctionMetadata () |
| void | setStripTBAA (bool StripTBAA=true) |
| Set the mode to strip TBAA metadata on load. More... | |
| bool | isStrippingTBAA () |
| Return true if the Loader is stripping TBAA metadata. More... | |
| bool | hasFwdRefs () const |
| Metadata * | getMetadataFwdRefOrLoad (unsigned Idx) |
| Return the given metadata, creating a replaceable forward reference if necessary. More... | |
| DISubprogram * | lookupSubprogramForFunction (Function *F) |
| Return the DISubprogram metadata for a Function if any, null otherwise. More... | |
| Error | parseMetadataAttachment (Function &F, const SmallVectorImpl< Instruction *> &InstructionList) |
Parse a METADATA_ATTACHMENT block for a function. More... | |
| Error | parseMetadataKinds () |
Parse a METADATA_KIND block for the current module. More... | |
| unsigned | size () const |
| void | shrinkTo (unsigned N) |
| void | upgradeDebugIntrinsics (Function &F) |
| Perform bitcode upgrades on llvm.dbg.* calls. More... | |
Helper class that handles loading Metadatas and keeping them available.
Definition at line 36 of file MetadataLoader.h.
|
default |
Referenced by MetadataLoader().
| MetadataLoader::MetadataLoader | ( | BitstreamCursor & | Stream, |
| Module & | TheModule, | ||
| BitcodeReaderValueList & | ValueList, | ||
| bool | IsImporting, | ||
| std::function< Type *(unsigned)> | getTypeByID | ||
| ) |
Definition at line 2005 of file MetadataLoader.cpp.
| MetadataLoader::MetadataLoader | ( | MetadataLoader && | RHS | ) |
Definition at line 2001 of file MetadataLoader.cpp.
References ~MetadataLoader().
Return the given metadata, creating a replaceable forward reference if necessary.
Definition at line 2020 of file MetadataLoader.cpp.
Referenced by parseFunctionMetadata(), and readTriple().
| bool MetadataLoader::hasFwdRefs | ( | ) | const |
Definition at line 2016 of file MetadataLoader.cpp.
Referenced by parseFunctionMetadata().
| bool MetadataLoader::isStrippingTBAA | ( | ) |
Return true if the Loader is stripping TBAA metadata.
Definition at line 2041 of file MetadataLoader.cpp.
Referenced by parseFunctionMetadata().
| DISubprogram * MetadataLoader::lookupSubprogramForFunction | ( | Function * | F | ) |
Return the DISubprogram metadata for a Function if any, null otherwise.
Definition at line 2024 of file MetadataLoader.cpp.
Referenced by parseFunctionMetadata().
| MetadataLoader & MetadataLoader::operator= | ( | MetadataLoader && | RHS | ) |
Definition at line 1997 of file MetadataLoader.cpp.
|
inline |
Definition at line 53 of file MetadataLoader.h.
References F(), getMetadataFwdRefOrLoad(), hasFwdRefs(), isStrippingTBAA(), lookupSubprogramForFunction(), N, parseMetadataAttachment(), parseMetadataKinds(), setStripTBAA(), shrinkTo(), size(), and upgradeDebugIntrinsics().
| Error MetadataLoader::parseMetadataAttachment | ( | Function & | F, |
| const SmallVectorImpl< Instruction *> & | InstructionList | ||
| ) |
Parse a METADATA_ATTACHMENT block for a function.
Definition at line 2028 of file MetadataLoader.cpp.
Referenced by parseFunctionMetadata().
| Error MetadataLoader::parseMetadataKinds | ( | ) |
Parse a METADATA_KIND block for the current module.
Definition at line 2033 of file MetadataLoader.cpp.
Referenced by parseFunctionMetadata().
|
inline |
Definition at line 50 of file MetadataLoader.h.
Set the mode to strip TBAA metadata on load.
Definition at line 2037 of file MetadataLoader.cpp.
Referenced by parseFunctionMetadata().
| void MetadataLoader::shrinkTo | ( | unsigned | N | ) |
Definition at line 2044 of file MetadataLoader.cpp.
Referenced by parseFunctionMetadata().
| unsigned MetadataLoader::size | ( | ) | const |
Definition at line 2043 of file MetadataLoader.cpp.
Referenced by parseFunctionMetadata().
| void MetadataLoader::upgradeDebugIntrinsics | ( | Function & | F | ) |
Perform bitcode upgrades on llvm.dbg.* calls.
Definition at line 2046 of file MetadataLoader.cpp.
Referenced by parseFunctionMetadata().
1.8.13