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 single macro is vyre_pass — see that item for the full usage contract, argument shape, and a worked example. A high-level narrative lives in the crate README.

Macros§

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

Attribute Macros§

skip_builder
A generic marker attribute used exclusively to instruct vyre_ast_registry! to skip generating a builder method for a specific struct field.
vyre_pass
Register a unit struct as a vyre::optimizer::ProgramPass.

Derive Macros§

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