Table of Contents

Enum OpCode

Namespace
Ubiquity.NET.Llvm.Instructions
Assembly
Ubiquity.NET.Llvm.dll

LLVM Instruction opcodes

public enum OpCode

Fields

AShr = 22

Arithmetic Shift Right instruction

Add = 8

Add instruction

AddrSpaceCast = 60

addressspacecast .. to instruction

Alloca = 26

xxx instruction

And = 23

Bitwise And instruction

AtomicCmpXchg = 56

CmpXchg instruction

AtomicRMW = 57

atomicrmw instruction

BitCast = 41

bitcast .. to instruction

Branch = 2

Branch instruction

Call = 45

call instruction

CallBr = 67

callbr instruction

CatchPad = 63

catchpad instruction

CatchRet = 62

catchret instruction

CatchSwitch = 65

catchswitch instruction

CleanupPad = 64

cleanuppad instruction

CleanupRet = 61

cleanupret instruction

ExtractElement = 50

extractelement instruction

ExtractValue = 53

extractvalue instruction

FAdd = 9

FAdd instruction

FCmp = 43

fcmp instruction

FDiv = 16

FDiv instruction

FMul = 13

FMul instruction

FPExt = 38

fpext .. to instruction

FPToSI = 34

fptosi .. to instruction

FPToUI = 33

fptoui .. to instruction

FPTrunc = 37

fptrunc .. to instruction

FRem = 19

FRem instruction

FSub = 11

FSub instruction

Fence = 55

Fence instruction

Freeze = 68

Freeze instruction

GetElementPtr = 29

getelementptr instruction

ICmp = 42

icmp instruction

IndirectBranch = 4

Indirect branch instruction

InsertElement = 51

insert instruction

InsertValue = 54

insertvalue instruction

IntToPtr = 40

inttoptr .. to instruction

Invalid = 0

Invalid or unknown instruction

Invoke = 5

Invoke instruction

LShr = 21

Logical Shift Right instruction

LandingPad = 59

landingpad instruction

Load = 27

Load instruction

Mul = 12

Mul instruction

Or = 24

Bitwise Or instruction

Phi = 44

phi instruction

PtrToInt = 39

ptrtoint .. to instruction

Resume = 58

resume instruction

Return = 1

Return instruction

SDiv = 15

SDiv instruction

SIToFP = 36

sitofp .. to instruction

SRem = 18

SRem instruction

Select = 46

select instruction

Shl = 20

Shift Left instruction

ShuffleVector = 52

shufflevector instruction

SignExtend = 32

sext .. to instruction

Store = 28

Store instruction

Sub = 10

Sub instruction

Switch = 3

Switch instruction

Trunc = 30

trunc .. to instruction

UDiv = 14

UDiv instruction

UIToFP = 35

uitofp .. to instruction

URem = 17

URem instruction

Unreachable = 7

Unreachable instruction

UserOp1 = 47

Custom user operator1 instruction

UserOp2 = 48

Custom user operator2 instruction

VaArg = 49

va_arg instruction

Xor = 25

Bitwise Xor instruction

ZeroExtend = 31

zext .. to instruction

Remarks

These are based on the "C" API and therefore more stable as changes in the underlying instruction ids are remapped in the C API layer

See Also