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

pub trait MachInstEmit: MachInst {
    type State: MachInstEmitState<Self>;
    fn emit(
        &self,
        code: &mut MachBuffer<Self>,
        flags: &Flags,
        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.

Loading content...

Required methods

fn emit(
    &self,
    code: &mut MachBuffer<Self>,
    flags: &Flags,
    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.

Loading content...

Implementors

Loading content...