#llvm-ir #quantum #representation #hugr #quantinuum #graph #extensible

hugr-llvm

A general and extensible crate for lowering HUGRs into LLVM IR

12 releases (6 breaking)

0.14.1 Dec 18, 2024
0.6.1 Oct 23, 2024
0.2.0 Jul 31, 2024

#794 in Programming languages

Download history 136/week @ 2024-09-25 86/week @ 2024-10-02 267/week @ 2024-10-09 185/week @ 2024-10-16 280/week @ 2024-10-23 109/week @ 2024-10-30 62/week @ 2024-11-06 23/week @ 2024-11-13 19/week @ 2024-11-20 120/week @ 2024-11-27 192/week @ 2024-12-04 283/week @ 2024-12-11 325/week @ 2024-12-18 12/week @ 2024-12-25 67/week @ 2025-01-01 117/week @ 2025-01-08

616 downloads per month
Used in hugr

Apache-2.0

1.5MB
36K SLoC

hugr-llvm

build_status codecov msrv

A general, extensible, rust crate for lowering HUGRs into LLVM IR. Built on hugr, inkwell, and llvm.

Usage

You'll need to point your Cargo.toml to use a single LLVM version feature flag corresponding to your LLVM version, by calling

cargo add hugr-llvm --features llvm14-0

At present only llvm14-0 is supported but we expect to introduce supported versions as required. Contributions are welcome.

See the llvm-sys crate for details on how to use your preferred llvm installation.

Recent Changes

See CHANGELOG for a list of changes. The minimum supported rust version will only change on major releases.

Developing hugr-llvm

See DEVELOPMENT for instructions on setting up the development environment.

License

This project is licensed under Apache License, Version 2.0 (LICENCE or http://www.apache.org/licenses/LICENSE-2.0).

Dependencies

~12MB
~221K SLoC