llvm-capstone/llvm/bindings/ocaml
Nikita Popov 56c1d30183
[IR] Remove support for lshr/ashr constant expressions (#71955)
Remove support for the lshr and ashr constant expressions. All places
creating them have been removed beforehand, so this just removes the
APIs and uses of these constant expressions in tests.

This is part of
https://discourse.llvm.org/t/rfc-remove-most-constant-expressions/63179.
2023-11-14 09:25:14 +01:00
..
all_backends
analysis [OCaml] Migrate from naked pointers to prepare for OCaml 5 2023-02-28 23:52:49 +00:00
backends
bitreader [OCaml] Migrate from naked pointers to prepare for OCaml 5 2023-02-28 23:52:49 +00:00
bitwriter [OCaml] Migrate from naked pointers to prepare for OCaml 5 2023-02-28 23:52:49 +00:00
debuginfo [OCaml] Bind di_type_get_flags to correct C function 2023-08-13 10:22:44 -04:00
executionengine [OCaml] Migrate from naked pointers to prepare for OCaml 5 2023-02-28 23:52:49 +00:00
irreader [OCaml] Migrate from naked pointers to prepare for OCaml 5 2023-02-28 23:52:49 +00:00
linker [OCaml] Rename link_modules' to link_modules 2023-06-16 09:18:26 -04:00
llvm [IR] Remove support for lshr/ashr constant expressions (#71955) 2023-11-14 09:25:14 +01:00
target [llvm-c] Improve TargetMachine bindings (#70806) 2023-11-01 11:44:19 +08:00
transforms [OCaml][NPM] Add OCaml bindings to new pass manager 2023-09-16 16:06:14 -04:00
.ocamlformat
CMakeLists.txt
README.txt

This directory contains LLVM bindings for the OCaml programming language
(http://ocaml.org).

Prerequisites
-------------

* OCaml 4.00.0+.
* ctypes 0.4+.
* CMake (to build LLVM).

Building the bindings
---------------------

If all dependencies are present, the bindings will be built and installed
as a part of the default CMake configuration, with no further action.
They will only work with the specific OCaml compiler detected during the build.

The bindings can also be built out-of-tree, i.e. targeting a preinstalled
LLVM. To do this, configure the LLVM build tree as follows:

    $ cmake -DLLVM_OCAML_OUT_OF_TREE=TRUE \
            -DCMAKE_INSTALL_PREFIX=[Preinstalled LLVM path] \
            -DLLVM_OCAML_INSTALL_PATH=[OCaml install prefix] \
            [... any other options]

then build and install it as:

    $ make ocaml_all
    $ cmake -P bindings/ocaml/cmake_install.cmake