UnionDiscriminator
public struct UnionDiscriminator : Instruction
Copy the discriminator of a union container.
-
The union container whose discriminator is copied.
Declaration
Swift
public private(set) var container: Operand { get } -
The site of the code corresponding to that instruction.
Declaration
Swift
public var site: SourceRange -
Creates an instance with the given properties.
Declaration
Swift
fileprivate init(container: Operand, 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)
View on GitHub