pub trait FuncWriter {
    fn write_ebb_header(
        &mut self,
        w: &mut dyn Write,
        func: &Function,
        isa: Option<&dyn TargetIsa>,
        ebb: Ebb,
        indent: usize
    ) -> Result; fn write_instruction(
        &mut self,
        w: &mut dyn Write,
        func: &Function,
        aliases: &SecondaryMap<Value, Vec<Value>>,
        isa: Option<&dyn TargetIsa>,
        inst: Inst,
        indent: usize
    ) -> Result; fn write_preamble(
        &mut self,
        w: &mut dyn Write,
        func: &Function,
        regs: Option<&RegInfo>
    ) -> Result<bool, Error> { ... } fn write_entity_definition(
        &mut self,
        w: &mut dyn Write,
        func: &Function,
        entity: AnyEntity,
        value: &dyn Display
    ) -> Result { ... } }
Expand description

A FuncWriter used to decorate functions during printing.

Required Methods§

Write the extended basic block header for the current function.

Write the given inst to w.

Provided Methods§

Write the preamble to w. By default, this uses write_entity_definition.

Write an entity definition defined in the preamble to w.

Implementors§