summaryrefslogtreecommitdiff
path: root/test/Bindings/Ocaml
diff options
context:
space:
mode:
authorErick Tryzelaar <idadesub@users.sourceforge.net>2010-03-03 23:51:34 +0000
committerErick Tryzelaar <idadesub@users.sourceforge.net>2010-03-03 23:51:34 +0000
commit7eb4beb4cd545c78e911add2c4497c0d1b4cf1ee (patch)
treedd72f8fd1d28bf7cd35ef8181e01bfcb40c355d6 /test/Bindings/Ocaml
parent9c7c566efe4b942ed8597156bf66e9abf98c79b5 (diff)
downloadllvm-7eb4beb4cd545c78e911add2c4497c0d1b4cf1ee.tar.gz
llvm-7eb4beb4cd545c78e911add2c4497c0d1b4cf1ee.tar.bz2
llvm-7eb4beb4cd545c78e911add2c4497c0d1b4cf1ee.tar.xz
Expose the rest of the llvm-c scalar opts to ocaml.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97685 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Bindings/Ocaml')
-rw-r--r--test/Bindings/Ocaml/scalar_opts.ml23
1 files changed, 20 insertions, 3 deletions
diff --git a/test/Bindings/Ocaml/scalar_opts.ml b/test/Bindings/Ocaml/scalar_opts.ml
index 1b488c5b02..f28eff28da 100644
--- a/test/Bindings/Ocaml/scalar_opts.ml
+++ b/test/Bindings/Ocaml/scalar_opts.ml
@@ -37,11 +37,28 @@ let test_transforms () =
ignore (PassManager.create_function m
++ TargetData.add td
- ++ add_instruction_combining
+ ++ add_constant_propagation
+ ++ add_sccp
+ ++ add_dead_store_elimination
+ ++ add_aggressive_dce
+ ++ add_scalar_repl_aggregation
+ ++ add_ind_var_simplification
+ ++ add_instruction_combination
+ ++ add_licm
+ ++ add_loop_unswitch
+ ++ add_loop_unroll
+ ++ add_loop_rotation
+ ++ add_loop_index_split
+ ++ add_memory_to_register_promotion
+ ++ add_memory_to_register_demotion
++ add_reassociation
- ++ add_gvn
+ ++ add_jump_threading
++ add_cfg_simplification
- ++ add_constant_propagation
+ ++ add_tail_call_elimination
+ ++ add_gvn
+ ++ add_memcpy_opt
+ ++ add_loop_deletion
+ ++ add_lib_call_simplification
++ PassManager.initialize
++ PassManager.run_function fn
++ PassManager.finalize