Module Llvm_passmgr_builder


module Llvm_passmgr_builder: sig .. end
Pass Manager Builder.

This interface provides an OCaml API for LLVM pass manager builder from the LLVMCore library.


type t 
val create : unit -> t
See llvm::PassManagerBuilder.
val set_opt_level : int -> t -> unit
See llvm::PassManagerBuilder::OptLevel.
val set_size_level : int -> t -> unit
See llvm::PassManagerBuilder::SizeLevel.
val set_disable_unit_at_a_time : bool -> t -> unit
See llvm::PassManagerBuilder::DisableUnitAtATime.
val set_disable_unroll_loops : bool -> t -> unit
See llvm::PassManagerBuilder::DisableUnrollLoops.
val use_inliner_with_threshold : int -> t -> unit
See llvm::PassManagerBuilder::Inliner.
val populate_function_pass_manager : [ `Function ] Llvm.PassManager.t -> t -> unit
See llvm::PassManagerBuilder::populateFunctionPassManager.
val populate_module_pass_manager : [ `Module ] Llvm.PassManager.t -> t -> unit
See llvm::PassManagerBuilder::populateModulePassManager.
val populate_lto_pass_manager : [ `Module ] Llvm.PassManager.t ->
internalize:bool -> run_inliner:bool -> t -> unit
See llvm::PassManagerBuilder::populateLTOPassManager.