1(*===-- llvm_ipo.ml - LLVM OCaml Interface --------------------*- OCaml -*-===*
2 *
3 *                     The LLVM Compiler Infrastructure
4 *
5 * This file is distributed under the University of Illinois Open Source
6 * License. See LICENSE.TXT for details.
7 *
8 *===----------------------------------------------------------------------===*)
9
10external add_argument_promotion
11  : [ `Module ] Llvm.PassManager.t -> unit
12  = "llvm_add_argument_promotion"
13external add_constant_merge
14  : [ `Module ] Llvm.PassManager.t -> unit
15  = "llvm_add_constant_merge"
16external add_dead_arg_elimination
17  : [ `Module ] Llvm.PassManager.t -> unit
18  = "llvm_add_dead_arg_elimination"
19external add_function_attrs
20  : [ `Module ] Llvm.PassManager.t -> unit
21  = "llvm_add_function_attrs"
22external add_function_inlining
23  : [ `Module ] Llvm.PassManager.t -> unit
24  = "llvm_add_function_inlining"
25external add_always_inliner
26  : [ `Module ] Llvm.PassManager.t -> unit
27  = "llvm_add_always_inliner"
28external add_global_dce
29  : [ `Module ] Llvm.PassManager.t -> unit
30  = "llvm_add_global_dce"
31external add_global_optimizer
32  : [ `Module ] Llvm.PassManager.t -> unit
33  = "llvm_add_global_optimizer"
34external add_ipc_propagation
35  : [ `Module ] Llvm.PassManager.t -> unit
36  = "llvm_add_ip_constant_propagation"
37external add_prune_eh
38  : [ `Module ] Llvm.PassManager.t -> unit
39  = "llvm_add_prune_eh"
40external add_ipsccp
41  : [ `Module ] Llvm.PassManager.t -> unit
42  = "llvm_add_ipsccp"
43external add_internalize
44  : [ `Module ] Llvm.PassManager.t -> all_but_main:bool -> unit
45  = "llvm_add_internalize"
46external add_strip_dead_prototypes
47  : [ `Module ] Llvm.PassManager.t -> unit
48  = "llvm_add_strip_dead_prototypes"
49external add_strip_symbols
50  : [ `Module ] Llvm.PassManager.t -> unit
51  = "llvm_add_strip_symbols"
52