IrTransformer

Trait IrTransformer 

Source
pub trait IrTransformer: Debug {
    // Required method
    fn maybe_transform(
        &self,
        scope: &mut Scope,
        inst: &Instruction,
    ) -> TransformAction;
}
Expand description

A transformer that can modify instructions before they get added to the control flow graph.

Required Methods§

Source

fn maybe_transform( &self, scope: &mut Scope, inst: &Instruction, ) -> TransformAction

Inspect an instruction and potentially transform it.

Implementors§