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

pub trait MachInstEmit: MachInst {
    type State: Default + Clone + Debug;
    fn emit(
        &self,
        code: &mut MachBuffer<Self>,
        flags: &Flags,
        state: &mut Self::State
    ); }

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

Associated Types

type State: Default + Clone + Debug

Persistent state carried across emit invocations.

Loading content...

Required methods

fn emit(
    &self,
    code: &mut MachBuffer<Self>,
    flags: &Flags,
    state: &mut Self::State
)

Emit the instruction.

Loading content...

Implementors

Loading content...