1 (*===-- llvm_ipo.mli - LLVM Ocaml Interface ------------*- OCaml -*-===*
3 * The LLVM Compiler Infrastructure
5 * This file is distributed under the University of Illinois Open Source
6 * License. See LICENSE.TXT for details.
8 *===----------------------------------------------------------------------===*)
12 This interface provides an ocaml API for LLVM interprocedural optimizations, the
13 classes in the [LLVMIPO] library. *)
15 (** See llvm::createAddArgumentPromotionPass *)
16 external add_argument_promotion : [ | `Module ] Llvm.PassManager.t -> unit =
18 "llvm_add_argument_promotion"
19 (** See llvm::createConstantMergePass function. *)
20 external add_constant_merge : [ | `Module ] Llvm.PassManager.t -> unit =
21 "llvm_add_constant_merge"
23 (** See llvm::createDeadArgEliminationPass function. *)
24 external add_dead_arg_elimination :
25 [ | `Module ] Llvm.PassManager.t -> unit = "llvm_add_dead_arg_elimination"
27 (** See llvm::createFunctionAttrsPass function. *)
28 external add_function_attrs : [ | `Module ] Llvm.PassManager.t -> unit =
29 "llvm_add_function_attrs"
31 (** See llvm::createFunctionInliningPass function. *)
32 external add_function_inlining : [ | `Module ] Llvm.PassManager.t -> unit =
33 "llvm_add_function_inlining"
35 (** See llvm::createGlobalDCEPass function. *)
36 external add_global_dce : [ | `Module ] Llvm.PassManager.t -> unit =
39 (** See llvm::createGlobalOptimizerPass function. *)
40 external add_global_optimizer : [ | `Module ] Llvm.PassManager.t -> unit =
41 "llvm_add_global_optimizer"
43 (** See llvm::createIPConstantPropagationPass function. *)
44 external add_ipc_propagation : [ | `Module ] Llvm.PassManager.t -> unit =
45 "llvm_add_ipc_propagation"
47 (** See llvm::createPruneEHPass function. *)
48 external add_prune_eh : [ | `Module ] Llvm.PassManager.t -> unit =
51 (** See llvm::createIPSCCPPass function. *)
52 external add_ipsccp : [ | `Module ] Llvm.PassManager.t -> unit =
55 (** See llvm::createInternalizePass function. *)
56 external add_internalize : [ | `Module ] Llvm.PassManager.t -> bool -> unit =
57 "llvm_add_internalize"
59 (** See llvm::createStripDeadPrototypesPass function. *)
60 external add_strip_dead_prototypes :
61 [ | `Module ] Llvm.PassManager.t -> unit = "llvm_add_strip_dead_prototypes"
63 (** See llvm::createStripSymbolsPass function. *)
64 external add_strip_symbols : [ | `Module ] Llvm.PassManager.t -> unit =
65 "llvm_add_strip_symbols"