Thanks to visit codestin.com
Credit goes to lib.rs

#pipeline #compiler #hpu #zhc #iop #zama

bin+lib zhc_pipeline

Compilation pipeline for HPU code generation

10 unstable releases (3 breaking)

Uses new Rust 2024

0.4.0 May 6, 2026
0.3.0 Apr 27, 2026
0.2.0 Apr 3, 2026
0.1.9 Apr 1, 2026
0.1.0 Feb 17, 2026

#394 in Simulation


Used in zhc

BSD-3-Clause-Clear

4MB
146K SLoC

Pipeline infrastructure for HPU compilation.

This crate provides the core compilation pipeline that transforms high-level integer operations into executable device operations for HPU hardware. The pipeline consists of translation from IOP language to HPU language, operation scheduling, register allocation, and final code generation.


ZHC — Zama HPU Compiler

A compiler infrastructure for FHE integer computation targeting the HPU (Homomorphic Processing Unit).

Crates

Crate Description
zhc Toplevel crate
zhc_ir Generic graph-based IR framework with dialect support
zhc_langs Language dialects: IOP, HPU, DOP
zhc_pipeline Compilation pipeline orchestration
zhc_builder High-level operation builders
zhc_sim Hardware simulation and configuration
zhc_crypto Cryptographic primitives
zhc_utils Shared utilities

Dependencies

~1.1–2MB
~42K SLoC