class BitcodeModule

Declaration

class BitcodeModule { /* full declaration omitted */ };

Description

Represents a module in a bitcode file.

Declared at: llvm/include/llvm/Bitcode/BitcodeReader.h:57

Method Overview

  • public llvm::StringRef getBuffer() const
  • public Expected<llvm::BitcodeLTOInfo> getLTOInfo()
  • public Expected<std::unique_ptr<Module>> getLazyModule(llvm::LLVMContext & Context, bool ShouldLazyLoadMetadata, bool IsImporting)
  • public llvm::StringRef getModuleIdentifier() const
  • public llvm::StringRef getStrtab() const
  • public Expected<std::unique_ptr<ModuleSummaryIndex>> getSummary()
  • public Expected<std::unique_ptr<Module>> parseModule(llvm::LLVMContext & Context)
  • public llvm::Error readSummary(llvm::ModuleSummaryIndex & CombinedIndex, llvm::StringRef ModulePath, uint64_t ModuleId)

Methods

llvm::StringRef getBuffer() const

Declared at: llvm/include/llvm/Bitcode/BitcodeReader.h:86

Expected<llvm::BitcodeLTOInfo> getLTOInfo()

Description

Returns information about the module to be used for LTO: whether to compile with ThinLTO, and whether it has a summary.

Declared at: llvm/include/llvm/Bitcode/BitcodeReader.h:107

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

Description

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.

Declared at: llvm/include/llvm/Bitcode/BitcodeReader.h:98

Parameters

llvm::LLVMContext& Context
bool ShouldLazyLoadMetadata
bool IsImporting

llvm::StringRef getModuleIdentifier() const

Declared at: llvm/include/llvm/Bitcode/BitcodeReader.h:92

llvm::StringRef getStrtab() const

Declared at: llvm/include/llvm/Bitcode/BitcodeReader.h:90

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

Description

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

Declared at: llvm/include/llvm/Bitcode/BitcodeReader.h:110

Expected<std::unique_ptr<Module>> parseModule(
    llvm::LLVMContext& Context)

Description

Read the entire bitcode module and return it.

Declared at: llvm/include/llvm/Bitcode/BitcodeReader.h:103

Parameters

llvm::LLVMContext& Context

llvm::Error readSummary(
    llvm::ModuleSummaryIndex& CombinedIndex,
    llvm::StringRef ModulePath,
    uint64_t ModuleId)

Description

Parse the specified bitcode buffer and merge its module summary index into CombinedIndex.

Declared at: llvm/include/llvm/Bitcode/BitcodeReader.h:114

Parameters

llvm::ModuleSummaryIndex& CombinedIndex
llvm::StringRef ModulePath
uint64_t ModuleId