29 bool ShouldPreserveUseListOrder;
33 explicit WriteBitcodePass(
raw_ostream &o,
bool ShouldPreserveUseListOrder)
35 ShouldPreserveUseListOrder(ShouldPreserveUseListOrder) {}
37 const char *getPassName()
const override {
return "Bitcode Writer"; }
39 bool runOnModule(
Module &M)
override {
49 bool ShouldPreserveUseListOrder) {
50 return new WriteBitcodePass(Str, ShouldPreserveUseListOrder);
A Module instance is used to store all the information related to an LLVM module. ...
This file provides a bitcode writing pass.
ModulePass * createBitcodeWriterPass(raw_ostream &Str, bool ShouldPreserveUseListOrder=false)
Create and return a pass that writes the module to the specified ostream.
An abstract set of preserved analyses following a transformation pass run.
void WriteBitcodeToFile(const Module *M, raw_ostream &Out, bool ShouldPreserveUseListOrder=false)
Write the specified module to the specified raw output stream.
static PreservedAnalyses all()
Construct a special preserved set that preserves all passes.
Module.h This file contains the declarations for the Module class.
ModulePass class - This class is used to implement unstructured interprocedural optimizations and ana...
This class implements an extremely fast bulk output stream that can only output to a stream...
PreservedAnalyses run(Module &M)
Run the bitcode writer pass, and output the module to the selected output stream. ...
This header defines various interfaces for pass management in LLVM.