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.
Declared in <llvm/Bitcode/BitcodeWriterPass.h>
ModulePass*
createBitcodeWriterPass(
raw_ostream& Str,
bool ShouldPreserveUseListOrder = false);
If ShouldPreserveUseListOrder, encode use-list order so it can be reproduced when deserialized.
ModulePass class - This class is used to implement unstructured interprocedural optimizations and analyses. ModulePasses may do anything they want to the program.
| Name | Description |
|---|---|
| Str | 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. |