retn

From Mill Computing Wiki
Revision as of 17:45, 4 February 2015 by Generator (Talk | contribs)

Jump to: navigation, search
realizing  exu stream  flowSkinny block  transfer phase   operation  

native on: all

Returns values and control to the caller.

The Mill architecture supports multiple return values not only on operations but for all functions, as many as there are belt positions. Still most will only have one or none at all, because that is what languages were and are designed for.

Return not only returns from the most recent call operation and ends a frame, but also from the most recent inner operation and exits a loop. This depends on whether it was a call or an inner that has been executed most recently. The Spiller keeps track of that.

related operations: call, inner, retntr, retnfl


retn()

operands: like Inv :


alternate encoding: skinny

Core In Slots Latencies
Tin f0 1
Copper f0 1
Silver f0 1
Gold f0 1
Decimal8 f0 1
Decimal16 f0 1

retn(ops vs) → ops r0 ...

operands: like Inv :


encoding: retn(off vs, count c) , retn(off vs, count c, lit vs) , retn(off vs, count c, lit vs, lit vs) , retn(off vs, count c, lit vs, lit vs, lit vs)

Core In Slots Latencies
Tin F0 1
Copper F0 F1 1
Silver F0 F1 F2 1
Gold F0 F1 F2 F3 1
Decimal8 F0 F1 F2 1
Decimal16 F0 F1 F2 1

retn(op Another) → op r0

operands: like Inv :


alternate encoding: skinny

Core In Slots Latencies
Tin f0 1
Copper f0 1
Silver f0 1
Gold f1 1
Decimal8 f0 1
Decimal16 f0 1


Instruction Set, alphabetical, Instruction Set by Category, Instruction Set, sortable, filterable