CallBundle
public struct CallBundle : Instruction
extension CallBundle: CustomStringConvertible
Invokes one variant of bundle with arguments and writes its result to output.
-
The method bundle implementing the variant to call.
Declaration
Swift
public let bundle: BundleReference<MethodDecl> -
The type of the bundle.
Declaration
Swift
public let bundleType: MethodType -
The variants of the bundle.
Declaration
Swift
public let variants: [AccessEffect : Function.ID] -
The return storage and arguments of the call.
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.
Declaration
Swift
fileprivate init( bundle: BundleReference<MethodDecl>, bundleType: MethodType, variants: [AccessEffect: Function.ID], output: Operand, arguments: [Operand], site: SourceRange ) -
The capabilities possibly requested on the receiver.
Declaration
Swift
public var capabilities: AccessEffectSet { get } -
The location at which the result of
calleeis stored.Declaration
Swift
public var output: Operand { get } -
The arguments of the call.
Declaration
Swift
public var arguments: ArraySlice<Operand> { get } -
Declaration
Swift
public mutating func replaceOperand(at i: Int, with new: Operand) -
Declaration
Swift
public var description: String { get }
View on GitHub