llir-opt
0.0.1
Low-Level Post-Link Optimiser for OCaml and C
|
8 #include <llvm/MC/MCObjectFileInfo.h>
9 #include <llvm/MC/MCStreamer.h>
10 #include <llvm/Target/TargetMachine.h>
26 const llvm::TargetMachine &tm,
29 const llvm::MCObjectFileInfo &objInfo,
35 bool runOnModule(llvm::Module &M)
override;
37 void getAnalysisUsage(llvm::AnalysisUsage &AU)
const override;
49 const llvm::TargetMachine &
tm_;
53 llvm::MCStreamer &
os_;
llvm::MCContext & ctx_
LLVM context.
Definition: runtime_printer.h:51
bool shared_
Flag to indicate whether a shared library or a static library is built.
Definition: runtime_printer.h:59
RuntimePrinter(char &ID, const Prog &Prog, const llvm::TargetMachine &tm, llvm::MCContext &ctx, llvm::MCStreamer &os, const llvm::MCObjectFileInfo &objInfo, bool shared)
Initialises the pass which prints data sections.
Definition: runtime_printer.cpp:25
const llvm::DataLayout layout_
Data layout.
Definition: runtime_printer.h:57
const llvm::TargetMachine & tm_
Reference to the target machine.
Definition: runtime_printer.h:49
const Prog & prog_
Program to print.
Definition: runtime_printer.h:47
virtual void EmitCamlCallGc(llvm::Function &F)=0
Emits caml_call_gc.
const llvm::MCObjectFileInfo & objInfo_
Object-file specific information.
Definition: runtime_printer.h:55
virtual void EmitCamlCCall(llvm::Function &F)=0
Emits caml_c_call.
Definition: runtime_printer.h:20
llvm::MCStreamer & os_
Streamer to emit output to.
Definition: runtime_printer.h:53