SpillCallback<C> typedef

SpillCallback<C> = Instruction Function(AllocatedSSA variable, int slotIndex, AssembleContext<C> context)

Callback type for emitting a spill (store to local slot) instruction.

variable is the allocated SSA variable being spilled (its AllocatedSSA.register is the physical register being stored from). slotIndex is the unique per-SSA.type slot index assigned to this variable. context carries the user-supplied context data passed to AssemblerConfig.

Implementation

typedef SpillCallback<C> = Instruction Function(
    AllocatedSSA variable, int slotIndex, AssembleContext<C> context);