OpCode

public enum OpCode : CaseIterable

Enumerates the opcodes of instructions available in the LLVM IR language.

Terminator Instructions

  • ret

    The opcode for the ret instruction.

    Declaration

    Swift

    case ret
  • br

    The opcode for the br instruction.

    Declaration

    Swift

    case br
  • The opcode for the switch instruction.

    Declaration

    Swift

    case `switch`
  • The opcode for the indirectBr instruction.

    Declaration

    Swift

    case indirectBr
  • The opcode for the invoke instruction.

    Declaration

    Swift

    case invoke
  • The opcode for the unreachable instruction.

    Declaration

    Swift

    case unreachable

Standard Binary Operators

  • add

    The opcode for the add instruction.

    Declaration

    Swift

    case add
  • The opcode for the fadd instruction.

    Declaration

    Swift

    case fadd
  • sub

    The opcode for the sub instruction.

    Declaration

    Swift

    case sub
  • The opcode for the fsub instruction.

    Declaration

    Swift

    case fsub
  • mul

    The opcode for the mul instruction.

    Declaration

    Swift

    case mul
  • The opcode for the fmul instruction.

    Declaration

    Swift

    case fmul
  • The opcode for the udiv instruction.

    Declaration

    Swift

    case udiv
  • The opcode for the sdiv instruction.

    Declaration

    Swift

    case sdiv
  • The opcode for the fdiv instruction.

    Declaration

    Swift

    case fdiv
  • The opcode for the urem instruction.

    Declaration

    Swift

    case urem
  • The opcode for the srem instruction.

    Declaration

    Swift

    case srem
  • The opcode for the frem instruction.

    Declaration

    Swift

    case frem

Logical Operators

  • shl

    The opcode for the shl instruction.

    Declaration

    Swift

    case shl
  • The opcode for the lshr instruction.

    Declaration

    Swift

    case lshr
  • The opcode for the ashr instruction.

    Declaration

    Swift

    case ashr
  • and

    The opcode for the and instruction.

    Declaration

    Swift

    case and
  • or

    The opcode for the or instruction.

    Declaration

    Swift

    case or
  • xor

    The opcode for the xor instruction.

    Declaration

    Swift

    case xor

Memory Operators

  • The opcode for the alloca instruction.

    Declaration

    Swift

    case alloca
  • The opcode for the load instruction.

    Declaration

    Swift

    case load
  • The opcode for the store instruction.

    Declaration

    Swift

    case store
  • The opcode for the getElementPtr instruction.

    Declaration

    Swift

    case getElementPtr

Cast Operators

  • The opcode for the trunc instruction.

    Declaration

    Swift

    case trunc
  • The opcode for the zext instruction.

    Declaration

    Swift

    case zext
  • The opcode for the sext instruction.

    Declaration

    Swift

    case sext
  • The opcode for the fpToUI instruction.

    Declaration

    Swift

    case fpToUI
  • The opcode for the fpToSI instruction.

    Declaration

    Swift

    case fpToSI
  • The opcode for the uiToFP instruction.

    Declaration

    Swift

    case uiToFP
  • The opcode for the siToFP instruction.

    Declaration

    Swift

    case siToFP
  • The opcode for the fpTrunc instruction.

    Declaration

    Swift

    case fpTrunc
  • The opcode for the fpExt instruction.

    Declaration

    Swift

    case fpExt
  • The opcode for the ptrToInt instruction.

    Declaration

    Swift

    case ptrToInt
  • The opcode for the intToPtr instruction.

    Declaration

    Swift

    case intToPtr
  • The opcode for the bitCast instruction.

    Declaration

    Swift

    case bitCast
  • The opcode for the addrSpaceCast instruction.

    Declaration

    Swift

    case addrSpaceCast

Other Operators

  • The opcode for the icmp instruction.

    Declaration

    Swift

    case icmp
  • The opcode for the fcmp instruction.

    Declaration

    Swift

    case fcmp
  • phi

    The opcode for the PHI instruction.

    Declaration

    Swift

    case phi
  • The opcode for the call instruction.

    Declaration

    Swift

    case call
  • The opcode for the select instruction.

    Declaration

    Swift

    case select
  • The opcode for the userOp1 instruction.

    Declaration

    Swift

    case userOp1
  • The opcode for the userOp2 instruction.

    Declaration

    Swift

    case userOp2
  • The opcode for the vaArg instruction.

    Declaration

    Swift

    case vaArg
  • The opcode for the extractElement instruction.

    Declaration

    Swift

    case extractElement
  • The opcode for the insertElement instruction.

    Declaration

    Swift

    case insertElement
  • The opcode for the shuffleVector instruction.

    Declaration

    Swift

    case shuffleVector
  • The opcode for the extractValue instruction.

    Declaration

    Swift

    case extractValue
  • The opcode for the insertValue instruction.

    Declaration

    Swift

    case insertValue

Atomic operators

  • The opcode for the fence instruction.

    Declaration

    Swift

    case fence
  • The opcode for the atomicCmpXchg instruction.

    Declaration

    Swift

    case atomicCmpXchg
  • The opcode for the atomicRMW instruction.

    Declaration

    Swift

    case atomicRMW

Exception Handling Operators

  • The opcode for the resume instruction.

    Declaration

    Swift

    case resume
  • The opcode for the landingPad instruction.

    Declaration

    Swift

    case landingPad
  • The opcode for the cleanupRet instruction.

    Declaration

    Swift

    case cleanupRet
  • The opcode for the catchRet instruction.

    Declaration

    Swift

    case catchRet
  • The opcode for the catchPad instruction.

    Declaration

    Swift

    case catchPad
  • The opcode for the cleanupPad instruction.

    Declaration

    Swift

    case cleanupPad
  • The opcode for the catchSwitch instruction.

    Declaration

    Swift

    case catchSwitch
  • BinaryOperation enumerates the subset of opcodes that are binary operations.

    See more

    Declaration

    Swift

    public enum Binary : CaseIterable
  • CastOperation enumerates the subset of opcodes that are cast operations.

    See more

    Declaration

    Swift

    public enum Cast : CaseIterable