Skip to main content

optimize_with_observer

Function optimize_with_observer 

Source
pub fn optimize_with_observer<F>(ast: &mut AST, observe: F)
where F: FnMut(CfgDumpStage, &Cfg),
Expand description

Like optimize, and exposes the CFG before and after dead-function elimination. The observer owns any optional diagnostics or I/O, keeping the passes themselves pure.