• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

all_backends/23-Nov-2023-6035

analysis/23-Nov-2023-14797

backends/23-Nov-2023-10364

bitreader/23-Nov-2023-9560

bitwriter/23-Nov-2023-12081

executionengine/23-Nov-2023-293216

irreader/23-Nov-2023-7948

linker/23-Nov-2023-7342

llvm/23-Nov-2023-6,7595,205

target/23-Nov-2023-710520

transforms/23-Nov-2023-1,206876

CMakeLists.txtD23-Nov-2023304 1211

README.txtD23-Nov-2023867 3021

README.txt

1This directory contains LLVM bindings for the OCaml programming language
2(http://ocaml.org).
3
4Prerequisites
5-------------
6
7* OCaml 4.00.0+.
8* ctypes 0.4+.
9* oUnit 2+ (only required for tests).
10* CMake (to build LLVM).
11
12Building the bindings
13---------------------
14
15If all dependencies are present, the bindings will be built and installed
16as a part of the default CMake configuration, with no further action.
17They will only work with the specific OCaml compiler detected during the build.
18
19The bindings can also be built out-of-tree, i.e. targeting a preinstalled
20LLVM. To do this, configure the LLVM build tree as follows:
21
22    $ cmake -DLLVM_OCAML_OUT_OF_TREE=TRUE \
23            -DCMAKE_INSTALL_PREFIX=[OCaml install prefix] \
24            [... any other options]
25
26then build and install it as:
27
28    $ make ocaml_all
29    $ cmake -P bindings/ocaml/cmake_install.cmake
30