From 30288ac4020138a09ae2a0e4c989b1003340150b Mon Sep 17 00:00:00 2001 From: Peter Zotov Date: Sun, 3 Nov 2013 07:54:17 +0000 Subject: [OCaml] Llvm_scalar_opts: add missing transforms git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193946 91177308-0d34-0410-b5e6-96231b3b80d8 --- bindings/ocaml/transforms/scalar/llvm_scalar_opts.ml | 3 +++ bindings/ocaml/transforms/scalar/llvm_scalar_opts.mli | 4 ++++ bindings/ocaml/transforms/scalar/scalar_opts_ocaml.c | 6 ++++++ 3 files changed, 13 insertions(+) (limited to 'bindings') diff --git a/bindings/ocaml/transforms/scalar/llvm_scalar_opts.ml b/bindings/ocaml/transforms/scalar/llvm_scalar_opts.ml index d856c0f..958939d 100644 --- a/bindings/ocaml/transforms/scalar/llvm_scalar_opts.ml +++ b/bindings/ocaml/transforms/scalar/llvm_scalar_opts.ml @@ -109,3 +109,6 @@ external add_basic_alias_analysis : [ unit = "llvm_add_basic_alias_analysis" +external +add_partially_inline_lib_calls : [ unit + = "llvm_add_partially_inline_lib_calls" diff --git a/bindings/ocaml/transforms/scalar/llvm_scalar_opts.mli b/bindings/ocaml/transforms/scalar/llvm_scalar_opts.mli index ea2e4a91..d69abe2 100644 --- a/bindings/ocaml/transforms/scalar/llvm_scalar_opts.mli +++ b/bindings/ocaml/transforms/scalar/llvm_scalar_opts.mli @@ -162,3 +162,7 @@ external add_basic_alias_analysis : [ unit = "llvm_add_basic_alias_analysis" +(** See the [llvm::createPartiallyInlineLibCallsPass] function. *) +external +add_partially_inline_lib_calls : [ unit + = "llvm_add_partially_inline_lib_calls" diff --git a/bindings/ocaml/transforms/scalar/scalar_opts_ocaml.c b/bindings/ocaml/transforms/scalar/scalar_opts_ocaml.c index 51e966c..0a71bd7 100644 --- a/bindings/ocaml/transforms/scalar/scalar_opts_ocaml.c +++ b/bindings/ocaml/transforms/scalar/scalar_opts_ocaml.c @@ -199,3 +199,9 @@ CAMLprim value llvm_add_basic_alias_analysis(LLVMPassManagerRef PM) { LLVMAddBasicAliasAnalysisPass(PM); return Val_unit; } + +/* [ unit */ +CAMLprim value llvm_add_partially_inline_lib_calls(LLVMPassManagerRef PM) { + LLVMAddPartiallyInlineLibCallsPass(PM); + return Val_unit; +} -- cgit v1.1