tblgen-alt

Safe Rust bindings for TableGen. Alternative updated version.

6 releases

0.4.0 Sep 24, 2024
0.3.6 Jun 6, 2024
0.3.3 May 2, 2024
0.3.2 Apr 29, 2024

#92 in FFI

Download history 463/week @ 2024-06-14 469/week @ 2024-06-21 285/week @ 2024-06-28 322/week @ 2024-07-05 281/week @ 2024-07-12 301/week @ 2024-07-19 336/week @ 2024-07-26 307/week @ 2024-08-02 262/week @ 2024-08-09 612/week @ 2024-08-16 540/week @ 2024-08-23 545/week @ 2024-08-30 579/week @ 2024-09-06 1697/week @ 2024-09-13 1112/week @ 2024-09-20 1663/week @ 2024-09-27

5,164 downloads per month
Used in 3 crates (via melior-macro)

MIT/Apache

86KB
2K SLoC

Rust 1.5K SLoC // 0.0% comments C++ 459 SLoC // 0.1% comments Shell 8 SLoC

tblgen

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

This is a updated (LLVM 19) fork of https://gitlab.com/Danacus/tblgen-rs. Original author: Daan Vanoverloop.

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://danacus.gitlab.io/tblgen-rs/tblgen/.

Supported LLVM Versions

An installation of LLVM is required to use this crate. Both LLVM 16, 17 and 18 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.3–2.7MB
~56K SLoC