#cubecl #llvm #bindings #tablegen

tracel-tblgen-rs

Safe Rust bindings for TableGen used by CubeCL

7 releases

Uses new Rust 2024

20.1.4-7 Jan 30, 2026
20.1.4-6 Jan 13, 2026
20.1.4-5 Sep 25, 2025

#187 in FFI

Download history 729/week @ 2025-10-19 1617/week @ 2025-10-26 2079/week @ 2025-11-02 2813/week @ 2025-11-09 2541/week @ 2025-11-16 2768/week @ 2025-11-23 2830/week @ 2025-11-30 3217/week @ 2025-12-07 4176/week @ 2025-12-14 2795/week @ 2025-12-21 2841/week @ 2025-12-28 4979/week @ 2026-01-04 4845/week @ 2026-01-11 5205/week @ 2026-01-18 7078/week @ 2026-01-25 7346/week @ 2026-02-01

24,810 downloads per month
Used in 110 crates (via tracel-mlir-rs-macros)

MIT/Apache

215KB
5.5K SLoC

Tracel LLVM

The purpose of this repository is to provide an interface to MLIR from Rust for the CubeCL backend and support only one version at a time that is bundled automatically at compilation.

Publish a new release

  1. Update the LLVM version and release number in file config.rs.

  2. Create and commit the bindings with cargo xtask bindgen for Linux, MacOS and Windows. Additional instructions for new platforms may be found in docs/gen-bindings.md.

  3. Dispatch the workflow Release manually.

  4. The workflow will create a new release named v{LLVM_TAG}-{RELEASE_NUMBER}.

Note: Currently the workflow does not build the MacOS archive. It must be built manually by executing cargo xtask bundle build at the root of the repository. It will create an archive at .llvm/macos-AArch64.tar.xz. Edit the GitHub release and upload this archive to it manually.

  1. Then trigger the workflow Publish to publish the crates on crates.io.

Third-Party Acknowledgments

This workspace incorporates code from the following external repositories. Each retains its original license and copyright notices, as detailed in the COPYRIGHT file:

Please refer to the COPYRIGHT file for full license texts and copyright information.

Dependencies

~0.2–5.5MB
~91K SLoC