#llvm-ir #quantum #hugr #quantinuum #extensible #programs #lowering

hugr-llvm

A general and extensible crate for lowering HUGRs into LLVM IR

10 releases (5 breaking)

0.6.1 Oct 23, 2024
0.6.0 Oct 21, 2024
0.5.1 Sep 23, 2024
0.4.0 Sep 3, 2024
0.1.0 Jul 10, 2024

#1128 in Programming languages

Download history 198/week @ 2024-08-17 572/week @ 2024-08-24 316/week @ 2024-08-31 263/week @ 2024-09-07 366/week @ 2024-09-14 272/week @ 2024-09-21 132/week @ 2024-09-28 145/week @ 2024-10-05 186/week @ 2024-10-12 380/week @ 2024-10-19 120/week @ 2024-10-26 94/week @ 2024-11-02 27/week @ 2024-11-09 4/week @ 2024-11-16 29/week @ 2024-11-23 202/week @ 2024-11-30

270 downloads per month

Apache-2.0

285KB
6.5K 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.

For an example lowering guppy programs to LLVM see tests/guppy.rs

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

~19–31MB
~488K SLoC