cranelift_codegen::isa

Type Alias Legalize

source
pub type Legalize = fn(_: Inst, _: &mut Function, _: &mut ControlFlowGraph, _: &dyn TargetIsa) -> bool;
Expand description

After determining that an instruction doesn’t have an encoding, how should we proceed to legalize it?

The Encodings iterator returns a legalization function to call.