Instruction
public protocol Instruction : CustomStringConvertible, Sendable
A Hylo IR instruction.
-
resultDefault implementationThe type of the instruction’s result, if any.
Default Implementation
Declaration
Swift
var result: IR.Type? { get } -
operandsDefault implementationThe operands of the instruction.
Default Implementation
Declaration
Swift
var operands: [Operand] { get } -
The site of the code corresponding to that instruction.
Declaration
Swift
var site: SourceRange { get } -
Replaces the operand at position
iwitho.Do not call this method directly. Use
Module.replaceUses(of:with:)instead to ensure def-use ensure def-use chains are kept updated.Declaration
Swift
mutating func replaceOperand(at i: Int, with new: Operand) -
isTransparentOffsetExtension methodtrueiffselfis an instruction computing an address derived from its operand without accessing them.Declaration
Swift
fileprivate var isTransparentOffset: Bool { get } -
isAccess(_:Extension method) Returns
trueiffselfis anaccess [k]instruction.Declaration
Swift
func isAccess(_ k: AccessEffect) -> Bool -
isAccess(in:Extension method) Returns
trueiffselfis anaccess kinstruction wherekis subset ofks.Declaration
Swift
func isAccess(in ks: AccessEffectSet) -> Bool -
descriptionExtension methodDeclaration
Swift
public var description: String { get }
View on GitHub