|
LLVM
4.0.0
|
Public Member Functions | |
| MetadataLoaderImpl (BitstreamCursor &Stream, Module &TheModule, BitcodeReaderValueList &ValueList, std::function< Type *(unsigned)> getTypeByID, bool IsImporting) | |
| Error | parseMetadata (bool ModuleLevel) |
| Parse a METADATA_BLOCK. More... | |
| bool | hasFwdRefs () const |
| Metadata * | getMetadataFwdRefOrLoad (unsigned ID) |
| MDNode * | getMDNodeFwdRefOrNull (unsigned Idx) |
| DISubprogram * | lookupSubprogramForFunction (Function *F) |
| bool | hasSeenOldLoopTags () |
| Error | parseMetadataAttachment (Function &F, const SmallVectorImpl< Instruction * > &InstructionList) |
| Parse metadata attachments. More... | |
| Error | parseMetadataKinds () |
| Parse the metadata kinds out of the METADATA_KIND_BLOCK. More... | |
| void | setStripTBAA (bool Value) |
| bool | isStrippingTBAA () |
| unsigned | size () const |
| void | shrinkTo (unsigned N) |
Definition at line 406 of file MetadataLoader.cpp.
|
inline |
Definition at line 517 of file MetadataLoader.cpp.
References Context.
Definition at line 545 of file MetadataLoader.cpp.
Definition at line 529 of file MetadataLoader.cpp.
|
inline |
Definition at line 527 of file MetadataLoader.cpp.
|
inline |
Definition at line 553 of file MetadataLoader.cpp.
|
inline |
Definition at line 561 of file MetadataLoader.cpp.
|
inline |
Definition at line 549 of file MetadataLoader.cpp.
Parse a METADATA_BLOCK.
If ModuleLevel is true then we are parsing module level metadata.
Definition at line 739 of file MetadataLoader.cpp.
References llvm::SmallVectorImpl< T >::clear(), DisableLazyLoading, llvm::lltok::Error, error(), llvm::BitstreamEntry::ID, llvm::BitstreamEntry::Kind, llvm::bitc::METADATA_BLOCK_ID, and success.
| Error llvm::MetadataLoader::MetadataLoaderImpl::parseMetadataAttachment | ( | Function & | F, |
| const SmallVectorImpl< Instruction * > & | InstructionList | ||
| ) |
Parse metadata attachments.
Definition at line 1663 of file MetadataLoader.cpp.
References assert(), llvm::SmallVectorImpl< T >::clear(), llvm::SmallVectorBase::empty(), llvm::DenseMapBase< DenseMap< KeyT, ValueT, KeyInfoT, BucketT >, KeyT, ValueT, KeyInfoT, BucketT >::end(), llvm::lltok::Error, error(), i, llvm::BitstreamEntry::ID, llvm::MDNode::isTemporary(), llvm::BitstreamEntry::Kind, Kind, llvm::bitc::METADATA_ATTACHMENT, llvm::bitc::METADATA_ATTACHMENT_ID, llvm::Instruction::setMetadata(), llvm::SmallVectorTemplateCommon< T >::size(), success, llvm::upgradeInstructionLoopAttachment(), and llvm::UpgradeTBAANode().
| Error llvm::MetadataLoader::MetadataLoaderImpl::parseMetadataKinds | ( | ) |
Parse the metadata kinds out of the METADATA_KIND_BLOCK.
Definition at line 1762 of file MetadataLoader.cpp.
References llvm::SmallVectorImpl< T >::clear(), llvm::lltok::Error, error(), llvm::BitstreamEntry::ID, llvm::BitstreamEntry::Kind, llvm::bitc::METADATA_KIND, llvm::bitc::METADATA_KIND_BLOCK_ID, and success.
|
inline |
Definition at line 560 of file MetadataLoader.cpp.
|
inline |
Definition at line 564 of file MetadataLoader.cpp.
|
inline |
Definition at line 563 of file MetadataLoader.cpp.
1.8.6