Index: bindings/ocaml/transforms/vectorize/llvm_vectorize.ml =================================================================== --- bindings/ocaml/transforms/vectorize/llvm_vectorize.ml +++ bindings/ocaml/transforms/vectorize/llvm_vectorize.ml @@ -7,9 +7,6 @@ * *===----------------------------------------------------------------------===*) -external add_bb_vectorize - : [ unit - = "llvm_add_bb_vectorize" external add_loop_vectorize : [ unit = "llvm_add_loop_vectorize" Index: bindings/ocaml/transforms/vectorize/llvm_vectorize.mli =================================================================== --- bindings/ocaml/transforms/vectorize/llvm_vectorize.mli +++ bindings/ocaml/transforms/vectorize/llvm_vectorize.mli @@ -12,11 +12,6 @@ This interface provides an OCaml API for LLVM vectorize transforms, the classes in the [LLVMVectorize] library. *) -(** See the [llvm::createBBVectorizePass] function. *) -external add_bb_vectorize - : [ unit - = "llvm_add_bb_vectorize" - (** See the [llvm::createLoopVectorizePass] function. *) external add_loop_vectorize : [ unit Index: bindings/ocaml/transforms/vectorize/vectorize_ocaml.c =================================================================== --- bindings/ocaml/transforms/vectorize/vectorize_ocaml.c +++ bindings/ocaml/transforms/vectorize/vectorize_ocaml.c @@ -19,12 +19,6 @@ #include "caml/mlvalues.h" #include "caml/misc.h" -/* [ unit */ -CAMLprim value llvm_add_bb_vectorize(LLVMPassManagerRef PM) { - LLVMAddBBVectorizePass(PM); - return Val_unit; -} - /* [ unit */ CAMLprim value llvm_add_loop_vectorize(LLVMPassManagerRef PM) { LLVMAddLoopVectorizePass(PM); Index: docs/ReleaseNotes.rst =================================================================== --- docs/ReleaseNotes.rst +++ docs/ReleaseNotes.rst @@ -146,13 +146,15 @@ Changes to the OCaml bindings ----------------------------- - During this release ... +* Remove ``add_bb_vectorize``. Changes to the C API -------------------- - During this release ... +* Remove ``LLVMAddBBVectorizePass``. The implementation was removed and the C + interface was made a deprecated no-op in LLVM 5. Use + ``LLVMAddSLPVectorizePass`` instead to get the supported SLP vectorizer. External Open Source Projects Using LLVM 7 Index: include/llvm-c/Transforms/Vectorize.h =================================================================== --- include/llvm-c/Transforms/Vectorize.h +++ include/llvm-c/Transforms/Vectorize.h @@ -33,9 +33,6 @@ * @{ */ -/** DEPRECATED - Use LLVMAddSLPVectorizePass */ -void LLVMAddBBVectorizePass(LLVMPassManagerRef PM); - /** See llvm::createLoopVectorizePass function. */ void LLVMAddLoopVectorizePass(LLVMPassManagerRef PM); Index: lib/Transforms/Vectorize/Vectorize.cpp =================================================================== --- lib/Transforms/Vectorize/Vectorize.cpp +++ lib/Transforms/Vectorize/Vectorize.cpp @@ -34,10 +34,6 @@ initializeVectorization(*unwrap(R)); } -// DEPRECATED: Remove after the LLVM 5 release. -void LLVMAddBBVectorizePass(LLVMPassManagerRef PM) { -} - void LLVMAddLoopVectorizePass(LLVMPassManagerRef PM) { unwrap(PM)->add(createLoopVectorizePass()); } Index: test/Bindings/OCaml/vectorize.ml =================================================================== --- test/Bindings/OCaml/vectorize.ml +++ test/Bindings/OCaml/vectorize.ml @@ -42,7 +42,6 @@ ignore (build_ret_void (builder_at_end context (entry_block fn))); ignore (PassManager.create () - ++ add_bb_vectorize ++ add_loop_vectorize ++ add_slp_vectorize ++ PassManager.run_module m