class BitcodeWriterPass
Declaration
class BitcodeWriterPass : public PassInfoMixin { /* full declaration omitted */ };
Description
Pass for writing a module of IR out to a bitcode file. Note that this is intended for use with the new pass manager. To construct a pass for the legacy pass manager, use the function above.
Declared at: llvm/include/llvm/Bitcode/BitcodeWriterPass.h:50
Inherits from: PassInfoMixin
Method Overview
- public BitcodeWriterPass(llvm::raw_ostream & OS, bool ShouldPreserveUseListOrder = false, bool EmitSummaryIndex = false, bool EmitModuleHash = false)
- public llvm::PreservedAnalyses run(llvm::Module & M, llvm::ModuleAnalysisManager &)
Methods
¶BitcodeWriterPass(
llvm::raw_ostream& OS,
bool ShouldPreserveUseListOrder = false,
bool EmitSummaryIndex = false,
bool EmitModuleHash = false)
BitcodeWriterPass(
llvm::raw_ostream& OS,
bool ShouldPreserveUseListOrder = false,
bool EmitSummaryIndex = false,
bool EmitModuleHash = false)
Description
Construct a bitcode writer pass around a particular output stream. 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).
Declared at: llvm/include/llvm/Bitcode/BitcodeWriterPass.h:64
Parameters
- llvm::raw_ostream& OS
- bool ShouldPreserveUseListOrder = false
- bool EmitSummaryIndex = false
- bool EmitModuleHash = false
¶llvm::PreservedAnalyses run(
llvm::Module& M,
llvm::ModuleAnalysisManager&)
llvm::PreservedAnalyses run(
llvm::Module& M,
llvm::ModuleAnalysisManager&)
Description
Run the bitcode writer pass, and output the module to the selected output stream.
Declared at: llvm/include/llvm/Bitcode/BitcodeWriterPass.h:73