Trait cranelift_codegen::machinst::MachInstEmit[][src]

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; }
[]

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

Associated Types

type State: MachInstEmitState<Self>[src][]

Persistent state carried across emit invocations.

type Info: MachInstEmitInfo[src][]

Constant information used in emit invocations.

type UnwindInfo: UnwindInfoGenerator<Self>[src][]

Unwind info generator.

Required methods

fn emit(
    &self,
    code: &mut MachBuffer<Self>,
    info: &Self::Info,
    state: &mut Self::State
)
[src][]

Emit the instruction.

fn pretty_print(
    &self,
    mb_rru: Option<&RealRegUniverse>,
    state: &mut Self::State
) -> String
[src][]

Pretty-print the instruction.

Implementors