https://github.com/ciathefed/qbe-zig
A Zig port of qbe-rs, a library for generating QBE IR programmatically.
https://github.com/ciathefed/qbe-zig
ir qbe zig-package
Last synced: 10 months ago
JSON representation
A Zig port of qbe-rs, a library for generating QBE IR programmatically.
- Host: GitHub
- URL: https://github.com/ciathefed/qbe-zig
- Owner: ciathefed
- License: mit
- Created: 2025-07-08T04:20:32.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-07-08T22:07:11.000Z (11 months ago)
- Last Synced: 2025-07-08T22:32:14.000Z (11 months ago)
- Topics: ir, qbe, zig-package
- Language: Zig
- Homepage: https://ciathefed.github.io/qbe-zig/
- Size: 6.12 MB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# qbe-zig
A Zig port of [qbe-rs](https://github.com/garritfra/qbe-rs), a library for generating QBE IR programmatically.
This library allows you to build QBE IR in pure Zig, suitable for backends, compilers, or tooling that targets [QBE](https://c9x.me/compile/).


## Install
Run this command in the root of your Zig project:
```shell
zig fetch --save "git+https://github.com/ciathefed/qbe-zig"
```
Add this snippet to your `build.zig`:
```zig
const qbe = b.dependency("qbe", .{
.target = target,
.optimize = optimize,
});
exe_mod.addImport("qbe", qbe.module("qbe"));
```
## API Reference
For the full Zig-style API reference, visit:
https://ciathefed.github.io/qbe-zig
## License
This project is licensed under the [MIT License](./LICENSE)