Skip to content

Latest commit

 

History

History
79 lines (44 loc) · 1.6 KB

README.md

File metadata and controls

79 lines (44 loc) · 1.6 KB

Copyright

Copyright 2024, Giordano Salvador SPDX-License-Identifier: BSD-3-Clause

Author/Maintainer: Giordano Salvador 73959795+e3m3@users.noreply.github.com

Description (MLIR Rust Bindings)

Rust bindings wrapper over the MLIR [1] (license [2]) C API bindings from the mlir_sys crate (site [3] and license [4]).

Prerequisites

  • rust-2021

  • llvm-19, clang-19, and mlir-sys (or llvm version matching mlir-sys)

  • [docker|podman] (for testing/containerization)

    • A Fedora [5] image can be built using containers/Containerfile.fedora*.

Setup

  • Native build:

    cargo build
  • Container build and test podman [6]:

    podman build -t calcc -f container/Containerfile .
  • Container build and test docker [7]:

    docker build -t calcc -f container/Dockerfile .
  • If make is installed, you can build the image by running:

    make

References

  1. https://mlir.llvm.org/

  2. https://github.com/llvm/llvm-project/blob/main/mlir/LICENSE.TXT

  3. https://crates.io/crates/mlir-sys

  4. https://github.com/femtomc/mlir-sys/blob/main/LICENSE

  5. https://fedoraproject.org/

  6. https://podman.io/

  7. https://www.docker.com/