Name Date Size #Lines LOC

..13-Mar-2025-

all_backends/H13-Mar-2025-6035

analysis/H13-Mar-2025-14797

backends/H13-Mar-2025-10364

bitreader/H13-Mar-2025-9762

bitwriter/H13-Mar-2025-12081

debuginfo/H13-Mar-2025-2,3192,009

executionengine/H13-Mar-2025-299221

irreader/H13-Mar-2025-7847

linker/H13-Mar-2025-7443

llvm/H13-Mar-2025-6,7835,187

target/H13-Mar-2025-700512

transforms/H13-Mar-2025-1,149829

.ocamlformatH A D13-Mar-20250

CMakeLists.txtH A D13-Mar-2025332 1312

README.txtH A D13-Mar-2025894 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* CMake (to build LLVM).
10
11Building the bindings
12---------------------
13
14If all dependencies are present, the bindings will be built and installed
15as a part of the default CMake configuration, with no further action.
16They will only work with the specific OCaml compiler detected during the build.
17
18The bindings can also be built out-of-tree, i.e. targeting a preinstalled
19LLVM. To do this, configure the LLVM build tree as follows:
20
21    $ cmake -DLLVM_OCAML_OUT_OF_TREE=TRUE \
22            -DCMAKE_INSTALL_PREFIX=[Preinstalled LLVM path] \
23            -DLLVM_OCAML_INSTALL_PATH=[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