pub trait OptimizationPass: Send + Sync { // Required methods fn name(&self) -> &str; fn optimize(&self, nodes: &mut Vec<NodeSpec>) -> usize; }
An optimization pass that transforms a list of NodeSpecs in-place.
NodeSpec
Human-readable name of the pass.
Apply the pass. Returns the number of optimizations applied.