vyre-foundation
The hardware-neutral compiler foundation for vyre: IR (Expr, Node,
Program), type system, memory model, wire format, visitor traits, and
extension resolvers. Every other vyre crate depends on this one; this
crate depends only on vyre-spec, vyre-macros, and lightweight
third-party data crates. It does not know what naga, wgpu, a
dialect, or a backend is.
Usage
use ;
let program = wrapped;
let wire = program.to_wire.unwrap;
assert_eq!;
Architecture
See COMPUTE_2_0.md for the
layer DAG. Foundation sits at the bottom; every migration target
listed there — foundation-ir, foundation-visit, foundation-wire — is
contained in this crate until the per-subcrate split lands in a later
phase.