llvm::BitcodeModule

Represents a module in a bitcode file.

Synopsis

Declared in <llvm/Bitcode/BitcodeReader.h>

class BitcodeModule;

Member Functions

NameDescription
getBuffer Return the raw bitcode bytes for this module.
getLTOInfo Returns information about the module to be used for LTO: whether to compile with ThinLTO, and whether it has a summary.
getLazyModule Read the bitcode module and prepare for lazy function deserialization.
getModuleIdentifier Return the module identifier string for this bitcode module.
getStrtab Return the string table used to interpret this module.
getSummary Parse the specified bitcode buffer, returning the module summary index.
parseModule Read the entire bitcode module and return it.
readSummary Parse the specified bitcode buffer and merge its module summary index into CombinedIndex.
setModuleIdentifier Assign a new module identifier to this bitcode module.

Friends

NameDescription
llvm::getBitcodeFileContentsReturn the modules and raw symbol table from a bitcode buffer.

Non-Member Functions

NameDescription
cgdata::loadModuleForTwoRoundsLoad the optimized bitcode module for the second codegen round.
lto::findThinLTOModuleVariant of the above.
lto::findThinLTOModuleReturns the BitcodeModule that is ThinLTO.