OpCode

public enum OpCode: UInt32

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

The raw values of this enumeration must match those in llvm-c/Core.h

  • ret

    The opcode for the ret instruction.

    Declaration

    Swift

    case ret = 1
  • br

    The opcode for the br instruction.

    Declaration

    Swift

    case br = 2
  • The opcode for the switch instruction.

    Declaration

    Swift

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

    Declaration

    Swift

    case indirectBr = 4
  • The opcode for the invoke instruction.

    Declaration

    Swift

    case invoke = 5
  • The opcode for the unreachable instruction.

    Declaration

    Swift

    case unreachable = 7
  • add

    The opcode for the add instruction.

    Declaration

    Swift

    case add = 8
  • The opcode for the fadd instruction.

    Declaration

    Swift

    case fadd = 9
  • sub

    The opcode for the sub instruction.

    Declaration

    Swift

    case sub = 10
  • The opcode for the fsub instruction.

    Declaration

    Swift

    case fsub = 11
  • mul

    The opcode for the mul instruction.

    Declaration

    Swift

    case mul = 12
  • The opcode for the fmul instruction.

    Declaration

    Swift

    case fmul = 13
  • The opcode for the udiv instruction.

    Declaration

    Swift

    case udiv = 14
  • The opcode for the sdiv instruction.

    Declaration

    Swift

    case sdiv = 15
  • The opcode for the fdiv instruction.

    Declaration

    Swift

    case fdiv = 16
  • The opcode for the urem instruction.

    Declaration

    Swift

    case urem = 17
  • The opcode for the srem instruction.

    Declaration

    Swift

    case srem = 18
  • The opcode for the frem instruction.

    Declaration

    Swift

    case frem = 19
  • shl

    The opcode for the shl instruction.

    Declaration

    Swift

    case shl = 20
  • The opcode for the lshr instruction.

    Declaration

    Swift

    case lshr = 21
  • The opcode for the ashr instruction.

    Declaration

    Swift

    case ashr = 22
  • and

    The opcode for the and instruction.

    Declaration

    Swift

    case and = 23
  • or

    The opcode for the or instruction.

    Declaration

    Swift

    case or = 24
  • xor

    The opcode for the xor instruction.

    Declaration

    Swift

    case xor = 25
  • The opcode for the alloca instruction.

    Declaration

    Swift

    case alloca = 26
  • The opcode for the load instruction.

    Declaration

    Swift

    case load = 27
  • The opcode for the store instruction.

    Declaration

    Swift

    case store = 28
  • The opcode for the getElementPtr instruction.

    Declaration

    Swift

    case getElementPtr = 29
  • The opcode for the trunc instruction.

    Declaration

    Swift

    case trunc = 30
  • The opcode for the zext instruction.

    Declaration

    Swift

    case zext = 31
  • The opcode for the sext instruction.

    Declaration

    Swift

    case sext = 32
  • The opcode for the fpToUI instruction.

    Declaration

    Swift

    case fpToUI = 33
  • The opcode for the fpToSI instruction.

    Declaration

    Swift

    case fpToSI = 34
  • The opcode for the uiToFP instruction.

    Declaration

    Swift

    case uiToFP = 35
  • The opcode for the siToFP instruction.

    Declaration

    Swift

    case siToFP = 36
  • The opcode for the fpTrunc instruction.

    Declaration

    Swift

    case fpTrunc = 37
  • The opcode for the fpExt instruction.

    Declaration

    Swift

    case fpExt = 38
  • The opcode for the ptrToInt instruction.

    Declaration

    Swift

    case ptrToInt = 39
  • The opcode for the intToPtr instruction.

    Declaration

    Swift

    case intToPtr = 40
  • The opcode for the bitCast instruction.

    Declaration

    Swift

    case bitCast = 41
  • The opcode for the addrSpaceCast instruction.

    Declaration

    Swift

    case addrSpaceCast = 60
  • The opcode for the icmp instruction.

    Declaration

    Swift

    case icmp = 42
  • The opcode for the fcmp instruction.

    Declaration

    Swift

    case fcmp = 43
  • PHI

    The opcode for the PHI instruction.

    Declaration

    Swift

    case PHI = 44
  • The opcode for the call instruction.

    Declaration

    Swift

    case call = 45
  • The opcode for the select instruction.

    Declaration

    Swift

    case select = 46
  • The opcode for the userOp1 instruction.

    Declaration

    Swift

    case userOp1 = 47
  • The opcode for the userOp2 instruction.

    Declaration

    Swift

    case userOp2 = 48
  • The opcode for the vaArg instruction.

    Declaration

    Swift

    case vaArg = 49
  • The opcode for the extractElement instruction.

    Declaration

    Swift

    case extractElement = 50
  • The opcode for the insertElement instruction.

    Declaration

    Swift

    case insertElement = 51
  • The opcode for the shuffleVector instruction.

    Declaration

    Swift

    case shuffleVector = 52
  • The opcode for the extractValue instruction.

    Declaration

    Swift

    case extractValue = 53
  • The opcode for the insertValue instruction.

    Declaration

    Swift

    case insertValue = 54
  • The opcode for the fence instruction.

    Declaration

    Swift

    case fence = 55
  • The opcode for the atomicCmpXchg instruction.

    Declaration

    Swift

    case atomicCmpXchg = 56
  • The opcode for the atomicRMW instruction.

    Declaration

    Swift

    case atomicRMW = 57
  • The opcode for the resume instruction.

    Declaration

    Swift

    case resume = 58
  • The opcode for the landingPad instruction.

    Declaration

    Swift

    case landingPad = 59
  • The opcode for the cleanupRet instruction.

    Declaration

    Swift

    case cleanupRet = 61
  • The opcode for the catchRet instruction.

    Declaration

    Swift

    case catchRet = 62
  • The opcode for the catchPad instruction.

    Declaration

    Swift

    case catchPad = 63
  • The opcode for the cleanupPad instruction.

    Declaration

    Swift

    case cleanupPad = 64
  • The opcode for the catchSwitch instruction.

    Declaration

    Swift

    case catchSwitch = 65