ciathefed/qbe-zig
A Zig port of qbe-rs, a library for generating QBE IR programmatically.
A Zig port of 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.
Run this command in the root of your Zig project:
zig fetch --save "git+https://github.com/ciathefed/qbe-zig"
Add this snippet to your build.zig
:
const qbe = b.dependency("qbe", .{
.target = target,
.optimize = optimize,
});
exe_mod.addImport("qbe", qbe.module("qbe"));
For the full Zig-style API reference, visit:
https://ciathefed.github.io/qbe-zig
This project is licensed under the MIT License