- Required packages
llvm-16-dev llvm-16-tools libmlir-16-dev mlir-16-tools
- Current dependencies
opam install ctypes ctypes-foreign angstrom base stdune ppx_deriving ppx_expect ppx_inline_test bisect_ppx
- Build the OCaml bindings
dune build
The entry point to the bindings is mlir
(see mlir.mli).
It is deliberately low-level, closely matching the MLIR C API.
In the future, we plan to write a higher-level API that wraps around mlir
.
This is a first shot at OCaml bindings to the MLIR C API and is likely to undergo major changes in the near future.
Here you can find the implementation of the Toy tutorial.