UnionSwitch
public struct UnionSwitch : Terminator
extension UnionSwitch: CustomStringConvertible
Branches to one of several basic blocks based on the discriminator of a union.
-
The type of a map from payload type to its target.
Declaration
Swift
public typealias Targets = OrderedDictionary<AnyType, Block.ID> -
The discriminator of the union container over which the instruction switches.
Declaration
Swift
public private(set) var discriminator: Operand { get } -
The type of the union over which the instruction switches.
Declaration
Swift
public let union: UnionType -
A map from payload type to its target.
Declaration
Swift
public private(set) var targets: Targets { get } -
The site of the code corresponding to that instruction.
Declaration
Swift
public let site: SourceRange -
Creates an instance with the given properties.
Declaration
-
Declaration
Swift
public var operands: [Operand] { get } -
Declaration
Swift
public var successors: [Block.ID] { get } -
Declaration
Swift
public mutating func replaceOperand(at i: Int, with new: Operand) -
-
Declaration
Swift
public var description: String { get }
View on GitHub