Block
public struct Block : Sendable
A basic block in a Hylo IR function.
A basic blocks is sequence of instructions free of conditional control flow. It may also accept arguments representing values that are notionally defined before its first instruction.
-
A collection of instructions with stable identities.
Declaration
Swift
public typealias Instructions = DoublyLinkedList<Instruction> -
The innermost lexical scope corresponding to the block’s instructions.
Declaration
Swift
public let scope: AnyScopeID -
The type input parameters of the block.
Declaration
Swift
public let inputs: [IR.Type] -
The instructions in the block.
Declaration
Swift
public internal(set) var instructions: Instructions { get } -
Accesses the instruction at
address.Requires
addressmust be a valid address inself.Declaration
Swift
public subscript(address: Instructions.Address) -> Instruction { get set } -
The ID of a basic block.
See moreDeclaration
View on GitHub