Skip to main content

Crate vyre_macros

Crate vyre_macros 

Source
Expand description

Procedural macros for the vyre GPU compute IR compiler.

This crate is compile-time only. Downstream users import from vyre::optimizer::vyre_pass rather than depending on this crate directly.

The macro surface includes op registration, AST registry generation, pass registration, builder-field skipping, and algebraic-law derivation.

Macros§

define_op
Function-like define_op! - single-site op registration via inventory.
vyre_ast_registry
Generates the declarative IR AST core plus serialization and visitor traits.

Attribute Macros§

skip_builder
Marker attribute used by vyre_ast_registry! to skip a builder field.
vyre_pass
Register a unit struct as a vyre::optimizer::ProgramPass.

Derive Macros§

AlgebraicLaws
Derive vyre::AlgebraicLawProvider from a #[vyre(laws = [...])] attribute.