pub trait MachInstEmit: MachInst {
    type State: MachInstEmitState<Self>;
    type Info;

    fn emit(
        &self,
        allocs: &[Allocation],
        code: &mut MachBuffer<Self>,
        info: &Self::Info,
        state: &mut Self::State
    ); fn pretty_print_inst(
        &self,
        allocs: &[Allocation],
        state: &mut Self::State
    ) -> String; }
Expand description

A trait describing the ability to encode a MachInst into binary machine code.

Required Associated Types§

Persistent state carried across emit invocations.

Constant information used in emit invocations.

Required Methods§

Emit the instruction.

Pretty-print the instruction.

Implementors§