Skip to content

s-khechnev/ocaml-mlir

 
 

Repository files navigation

Build llvm-16.0.6 License: MIT Coverage Status

OCaml Bindings to MLIR (16.0.6)

Getting started

  1. Required packages
llvm-16-dev llvm-16-tools libmlir-16-dev mlir-16-tools
  1. Current dependencies
opam install ctypes ctypes-foreign angstrom base stdune ppx_deriving ppx_expect ppx_inline_test bisect_ppx
  1. Build the OCaml bindings
dune build

API

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.

Toy example

Here you can find the implementation of the Toy tutorial.

Releases

No releases published

Packages

No packages published

Languages

  • OCaml 83.0%
  • Raku 16.0%
  • Other 1.0%