Instruction

public struct Instruction: IRValue

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
  • Retrieves the opcode associated with this Instruction.

    Declaration

    Swift

    public var opCode: OpCode
  • Obtain the instruction that occurs before this one, if it exists.

    Declaration

    Swift

    public func previous() -> Instruction?
  • Obtain the instruction that occurs after this one, if it exists.

    Declaration

    Swift

    public func next() -> Instruction?
  • Retrieves the first use of this instruction.

    Declaration

    Swift

    public var firstUse: Use?
  • Retrieves the sequence of instructions that use the value from this instruction.

    Declaration

    Swift

    public var uses: AnySequence<Use>