LLVM 22.0.0git
|
Public Member Functions | |
MetadataLoaderImpl (BitstreamCursor &Stream, Module &TheModule, BitcodeReaderValueList &ValueList, MetadataLoaderCallbacks Callbacks, bool IsImporting) | |
Error | parseMetadata (bool ModuleLevel) |
Parse a METADATA_BLOCK. | |
bool | hasFwdRefs () const |
Metadata * | getMetadataFwdRefOrLoad (unsigned ID) |
DISubprogram * | lookupSubprogramForFunction (Function *F) |
bool | hasSeenOldLoopTags () const |
Error | parseMetadataAttachment (Function &F, ArrayRef< Instruction * > InstructionList) |
Parse metadata attachments. | |
Error | parseMetadataKinds () |
Parse the metadata kinds out of the METADATA_KIND_BLOCK. | |
void | setStripTBAA (bool Value) |
bool | isStrippingTBAA () const |
unsigned | size () const |
void | shrinkTo (unsigned N) |
void | upgradeDebugIntrinsics (Function &F) |
Definition at line 396 of file MetadataLoader.cpp.
|
inline |
Definition at line 716 of file MetadataLoader.cpp.
References llvm::move().
Definition at line 728 of file MetadataLoader.cpp.
|
inline |
Definition at line 726 of file MetadataLoader.cpp.
|
inline |
Definition at line 748 of file MetadataLoader.cpp.
|
inline |
Definition at line 756 of file MetadataLoader.cpp.
|
inline |
Definition at line 744 of file MetadataLoader.cpp.
References F.
Parse a METADATA_BLOCK.
If ModuleLevel is true then we are parsing module level metadata.
Definition at line 1049 of file MetadataLoader.cpp.
References assert(), llvm::consumeError(), DisableLazyLoading, llvm::BitstreamEntry::EndBlock, llvm::BitstreamEntry::Error, error, llvm::Expected< T >::get(), llvm::bitc::METADATA_BLOCK_ID, llvm::BitstreamEntry::Record, llvm::BitstreamEntry::SubBlock, llvm::Error::success(), and llvm::Expected< T >::takeError().
Error llvm::MetadataLoader::MetadataLoaderImpl::parseMetadataAttachment | ( | Function & | F, |
ArrayRef< Instruction * > | InstructionList ) |
Parse metadata attachments.
Definition at line 2456 of file MetadataLoader.cpp.
References assert(), llvm::dyn_cast_or_null(), llvm::BitstreamEntry::EndBlock, llvm::BitstreamEntry::Error, error, F, llvm::Expected< T >::get(), I, llvm::isa(), llvm::MDNode::isTemporary(), llvm::bitc::METADATA_ATTACHMENT, llvm::bitc::METADATA_ATTACHMENT_ID, llvm::BitstreamEntry::Record, llvm::Instruction::setMetadata(), llvm::BitstreamEntry::SubBlock, llvm::Error::success(), llvm::Expected< T >::takeError(), llvm::upgradeInstructionLoopAttachment(), and llvm::UpgradeTBAANode().
Error llvm::MetadataLoader::MetadataLoaderImpl::parseMetadataKinds | ( | ) |
Parse the metadata kinds out of the METADATA_KIND_BLOCK.
Definition at line 2560 of file MetadataLoader.cpp.
References llvm::BitstreamEntry::EndBlock, llvm::BitstreamEntry::Error, error, llvm::Expected< T >::get(), llvm::bitc::METADATA_KIND, llvm::bitc::METADATA_KIND_BLOCK_ID, llvm::BitstreamEntry::Record, llvm::BitstreamEntry::SubBlock, llvm::Error::success(), and llvm::Expected< T >::takeError().
|
inline |
Definition at line 755 of file MetadataLoader.cpp.
|
inline |
Definition at line 759 of file MetadataLoader.cpp.
References N.
|
inline |
Definition at line 758 of file MetadataLoader.cpp.
|
inline |
Definition at line 760 of file MetadataLoader.cpp.
References F.