Skip to main content

Crate wave_compiler

Crate wave_compiler 

Source
Expand description

WAVE compiler: compiles high-level GPU kernel code to WAVE ISA binaries.

Supports Python, Rust, C++, and TypeScript frontends. Includes a full optimization pipeline with SSA-based analysis and graph coloring register allocation.

Re-exports§

pub use diagnostics::CompileError;
pub use driver::compile_kernel;
pub use driver::compile_source;
pub use driver::CompilerConfig;
pub use driver::Language;
pub use driver::OptLevel;

Modules§

analysis
Analysis passes for MIR: CFG, dominance, liveness, alias, escape, and loop analysis.
diagnostics
Compiler diagnostics: error types, source mapping, and error reporting.
driver
Compiler driver: configuration, session management, and pipeline orchestration.
emit
WAVE instruction emission and binary generation.
frontend
Language frontends for parsing source code into HIR.
hir
High-Level Intermediate Representation (HIR) for WAVE GPU kernels.
lir
Low-Level Intermediate Representation (LIR) for WAVE kernels.
lowering
IR lowering passes: HIR→MIR and MIR→LIR.
mir
Mid-Level Intermediate Representation (MIR) for WAVE kernels.
optimize
Optimization pipeline for MIR.
regalloc
Register allocator using graph coloring (Chaitin-Briggs).