Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 1.13 KB

README.md

File metadata and controls

44 lines (28 loc) · 1.13 KB

qbe-zig

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.

Static Badge Tests

Install

Run this command in the root of your Zig project:

Latest Release (recommended)

zig fetch --save "git+https://github.com/ciathefed/qbe-zig#v0.1.1"

Latest on main (bleeding edge)

zig fetch --save "git+https://github.com/ciathefed/qbe-zig#main"

Add qbe-zig to your imports in build.zig:

const qbe = b.dependency("qbe", .{
    .target = target,
    .optimize = optimize,
});
exe.root_module.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