llvm.org GIT mirror llvm / 2457cfc
[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 Fangrui Song 1 year, 3 months ago
7 changed file(s) with 4 addition(s) and 24 deletion(s). Raw diff Collapse all Expand all
66 *
77 *===----------------------------------------------------------------------===*)
88
9 external add_bb_vectorize
10 : [ unit
11 = "llvm_add_bb_vectorize"
129 external add_loop_vectorize
1310 : [ unit
1411 = "llvm_add_loop_vectorize"
1111 This interface provides an OCaml API for LLVM vectorize transforms, the
1212 classes in the [LLVMVectorize] library. *)
1313
14 (** See the [llvm::createBBVectorizePass] function. *)
15 external add_bb_vectorize
16 : [ unit
17 = "llvm_add_bb_vectorize"
18
1914 (** See the [llvm::createLoopVectorizePass] function. *)
2015 external add_loop_vectorize
2116 : [ unit
1919 #include "caml/misc.h"
2020
2121 /* [ unit */
22 CAMLprim value llvm_add_bb_vectorize(LLVMPassManagerRef PM) {
23 LLVMAddBBVectorizePass(PM);
24 return Val_unit;
25 }
26
27 /* [ unit */
2822 CAMLprim value llvm_add_loop_vectorize(LLVMPassManagerRef PM) {
2923 LLVMAddLoopVectorizePass(PM);
3024 return Val_unit;
145145 Changes to the OCaml bindings
146146 -----------------------------
147147
148 During this release ...
148 * Remove ``add_bb_vectorize``.
149149
150150
151151 Changes to the C API
152152 --------------------
153153
154 During this release ...
154 * Remove ``LLVMAddBBVectorizePass``. The implementation was removed and the C
155 interface was made a deprecated no-op in LLVM 5. Use
156 ``LLVMAddSLPVectorizePass`` instead to get the supported SLP vectorizer.
155157
156158
157159 External Open Source Projects Using LLVM 7
3232 * @{
3333 */
3434
35 /** DEPRECATED - Use LLVMAddSLPVectorizePass */
36 void LLVMAddBBVectorizePass(LLVMPassManagerRef PM);
37
3835 /** See llvm::createLoopVectorizePass function. */
3936 void LLVMAddLoopVectorizePass(LLVMPassManagerRef PM);
4037
3333 initializeVectorization(*unwrap(R));
3434 }
3535
36 // DEPRECATED: Remove after the LLVM 5 release.
37 void LLVMAddBBVectorizePass(LLVMPassManagerRef PM) {
38 }
39
4036 void LLVMAddLoopVectorizePass(LLVMPassManagerRef PM) {
4137 unwrap(PM)->add(createLoopVectorizePass());
4238 }
4141 ignore (build_ret_void (builder_at_end context (entry_block fn)));
4242
4343 ignore (PassManager.create ()
44 ++ add_bb_vectorize
4544 ++ add_loop_vectorize
4645 ++ add_slp_vectorize
4746 ++ PassManager.run_module m