1
0
mirror of https://github.com/RPCS3/llvm.git synced 2025-03-03 08:07:51 +00:00

[LLVM-C] [OCaml] Remove LLVMAddBBVectorizePass

Summary: It was fully replaced back in 2014, and the implementation was removed 11 months ago by r306797.

Reviewers: hfinkel, chandlerc, whitequark, deadalnix

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D47436

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@333378 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Fangrui Song 2018-05-28 16:58:10 +00:00
parent 1753453070
commit 2457cfc63a
7 changed files with 4 additions and 24 deletions
bindings/ocaml/transforms/vectorize
docs
include/llvm-c/Transforms
lib/Transforms/Vectorize
test/Bindings/OCaml

@ -7,9 +7,6 @@
*
*===----------------------------------------------------------------------===*)
external add_bb_vectorize
: [<Llvm.PassManager.any] Llvm.PassManager.t -> unit
= "llvm_add_bb_vectorize"
external add_loop_vectorize
: [<Llvm.PassManager.any] Llvm.PassManager.t -> unit
= "llvm_add_loop_vectorize"

@ -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
: [<Llvm.PassManager.any] Llvm.PassManager.t -> unit
= "llvm_add_bb_vectorize"
(** See the [llvm::createLoopVectorizePass] function. *)
external add_loop_vectorize
: [<Llvm.PassManager.any] Llvm.PassManager.t -> unit

@ -19,12 +19,6 @@
#include "caml/mlvalues.h"
#include "caml/misc.h"
/* [<Llvm.PassManager.any] Llvm.PassManager.t -> unit */
CAMLprim value llvm_add_bb_vectorize(LLVMPassManagerRef PM) {
LLVMAddBBVectorizePass(PM);
return Val_unit;
}
/* [<Llvm.PassManager.any] Llvm.PassManager.t -> unit */
CAMLprim value llvm_add_loop_vectorize(LLVMPassManagerRef PM) {
LLVMAddLoopVectorizePass(PM);

@ -146,13 +146,15 @@ Changes to the AVR Target
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

@ -33,9 +33,6 @@ extern "C" {
* @{
*/
/** DEPRECATED - Use LLVMAddSLPVectorizePass */
void LLVMAddBBVectorizePass(LLVMPassManagerRef PM);
/** See llvm::createLoopVectorizePass function. */
void LLVMAddLoopVectorizePass(LLVMPassManagerRef PM);

@ -34,10 +34,6 @@ void LLVMInitializeVectorization(LLVMPassRegistryRef R) {
initializeVectorization(*unwrap(R));
}
// DEPRECATED: Remove after the LLVM 5 release.
void LLVMAddBBVectorizePass(LLVMPassManagerRef PM) {
}
void LLVMAddLoopVectorizePass(LLVMPassManagerRef PM) {
unwrap(PM)->add(createLoopVectorizePass());
}

@ -42,7 +42,6 @@ let test_transforms () =
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