llvm.org GIT mirror llvm / f8ed54c
[LLVM-C][OCaml] Add UnifyFunctionExitNodes pass to C and OCaml APIs Summary: Adds LLVMAddUnifyFunctionExitNodesPass to expose createUnifyFunctionExitNodesPass to the C and OCaml APIs. Reviewers: whitequark, deadalnix Reviewed By: whitequark Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D52212 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@342476 91177308-0d34-0410-b5e6-96231b3b80d8 whitequark 1 year, 30 days ago
5 changed file(s) with 22 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
120120 external add_basic_alias_analysis
121121 : [< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
122122 = "llvm_add_basic_alias_analysis"
123 external add_unify_function_exit_nodes
124 : [< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
125 = "llvm_add_unify_function_exit_nodes"
200200 external add_basic_alias_analysis
201201 : [< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
202202 = "llvm_add_basic_alias_analysis"
203
204 (** See the [llvm::createUnifyFunctionExitNodesPass] function. *)
205 external add_unify_function_exit_nodes
206 : [< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
207 = "llvm_add_unify_function_exit_nodes"
247247 LLVMAddBasicAliasAnalysisPass(PM);
248248 return Val_unit;
249249 }
250
251 /* [ unit */
252 CAMLprim value llvm_add_unify_function_exit_nodes(LLVMPassManagerRef PM) {
253 LLVMAddUnifyFunctionExitNodesPass(PM);
254 return Val_unit;
255 }
152152 /** See llvm::createBasicAliasAnalysisPass function */
153153 void LLVMAddBasicAliasAnalysisPass(LLVMPassManagerRef PM);
154154
155 /** See llvm::createUnifyFunctionExitNodesPass function */
156 void LLVMAddUnifyFunctionExitNodesPass(LLVMPassManagerRef PM);
157
155158 /**
156159 * @}
157160 */
2525 #include "llvm/InitializePasses.h"
2626 #include "llvm/Transforms/Scalar/GVN.h"
2727 #include "llvm/Transforms/Scalar/SimpleLoopUnswitch.h"
28 #include "llvm/Transforms/Utils/UnifyFunctionExitNodes.h"
2829
2930 using namespace llvm;
3031
277278 void LLVMAddLowerExpectIntrinsicPass(LLVMPassManagerRef PM) {
278279 unwrap(PM)->add(createLowerExpectIntrinsicPass());
279280 }
281
282 void LLVMAddUnifyFunctionExitNodesPass(LLVMPassManagerRef PM) {
283 unwrap(PM)->add(createUnifyFunctionExitNodesPass());
284 }