1(*===-- llvm_analysis.ml - LLVM OCaml Interface ---------------*- OCaml -*-===*
2 *
3 * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 * See https://llvm.org/LICENSE.txt for license information.
5 * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 *
7 *===----------------------------------------------------------------------===*)
8
9
10external verify_module : Llvm.llmodule -> string option = "llvm_verify_module"
11
12external verify_function : Llvm.llvalue -> bool = "llvm_verify_function"
13
14external assert_valid_module : Llvm.llmodule -> unit
15                             = "llvm_assert_valid_module"
16
17external assert_valid_function : Llvm.llvalue -> unit
18                               = "llvm_assert_valid_function"
19external view_function_cfg : Llvm.llvalue -> unit = "llvm_view_function_cfg"
20external view_function_cfg_only : Llvm.llvalue -> unit
21                                = "llvm_view_function_cfg_only"
22