SwapCallback<C> typedef

SwapCallback<C> = Instruction Function(AllocatedSSA a, AllocatedSSA b, AssembleContext<C> context)

Callback type for emitting a register swap instruction.

Corresponds to a synthesised SwapOp operation inserted by the register allocator. Both a and b must belong to the same RegType.

Implementation

typedef SwapCallback<C> = Instruction Function(
    AllocatedSSA a, AllocatedSSA b, AssembleContext<C> context);