Trait cranelift_codegen::machinst::MachInstEmit [−][src]
pub trait MachInstEmit: MachInst { type State: MachInstEmitState<Self>; type Info: MachInstEmitInfo; 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
type State: MachInstEmitState<Self>[src]
type State: MachInstEmitState<Self>[src]Persistent state carried across emit invocations.
type Info: MachInstEmitInfo[src]
type Info: MachInstEmitInfo[src]Constant information used in emit invocations.
Required methods
fn emit(
&self,
code: &mut MachBuffer<Self>,
info: &Self::Info,
state: &mut Self::State
)[src]
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]
fn pretty_print(
&self,
mb_rru: Option<&RealRegUniverse>,
state: &mut Self::State
) -> String[src]Pretty-print the instruction.