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 ModuleToSummariesForIndex map. DecSummaries specifies the set of summaries for which the corresponding value should be imported as a declaration (prototype).
Declared in <llvm/Bitcode/BitcodeWriter.h>
void
writeIndexToFile(
ModuleSummaryIndex const& Index,
raw_ostream& Out,
ModuleToSummariesForIndexTy const* ModuleToSummariesForIndex = nullptr,
GVSummaryPtrSet const* DecSummaries = nullptr);
| Name | Description |
|---|---|
| Index | Class to hold module path string table and global value map, and encapsulate methods for operating on them. |
| Out | This class implements an extremely fast bulk output stream that can only output to a stream. It does not support seeking, reopening, rewinding, line buffered disciplines etc. It is a simple buffer that outputs a chunk at a time. |
| ModuleToSummariesForIndex | Map of a module name to the GUIDs and summaries we will import from that module. |
| DecSummaries | A set of global value summary pointers. |