Instruction

public struct Instruction : IRInstruction

An Instruction represents an instruction residing in a basic block.

  • Creates an Intruction from an LLVMValueRef object.

    Declaration

    Swift

    public init(llvm: LLVMValueRef)
  • Retrieves the underlying LLVM value object.

    Declaration

    Swift

    public func asLLVM() -> LLVMValueRef
  • Create a copy of ‘this’ instruction that is identical in all ways except the following:

    • The instruction has no parent
    • The instruction has no name

    Declaration

    Swift

    public func clone() -> Instruction