Write a module summary index to Out as a new bitcode block.
Declared in <llvm/Bitcode/BitcodeWriter.h>
void
writeIndexToFile(
ModuleSummaryIndex const& Index,
raw_ostream& Out,
ModuleToSummariesForIndexTy const* ModuleToSummariesForIndex = nullptr,
GVSummaryPtrSet const* DecSummaries = nullptr);
Used when writing the combined index file for ThinLTO. When writing a subset of the index for a distributed backend, provide ModuleToSummariesForIndex.
| Name | Description |
|---|---|
| Index | Combined or per-module summary index to write. |
| Out | Stream that receives the encoded index bitcode. |
| ModuleToSummariesForIndex | Optional map from module name to the summaries to include for a distributed ThinLTO backend. |
| DecSummaries | Optional set of summaries whose values should be imported as declarations (prototypes). |