llir-opt
0.0.1
Low-Level Post-Link Optimiser for OCaml and C
|
#include <emitter/runtime_printer.h>
Public Member Functions | |
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. | |
Protected Member Functions | |
virtual void | EmitCamlCallGc (llvm::Function &F)=0 |
Emits caml_call_gc. | |
virtual void | EmitCamlCCall (llvm::Function &F)=0 |
Emits caml_c_call. | |
Protected Attributes | |
const Prog & | prog_ |
Program to print. | |
const llvm::TargetMachine & | tm_ |
Reference to the target machine. | |
llvm::MCContext & | ctx_ |
LLVM context. | |
llvm::MCStreamer & | os_ |
Streamer to emit output to. | |
const llvm::MCObjectFileInfo & | objInfo_ |
Object-file specific information. | |
const llvm::DataLayout | layout_ |
Data layout. | |
bool | shared_ |
Flag to indicate whether a shared library or a static library is built. | |
Pass to print runtime methods to the output object.