Binary

public enum Binary : CaseIterable

BinaryOperation enumerates the subset of opcodes that are binary operations.

  • add

    The add instruction.

    Declaration

    Swift

    case add
  • The fadd instruction.

    Declaration

    Swift

    case fadd
  • sub

    The sub instruction.

    Declaration

    Swift

    case sub
  • The fsub instruction.

    Declaration

    Swift

    case fsub
  • mul

    The mul instruction.

    Declaration

    Swift

    case mul
  • The fmul instruction.

    Declaration

    Swift

    case fmul
  • The udiv instruction.

    Declaration

    Swift

    case udiv
  • The sdiv instruction.

    Declaration

    Swift

    case sdiv
  • The fdiv instruction.

    Declaration

    Swift

    case fdiv
  • The urem instruction.

    Declaration

    Swift

    case urem
  • The srem instruction.

    Declaration

    Swift

    case srem
  • The frem instruction.

    Declaration

    Swift

    case frem
  • shl

    The shl instruction.

    Declaration

    Swift

    case shl
  • The lshr instruction.

    Declaration

    Swift

    case lshr
  • The ashr instruction.

    Declaration

    Swift

    case ashr
  • and

    The and instruction.

    Declaration

    Swift

    case and
  • or

    The or instruction.

    Declaration

    Swift

    case or
  • xor

    The xor instruction.

    Declaration

    Swift

    case xor
  • Retrieves the corresponding LLVMOpcode.

    Declaration

    Swift

    public var llvm: LLVMOpcode { get }
  • Retrieves the corresponding opcode for this binary operation.

    Declaration

    Swift

    public var opCode: OpCode { get }