LLVM  4.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
 
MetadatagetMetadataFwdRefOrLoad (unsigned ID)
 
MDNodegetMDNodeFwdRefOrNull (unsigned Idx)
 
DISubprogramlookupSubprogramForFunction (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)
 

Detailed Description

Definition at line 406 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 517 of file MetadataLoader.cpp.

References Context.

Member Function Documentation

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

Definition at line 545 of file MetadataLoader.cpp.

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

Definition at line 529 of file MetadataLoader.cpp.

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

Definition at line 527 of file MetadataLoader.cpp.

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

Definition at line 553 of file MetadataLoader.cpp.

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

Definition at line 561 of file MetadataLoader.cpp.

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

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

Definition at line 560 of file MetadataLoader.cpp.

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

Definition at line 564 of file MetadataLoader.cpp.

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

Definition at line 563 of file MetadataLoader.cpp.


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