pub trait IrOptimizationPass {
// Required methods
fn name(&self) -> &'static str;
fn run(
&self,
input: &IntermediateRepresentation,
) -> IntermediateRepresentation;
}Expand description
A compiler-owned transformation over canonical IR.
Required Methods§
fn name(&self) -> &'static str
fn run(&self, input: &IntermediateRepresentation) -> IntermediateRepresentation
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".