Expand description
Instructions for data manipulation, but mostly control flow.
Since Sway abstracts most low level operations behind traits they are translated into function calls which contain ASM blocks.
Unfortunately, using opaque ASM blocks limits the effectiveness of certain optimizations and this should be addressed in the future, perhaps by using compiler intrinsic calls instead of the ASM blocks where possible. See: https://github.com/FuelLabs/sway/issues/855,
Structs§
- Provide a context for inserting new
Instruction
s to aBlock
. - Iterate over all
Instruction
s in a specificBlock
.
Enums§
- Where to insert new instructions in the block.
- Comparison operations.
- Special registers in the Fuel Virtual Machine.