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.
-
The first instruction in
self, if any.Declaration
Swift
public fileprivate(set) var first: InstructionID? { get } -
The last instruction in
self, if any.Declaration
Swift
public fileprivate(set) var last: InstructionID? { get } -
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] -
Assigns the first instruction of
self.Declaration
Swift
internal mutating func setFirst(_ i: InstructionID?) -
Assigns the last instruction of
self.Declaration
Swift
internal mutating func setLast(_ i: InstructionID?) -
Declaration
Swift
public init(scope: AnyScopeID, inputs: [IR.Type]) -
The stable ID of a basic block in its function.
See moreDeclaration
View on GitHub