OpenUnion
public struct OpenUnion : RegionEntry
extension OpenUnion: LifetimeExtender
extension OpenUnion: CustomStringConvertible
Projects the address of a union payload, viewed as an instance of a given type.
-
Declaration
Swift
public typealias Exit = CloseUnion -
The union whose payload should be projected.
containermust denote the address of a union instance and there shouldn’t be used by any other liveopen_unioninstruction.Declaration
Swift
public private(set) var container: Operand { get } -
The type of the projected payload.
payloadTypemust be element ofcontainer‘s storage type. IfpayloadType.accessDeclaration
Swift
public let payloadType: AnyType -
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( container: Operand, payloadType: AnyType, isUsedForInitialization: Bool, 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