Switch
public struct Switch : Terminator
extension Switch: CustomStringConvertible
Branches to one of several basic blocks.
-
An index in
successorsexpressed as a built-in integer value.Declaration
Swift
public private(set) var index: Operand { get } -
The possible targets of the instruction.
Declaration
Swift
public private(set) var successors: [Block.ID] { get } -
The site of the code corresponding to that instruction.
Declaration
Swift
public let site: SourceRange -
Creates an instance with the given properties.
-
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