LLVM  4.0.0
Public Member Functions | Friends | List of all members
llvm::BitcodeModule Class Reference

Represents a module in a bitcode file. More...

#include <BitcodeReader.h>

Public Member Functions

StringRef getBuffer () const
 
StringRef getModuleIdentifier () const
 
Expected< std::unique_ptr
< Module > > 
getLazyModule (LLVMContext &Context, bool ShouldLazyLoadMetadata, bool IsImporting)
 Read the bitcode module and prepare for lazy deserialization of function bodies. More...
 
Expected< std::unique_ptr
< Module > > 
parseModule (LLVMContext &Context)
 Read the entire bitcode module and return it. More...
 
Expected< boolhasSummary ()
 Check if the given bitcode buffer contains a summary block. More...
 
Expected< std::unique_ptr
< ModuleSummaryIndex > > 
getSummary ()
 Parse the specified bitcode buffer, returning the module summary index. More...
 

Friends

Expected< std::vector
< BitcodeModule > > 
getBitcodeModuleList (MemoryBufferRef Buffer)
 Returns a list of modules in the specified bitcode buffer. More...
 

Detailed Description

Represents a module in a bitcode file.

Definition at line 44 of file BitcodeReader.h.

Member Function Documentation

StringRef llvm::BitcodeModule::getBuffer ( ) const
inline

Definition at line 70 of file BitcodeReader.h.

Expected< std::unique_ptr< Module > > BitcodeModule::getLazyModule ( LLVMContext Context,
bool  ShouldLazyLoadMetadata,
bool  IsImporting 
)

Read the bitcode module and prepare for lazy deserialization of function bodies.

If ShouldLazyLoadMetadata is true, lazily load metadata as well. If IsImporting is true, this module is being parsed for ThinLTO importing into another module.

Definition at line 5264 of file BitcodeReader.cpp.

StringRef llvm::BitcodeModule::getModuleIdentifier ( ) const
inline

Definition at line 74 of file BitcodeReader.h.

Expected< std::unique_ptr< ModuleSummaryIndex > > BitcodeModule::getSummary ( )

Parse the specified bitcode buffer, returning the module summary index.

Definition at line 5270 of file BitcodeReader.cpp.

References llvm::SimpleBitstreamCursor::JumpToBit().

Expected< bool > BitcodeModule::hasSummary ( )
Expected< std::unique_ptr< Module > > BitcodeModule::parseModule ( LLVMContext Context)

Read the entire bitcode module and return it.

Definition at line 5348 of file BitcodeReader.cpp.

Friends And Related Function Documentation

Expected<std::vector<BitcodeModule> > getBitcodeModuleList ( MemoryBufferRef  Buffer)
friend

Returns a list of modules in the specified bitcode buffer.


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