Function cranelift_codegen::binemit::emit_function
source · [−]pub fn emit_function<CS, EI>(
func: &Function,
emit_inst: EI,
sink: &mut CS,
isa: &dyn TargetIsa
) where
CS: CodeSink,
EI: Fn(&Function, Inst, &mut RegDiversions, &mut CS, &dyn TargetIsa),
Expand description
Emit a function to sink
, given an instruction emitter function.
This function is called from the TargetIsa::emit_function()
implementations with the
appropriate instruction emitter.