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
fn write_instruction(
&mut self,
w: &mut Write,
func: &Function,
isa: Option<&TargetIsa>,
inst: Inst,
ident: usize
) -> Result
&mut self,
w: &mut Write,
func: &Function,
isa: Option<&TargetIsa>,
inst: Inst,
ident: usize
) -> Result
Write the given inst to w
fn write_preamble(
&mut self,
w: &mut Write,
func: &Function,
regs: Option<&RegInfo>
) -> Result<bool, Error>
&mut self,
w: &mut Write,
func: &Function,
regs: Option<&RegInfo>
) -> Result<bool, Error>
Write the preamble to w
Implementors
impl FuncWriter for PlainWriter