Skip to content

ciathefed/qbe-zig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A Zig port of qbe-rs, a library for generating QBE IR programmatically.

Resources

License

Stars

Watchers

Forks

Languages