ΒΆllvm::ModulePass* createBitcodeWriterPass(
llvm::raw_ostream& Str,
bool ShouldPreserveUseListOrder = false,
bool EmitSummaryIndex = false,
bool EmitModuleHash = false)
llvm::ModulePass* createBitcodeWriterPass(
llvm::raw_ostream& Str,
bool ShouldPreserveUseListOrder = false,
bool EmitSummaryIndex = false,
bool EmitModuleHash = false)
Description
Create and return a pass that writes the module to the specified ostream. Note that this pass is designed for use with the legacy pass manager. If \c ShouldPreserveUseListOrder, encode use-list order so it can be reproduced when deserialized. If \c EmitSummaryIndex, emit the summary index (currently for use in ThinLTO optimization). If \c EmitModuleHash, compute and emit the module hash in the bitcode (currently for use in ThinLTO incremental build).
Declared at: llvm/include/llvm/Bitcode/BitcodeWriterPass.h:38
Parameters
- llvm::raw_ostream& Str
- bool ShouldPreserveUseListOrder = false
- bool EmitSummaryIndex = false
- bool EmitModuleHash = false