pub trait IsPass {
// Required methods
fn run(&self, editor: &mut Editor);
fn need(&self) -> Vec<Pass>;
fn invalidate(&self) -> Vec<Pass>;
}
Expand description
This trait should be implemented by all passes which can do optimizing on ir function.
Required Methods§
fn run(&self, editor: &mut Editor)
sourcefn invalidate(&self) -> Vec<Pass>
fn invalidate(&self) -> Vec<Pass>
Which passes this pass will invalidate.