bloqade.lanes.dialects.stack_move.Swap
← Module overview
class
classSwap¶source
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 SwapAttributes
| Name | Type | Default | Description |
|---|---|---|---|
traits | — | frozenset({lowering.FromPythonCall(), ir.Pure()}) | |
in_top | ir.SSAValue | info.argument(TopType) | |
in_bot | ir.SSAValue | info.argument(BottomType) | |
out_top | ir.ResultValue | info.result(BottomType) | |
out_bot | ir.ResultValue | info.result(TopType) |