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§
Sourcefn maybe_transform(
&self,
scope: &mut Scope,
inst: &Instruction,
) -> TransformAction
fn maybe_transform( &self, scope: &mut Scope, inst: &Instruction, ) -> TransformAction
Inspect an instruction and potentially transform it.