Skip to content
View source

Group builtinsGenerated

The builtins of kind group, as the compiler’s own table lists them.

Returns Function Requires
T exchange (value: T, lane: Int) —
Int lane () —
exchange(value: T, lane: Int) -> T

What lane lane of the group (wrapped into it, so lane() + 1 and -1 go round) holds as value at this exchange. Every lane of the group meets there, so an exchange stands under no branch, loop count or until that turns on what a lane holds alone (its lane, its element, what it reads or was handed): what the whole group holds (params, literals, the domain) may steer one. Group only, from its body.

Callable from a Kernel body only


lane() -> Int

This element’s place in its group, from 0 to the group’s size less one: element() % the size.

Callable from a Kernel body only