8 releases

new 0.5.2 Jan 16, 2025
0.5.1 Jan 16, 2025
0.3.0 Aug 14, 2023
0.2.1 Aug 14, 2023
0.1.3 Aug 1, 2023

#80 in FFI

47 downloads per month

MIT/Apache

86KB
2K SLoC

Rust 1.5K SLoC // 0.0% comments C++ 462 SLoC // 0.1% comments Shell 9 SLoC

tblgen

GitHub Action Crate Crates.io Total Downloads Crates.io License

Original project: https://gitlab.com/Danacus/tblgen-rs.

Original author: Daan Vanoverloop.

Thanks to Daan for giving us access to publish to the original tblgen crate, we can now switch from the old tblgen-alt to tblgen. Future updates will be pushed to the original crate.

This crate provides raw bindings and a safe wrapper for TableGen, a domain-specific language used by the LLVM project.

The goal of this crate is to enable users to develop custom TableGen backends in Rust. Hence the primary use case of this crate are procedural macros that generate Rust code from TableGen description files.

Documentation

Read the documentation at https://mlir-rs.github.io/tblgen-rs/tblgen/.

Supported LLVM Versions

An installation of LLVM is required to use this crate. Both LLVM 16, 17, 18 and 19 are supported and can be selected using feature flags.

The TABLEGEN_<version>_PREFIX environment variable can be used to specify a custom directory of the LLVM installation.

Dependencies

~0.2–2.8MB
~60K SLoC