ΒΆvoid WriteIndexToFile(
    const llvm::ModuleSummaryIndex& Index,
    llvm::raw_ostream& Out,
    const std::map<std::string, GVSummaryMapTy>*
        ModuleToSummariesForIndex = nullptr)

Description

Write the specified module summary index to the given raw output stream, where it will be written in a new bitcode block. This is used when writing the combined index file for ThinLTO. When writing a subset of the index for a distributed backend, provide the \p ModuleToSummariesForIndex map.

Declared at: llvm/include/llvm/Bitcode/BitcodeWriter.h:151

Parameters

const llvm::ModuleSummaryIndex& Index
llvm::raw_ostream& Out
const std::map<std::string, GVSummaryMapTy>* ModuleToSummariesForIndex = nullptr