ΒΆllvm::Error thinBackend(
    const llvm::lto::Config& C,
    unsigned int Task,
    llvm::AddStreamFn AddStream,
    llvm::Module& M,
    const llvm::ModuleSummaryIndex& CombinedIndex,
    const FunctionImporter::ImportMapTy&
        ImportList,
    const llvm::GVSummaryMapTy& DefinedGlobals,
    MapVector<llvm::StringRef,
              llvm::BitcodeModule>* ModuleMap,
    const std::vector<uint8_t>& CmdArgs = std::
        vector<unsigned char,
               std::allocator<unsigned char>>())

Description

Runs a ThinLTO backend. If \p ModuleMap is not nullptr, all the module files to be imported have already been mapped to memory and the corresponding BitcodeModule objects are saved in the ModuleMap. If \p ModuleMap is nullptr, module files will be mapped to memory on demand and at any given time during importing, only one source module will be kept open at the most.

Declared at: llvm/include/llvm/LTO/LTOBackend.h:54

Parameters

const llvm::lto::Config& C
unsigned int Task
llvm::AddStreamFn AddStream
llvm::Module& M
const llvm::ModuleSummaryIndex& CombinedIndex
const FunctionImporter::ImportMapTy& ImportList
const llvm::GVSummaryMapTy& DefinedGlobals
MapVector<llvm::StringRef, llvm::BitcodeModule>* ModuleMap
const std::vector<uint8_t>& CmdArgs = std::vector<unsigned char, std::allocator<unsigned char>>()