pub trait ModulePass {
// Required methods
fn run_on_module(&mut self, ctx: &mut Context, module: &mut Module) -> bool;
fn name(&self) -> &'static str;
}Expand description
A pass that transforms an entire module.
Required Methods§
Sourcefn run_on_module(&mut self, ctx: &mut Context, module: &mut Module) -> bool
fn run_on_module(&mut self, ctx: &mut Context, module: &mut Module) -> bool
Apply this pass to module. Returns true if the IR was modified.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".