LLVM 24.0.0git
llvm::MetadataLoader::MetadataLoaderImpl Class Reference

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
MDNode * upgradeAliasScopeList (MDNode *ScopeList)
 Mark any domains in ScopeList that don't have a disjointness flag as non-disjoint.
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)

Detailed Description

Definition at line 446 of file MetadataLoader.cpp.

Constructor & Destructor Documentation

◆ MetadataLoaderImpl()

llvm::MetadataLoader::MetadataLoaderImpl::MetadataLoaderImpl ( BitstreamCursor & Stream,
Module & TheModule,
BitcodeReaderValueList & ValueList,
MetadataLoaderCallbacks Callbacks,
bool IsImporting )
inline

Definition at line 819 of file MetadataLoader.cpp.

References llvm::getBitReaderOptions(), getContext(), and llvm::move().

Member Function Documentation

◆ getMetadataFwdRefOrLoad()

Metadata * llvm::MetadataLoader::MetadataLoaderImpl::getMetadataFwdRefOrLoad ( unsigned ID)
inline

Definition at line 832 of file MetadataLoader.cpp.

References llvm::dbgs(), and LLVM_DEBUG.

◆ hasFwdRefs()

bool llvm::MetadataLoader::MetadataLoaderImpl::hasFwdRefs ( ) const
inline

Definition at line 830 of file MetadataLoader.cpp.

◆ hasSeenOldLoopTags()

bool llvm::MetadataLoader::MetadataLoaderImpl::hasSeenOldLoopTags ( ) const
inline

Definition at line 853 of file MetadataLoader.cpp.

◆ isStrippingTBAA()

bool llvm::MetadataLoader::MetadataLoaderImpl::isStrippingTBAA ( ) const
inline

Definition at line 884 of file MetadataLoader.cpp.

◆ lookupSubprogramForFunction()

DISubprogram * llvm::MetadataLoader::MetadataLoaderImpl::lookupSubprogramForFunction ( Function * F)
inline

Definition at line 849 of file MetadataLoader.cpp.

References F.

◆ parseMetadata()

Error llvm::MetadataLoader::MetadataLoaderImpl::parseMetadata ( bool ModuleLevel)

◆ parseMetadataAttachment()

◆ parseMetadataKinds()

◆ setStripTBAA()

void llvm::MetadataLoader::MetadataLoaderImpl::setStripTBAA ( bool Value)
inline

Definition at line 883 of file MetadataLoader.cpp.

◆ shrinkTo()

void llvm::MetadataLoader::MetadataLoaderImpl::shrinkTo ( unsigned N)
inline

Definition at line 887 of file MetadataLoader.cpp.

References N.

◆ size()

unsigned llvm::MetadataLoader::MetadataLoaderImpl::size ( ) const
inline

Definition at line 886 of file MetadataLoader.cpp.

◆ upgradeAliasScopeList()

MDNode * llvm::MetadataLoader::MetadataLoaderImpl::upgradeAliasScopeList ( MDNode * ScopeList)
inline

Mark any domains in ScopeList that don't have a disjointness flag as non-disjoint.

Returns the original list if there are no changes.

Definition at line 857 of file MetadataLoader.cpp.

References AbstractManglingParser< Derived, Alloc >::Ops, Changed, llvm::dyn_cast(), llvm::MDNode::get(), llvm::MDNode::getContext(), llvm::MDNode::operands(), and upgradeAliasScope().

Referenced by parseMetadataAttachment().

◆ upgradeDebugIntrinsics()

void llvm::MetadataLoader::MetadataLoaderImpl::upgradeDebugIntrinsics ( Function & F)
inline

Definition at line 888 of file MetadataLoader.cpp.

References F.


The documentation for this class was generated from the following file: