Trait come::ir::optimize::pass::IsPass

source ·
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§

source

fn run(&self, editor: &mut Editor)

source

fn need(&self) -> Vec<Pass>

Which passes this pass requires to be executed before it.

source

fn invalidate(&self) -> Vec<Pass>

Which passes this pass will invalidate.

Implementors§