(*===-- llvm_executionengine.ml - LLVM OCaml Interface --------*- OCaml -*-===*
*
* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
* See https://llvm.org/LICENSE.txt for license information.
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
*===----------------------------------------------------------------------===*)
of string
let ( = register_exception "Llvm_executionengine.Error"
let default_compiler_options =
add_global_mapping_ llval ee
let vptr = get_global_value_address_ name ee in
if to_int vptr <> 0 then
let open Ctypes in !@
else
raise
let fptr = get_function_address_ name ee in
if to_int fptr <> 0 then
let open Ctypes in coerce typ
else
raise
(* The following are not bound. Patches are welcome.
target_machine : llexecutionengine -> Llvm_target.TargetMachine.t
*)