SubfieldView
public struct SubfieldView : Instruction
extension SubfieldView: LifetimeExtender
extension SubfieldView: CustomStringConvertible
Computes the place of storage for a field or sub-field of a record, given the record’s place.
Does not access memory.
-
The place of the whole record.
Declaration
Swift
public private(set) var recordPlace: Operand { get } -
The subfield of the whole record whose place is computed.
Declaration
Swift
public let subfield: RecordPath -
The type of the resulting place.
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