|
LLVM
4.0.0
|
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< bool > | hasSummary () |
| 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... | |
Represents a module in a bitcode file.
Definition at line 44 of file BitcodeReader.h.
|
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.
|
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().
Check if the given bitcode buffer contains a summary block.
Definition at line 5284 of file BitcodeReader.cpp.
References llvm::BitstreamCursor::advance(), llvm::BitstreamEntry::EndBlock, llvm::BitstreamCursor::EnterSubBlock(), llvm::BitstreamEntry::Error, error(), llvm::bitc::GLOBALVAL_SUMMARY_BLOCK_ID, llvm::BitstreamEntry::ID, llvm::SimpleBitstreamCursor::JumpToBit(), llvm::BitstreamEntry::Kind, llvm::bitc::MODULE_BLOCK_ID, llvm::BitstreamEntry::Record, llvm::BitstreamCursor::SkipBlock(), llvm::BitstreamCursor::skipRecord(), and llvm::BitstreamEntry::SubBlock.
| 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.
|
friend |
Returns a list of modules in the specified bitcode buffer.
1.8.6