Skip to content

bloqade.lanes.dialects.stack_move.Swap

← Module overview

classSwapsource

bloqade.lanes.dialects.stack_move.Swap

Bases: ir.Statement

Swap the top two virtual-stack values. out_top ≡ in_bot; out_bot ≡ in_top.

class Swap

Attributes

NameTypeDefaultDescription
traits—frozenset({lowering.FromPythonCall(), ir.Pure()})
in_topir.SSAValueinfo.argument(TopType)
in_botir.SSAValueinfo.argument(BottomType)
out_topir.ResultValueinfo.result(BottomType)
out_botir.ResultValueinfo.result(TopType)