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
-
The opcode for the
retinstruction.Declaration
Swift
case ret = 1
-
The opcode for the
brinstruction.Declaration
Swift
case br = 2
-
The opcode for the
switchinstruction.Declaration
Swift
case `switch` = 3
-
The opcode for the
indirectBrinstruction.Declaration
Swift
case indirectBr = 4
-
The opcode for the
invokeinstruction.Declaration
Swift
case invoke = 5
-
The opcode for the
unreachableinstruction.Declaration
Swift
case unreachable = 7
-
The opcode for the
addinstruction.Declaration
Swift
case add = 8
-
The opcode for the
faddinstruction.Declaration
Swift
case fadd = 9
-
The opcode for the
subinstruction.Declaration
Swift
case sub = 10
-
The opcode for the
fsubinstruction.Declaration
Swift
case fsub = 11
-
The opcode for the
mulinstruction.Declaration
Swift
case mul = 12
-
The opcode for the
fmulinstruction.Declaration
Swift
case fmul = 13
-
The opcode for the
udivinstruction.Declaration
Swift
case udiv = 14
-
The opcode for the
sdivinstruction.Declaration
Swift
case sdiv = 15
-
The opcode for the
fdivinstruction.Declaration
Swift
case fdiv = 16
-
The opcode for the
ureminstruction.Declaration
Swift
case urem = 17
-
The opcode for the
sreminstruction.Declaration
Swift
case srem = 18
-
The opcode for the
freminstruction.Declaration
Swift
case frem = 19
-
The opcode for the
shlinstruction.Declaration
Swift
case shl = 20
-
The opcode for the
lshrinstruction.Declaration
Swift
case lshr = 21
-
The opcode for the
ashrinstruction.Declaration
Swift
case ashr = 22
-
The opcode for the
andinstruction.Declaration
Swift
case and = 23
-
The opcode for the
orinstruction.Declaration
Swift
case or = 24
-
The opcode for the
xorinstruction.Declaration
Swift
case xor = 25
-
The opcode for the
allocainstruction.Declaration
Swift
case alloca = 26
-
The opcode for the
loadinstruction.Declaration
Swift
case load = 27
-
The opcode for the
storeinstruction.Declaration
Swift
case store = 28
-
The opcode for the
getElementPtrinstruction.Declaration
Swift
case getElementPtr = 29
-
The opcode for the
truncinstruction.Declaration
Swift
case trunc = 30
-
The opcode for the
zextinstruction.Declaration
Swift
case zext = 31
-
The opcode for the
sextinstruction.Declaration
Swift
case sext = 32
-
The opcode for the
fpToUIinstruction.Declaration
Swift
case fpToUI = 33
-
The opcode for the
fpToSIinstruction.Declaration
Swift
case fpToSI = 34
-
The opcode for the
uiToFPinstruction.Declaration
Swift
case uiToFP = 35
-
The opcode for the
siToFPinstruction.Declaration
Swift
case siToFP = 36
-
The opcode for the
fpTruncinstruction.Declaration
Swift
case fpTrunc = 37
-
The opcode for the
fpExtinstruction.Declaration
Swift
case fpExt = 38
-
The opcode for the
ptrToIntinstruction.Declaration
Swift
case ptrToInt = 39
-
The opcode for the
intToPtrinstruction.Declaration
Swift
case intToPtr = 40
-
The opcode for the
bitCastinstruction.Declaration
Swift
case bitCast = 41
-
The opcode for the
addrSpaceCastinstruction.Declaration
Swift
case addrSpaceCast = 60
-
The opcode for the
icmpinstruction.Declaration
Swift
case icmp = 42
-
The opcode for the
fcmpinstruction.Declaration
Swift
case fcmp = 43
-
The opcode for the
PHIinstruction.Declaration
Swift
case PHI = 44
-
The opcode for the
callinstruction.Declaration
Swift
case call = 45
-
The opcode for the
selectinstruction.Declaration
Swift
case select = 46
-
The opcode for the
userOp1instruction.Declaration
Swift
case userOp1 = 47
-
The opcode for the
userOp2instruction.Declaration
Swift
case userOp2 = 48
-
The opcode for the
vaArginstruction.Declaration
Swift
case vaArg = 49
-
The opcode for the
extractElementinstruction.Declaration
Swift
case extractElement = 50
-
The opcode for the
insertElementinstruction.Declaration
Swift
case insertElement = 51
-
The opcode for the
shuffleVectorinstruction.Declaration
Swift
case shuffleVector = 52
-
The opcode for the
extractValueinstruction.Declaration
Swift
case extractValue = 53
-
The opcode for the
insertValueinstruction.Declaration
Swift
case insertValue = 54
-
The opcode for the
fenceinstruction.Declaration
Swift
case fence = 55
-
The opcode for the
atomicCmpXchginstruction.Declaration
Swift
case atomicCmpXchg = 56
-
The opcode for the
atomicRMWinstruction.Declaration
Swift
case atomicRMW = 57
-
The opcode for the
resumeinstruction.Declaration
Swift
case resume = 58
-
The opcode for the
landingPadinstruction.Declaration
Swift
case landingPad = 59
-
The opcode for the
cleanupRetinstruction.Declaration
Swift
case cleanupRet = 61
-
The opcode for the
catchRetinstruction.Declaration
Swift
case catchRet = 62
-
The opcode for the
catchPadinstruction.Declaration
Swift
case catchPad = 63
-
The opcode for the
cleanupPadinstruction.Declaration
Swift
case cleanupPad = 64
-
The opcode for the
catchSwitchinstruction.Declaration
Swift
case catchSwitch = 65
OpCode Enum Reference