Skip to content

e3m3/mlir-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Copyright

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

Author/Maintainer: Giordano Salvador [email protected]

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/

About

Rust bindings over the MLIR C API from mlir-sys

Resources

License

Stars

Watchers

Forks

Packages

No packages published