package llvm

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

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 the llvm::PassManagerBuilder function.

val set_opt_level : int -> t -> unit

See the llvm::PassManagerBuilder::OptLevel function.

val set_size_level : int -> t -> unit

See the llvm::PassManagerBuilder::SizeLevel function.

val set_disable_unit_at_a_time : bool -> t -> unit

See the llvm::PassManagerBuilder::DisableUnitAtATime function.

val set_disable_unroll_loops : bool -> t -> unit

See the llvm::PassManagerBuilder::DisableUnrollLoops function.

val use_inliner_with_threshold : int -> t -> unit

See the llvm::PassManagerBuilder::Inliner function.

val populate_function_pass_manager : [ `Function ] Llvm.PassManager.t -> t -> unit

See the llvm::PassManagerBuilder::populateFunctionPassManager function.

val populate_module_pass_manager : [ `Module ] Llvm.PassManager.t -> t -> unit

See the llvm::PassManagerBuilder::populateModulePassManager function.