TerminatorInstruction
public struct TerminatorInstruction : IRInstruction
A TerminatorInstruction represents an instruction that terminates a
basic block.
-
Creates a
TerminatorInstructionfrom anLLVMValueRefobject.Declaration
Swift
public init(llvm: LLVMValueRef) -
Retrieves the number of successors of this terminator instruction.
Declaration
Swift
public var successorCount: Int { get } -
Returns the successor block at the specified index, if it exists.
Declaration
Swift
public func getSuccessor(at idx: Int) -> BasicBlock? -
Updates the successor block at the specified index.
Declaration
Swift
public func setSuccessor(at idx: Int, to bb: BasicBlock) -
Declaration
Swift
public func asLLVM() -> LLVMValueRef
TerminatorInstruction Structure Reference