CaptureIn
public struct CaptureIn : Instruction
extension CaptureIn: CustomStringConvertible
Captures and stores a remote part.
Well-formed IR guarantees the following invariants:
- The provenances of
targetcontain a singlealloc_stack. - A
capture ... inis post-dominated by at least onerelease_captureson the storage in which it has stored an access.
-
The operands of the instruction.
Declaration
Swift
public private(set) var operands: [Operand] { get } -
The site of the code corresponding to that instruction.
Declaration
Swift
public let site: SourceRange -
Creates an instance with the given properties.
-
The captured remote part.
Declaration
Swift
public var source: Operand { get } -
The location at which the remote part is stored.
Declaration
Swift
public var target: Operand { get } -
Declaration
Swift
public mutating func replaceOperand(at i: Int, with new: Operand) -
Declaration
Swift
public var description: String { get }
View on GitHub