LLVM  5.0.0
Public Member Functions | List of all members
llvm::MetadataLoader::MetadataLoaderImpl Class Reference

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)
 
void upgradeDebugIntrinsics (Function &F)
 

Detailed Description

Definition at line 415 of file MetadataLoader.cpp.

Constructor & Destructor Documentation

llvm::MetadataLoader::MetadataLoaderImpl::MetadataLoaderImpl ( BitstreamCursor &  Stream,
Module &  TheModule,
BitcodeReaderValueList &  ValueList,
std::function< Type *(unsigned)>  getTypeByID,
bool  IsImporting 
)
inline

Definition at line 629 of file MetadataLoader.cpp.

References Context.

Member Function Documentation

MDNode* llvm::MetadataLoader::MetadataLoaderImpl::getMDNodeFwdRefOrNull ( unsigned  Idx)
inline

Definition at line 657 of file MetadataLoader.cpp.

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

Definition at line 641 of file MetadataLoader.cpp.

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

Definition at line 639 of file MetadataLoader.cpp.

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

Definition at line 665 of file MetadataLoader.cpp.

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

Definition at line 673 of file MetadataLoader.cpp.

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

Definition at line 661 of file MetadataLoader.cpp.

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

Parse a METADATA_BLOCK.

If ModuleLevel is true then we are parsing module level metadata.

Definition at line 847 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 
)
Error llvm::MetadataLoader::MetadataLoaderImpl::parseMetadataKinds ( )
void llvm::MetadataLoader::MetadataLoaderImpl::setStripTBAA ( bool  Value)
inline

Definition at line 672 of file MetadataLoader.cpp.

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

Definition at line 676 of file MetadataLoader.cpp.

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

Definition at line 675 of file MetadataLoader.cpp.

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

Definition at line 677 of file MetadataLoader.cpp.


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