SubfieldView
public struct SubfieldView : Instruction
extension SubfieldView: LifetimeExtender
extension SubfieldView: CustomStringConvertible
Computes the address of storage for a field or sub-field of a record, given the record’s address.
Does not access memory.
-
The address of the whole record.
Declaration
Swift
public private(set) var recordAddress: Operand { get } -
The subfield of the whole record whose address is computed.
Declaration
Swift
public let subfield: RecordPath -
The type of the resulting address.
Declaration
Swift
public let resultType: IR.Type -
The site of the code corresponding to that instruction.
Declaration
Swift
public let site: SourceRange -
Creates an instance with the given properties.
Declaration
Swift
fileprivate init( base: Operand, subfield: RecordPath, subfieldType: IR.`Type`, site: SourceRange ) -
Declaration
Swift
public var result: IR.Type? { get } -
Declaration
Swift
public var operands: [Operand] { get } -
Declaration
Swift
public mutating func replaceOperand(at i: Int, with new: Operand) -
Declaration
Swift
public var description: String { get }
View on GitHub