InstructionIndex
public struct InstructionIndex : Hashable, Sendable
Unlike an identity, an index is not stable: inserting or removing instructions from the containing block may invalidate existing indices.
See also
InstructionID
-
The function containing the instruction.
Declaration
Swift
public let function: Function.ID -
The block containing the instruction.
Declaration
Swift
public let block: Function.Blocks.Address -
The position of the instruction in its block.
Declaration
Swift
public let index: Block.Instructions.Index -
Creates an index with the given properties.
Declaration
-
Creates an index with the given properties.
View on GitHub