Crates.io | hugr-llvm |
lib.rs | hugr-llvm |
version | 0.1.0 |
source | src |
created_at | 2024-07-10 09:54:08.104904 |
updated_at | 2024-07-10 09:54:08.104904 |
description | A general and extensible crate for lowering HUGRs into LLVM IR |
homepage | https://github.com/CQCL/hugr-llvm |
repository | https://github.com/CQCL/hugr-llvm |
max_upload_size | |
id | 1298058 |
size | 371,523 |
A general, extensible, rust crate for lowering HUGR
s into LLVM
IR. Built on hugr, inkwell, and llvm.
You'll need to point your Cargo.toml
to use a single LLVM version feature flag corresponding to your LLVM version, as below:
[dependencies]
hugr-llvm = { version = "0.1.0", 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
See CHANGELOG for a list of changes. The minimum supported rust version will only change on major releases.
See DEVELOPMENT for instructions on setting up the development environment.
This project is licensed under Apache License, Version 2.0 (LICENCE or http://www.apache.org/licenses/LICENSE-2.0).