pub trait MachInstEmitState<I: MachInst>: Default + Clone + Debug {
    fn new(abi: &dyn ABICallee<I = I>) -> Self;

    fn pre_safepoint(&mut self, _stack_map: StackMap) { ... }
fn pre_sourceloc(&mut self, _srcloc: SourceLoc) { ... } }
Expand description

A trait describing the emission state carried between MachInsts when emitting a function body.

Required methods

Create a new emission state given the ABI object.

Provided methods

Update the emission state before emitting an instruction that is a safepoint.

Update the emission state to indicate instructions are associated with a particular SourceLoc.

Implementors