qbe-rs
qbe-rs copied to clipboard
QBE IR in natural Rust data structures
QBE IR for Rust
https://c9x.me/compile/
This crate seeks to provide a Rust-y representation of QBE IR. It can be used for code generation of compilers. A way to parse existing IR is planned.
Getting Started
This crate is on crates.io, so you can simply add it as a dependency in your Cargo.toml and off you go.
If you don't know where to get started, check out the hello_world example in
the examples/ directory.
Projects using this crate
This crate is used by the Antimony project. Check out the QBE generator to see how they are using it.
License
The qbe crate is distributed under either of
- Apache License, Version 2.0
- MIT license
at your option.