pub trait MachInstEmit: MachInst {
    type State: MachInstEmitState<Self>;
    type Info: MachInstEmitInfo;
    type UnwindInfo: UnwindInfoGenerator<Self>;
    fn emit(
        &self,
        code: &mut MachBuffer<Self>,
        info: &Self::Info,
        state: &mut Self::State
    );
fn pretty_print(
        &self,
        mb_rru: Option<&RealRegUniverse>,
        state: &mut Self::State
    ) -> String; }
Expand description

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

Associated Types

Persistent state carried across emit invocations.

Constant information used in emit invocations.

Unwind info generator.

Required methods

Emit the instruction.

Pretty-print the instruction.

Implementors