Trait cranelift_codegen::write::FuncWriter[][src]

pub trait FuncWriter {
    fn write_instruction(
        &mut self,
        w: &mut Write,
        func: &Function,
        isa: Option<&TargetIsa>,
        inst: Inst,
        ident: usize
    ) -> Result;
fn write_preamble(
        &mut self,
        w: &mut Write,
        func: &Function,
        regs: Option<&RegInfo>
    ) -> Result<bool, Error>; }

A FuncWriter is used to decorate functions during printing

Required Methods

Write the given inst to w

Write the preamble to w

Implementors