pub enum Opcode {
Show 67 variants
Ret,
Br,
Switch,
IndirectBr,
Invoke,
Unreachable,
CallBr,
FNeg,
Add,
FAdd,
Sub,
FSub,
Mul,
FMul,
UDiv,
SDiv,
FDiv,
URem,
SRem,
FRem,
Shl,
LShr,
AShr,
And,
Or,
Xor,
Alloca,
Load,
Store,
GetElementPtr,
Trunc,
ZExt,
SExt,
FPToUI,
FPToSI,
UIToFP,
SIToFP,
FPTrunc,
FPExt,
PtrToInt,
IntToPtr,
BitCast,
AddrSpaceCast,
ICmp,
FCmp,
PHI,
Call,
Select,
UserOp1,
UserOp2,
VAArg,
ExtractElement,
InsertElement,
ShuffleVector,
ExtractValue,
InsertValue,
Freeze,
Fence,
AtomicCmpXchg,
AtomicRMW,
Resume,
LandingPad,
CleanupRet,
CatchRet,
CatchPad,
CleanupPad,
CatchSwitch,
}
Expand description
Represents the various opcodes in LLVM IR.
Variants§
Ret
Return instruction.
Br
Branch instruction.
Switch
Switch instruction.
IndirectBr
Indirect branch instruction.
Invoke
Invoke instruction.
Unreachable
Unreachable instruction.
CallBr
CallBr
instruction.
FNeg
Floating-point negation instruction.
Add
Integer addition instruction.
FAdd
Floating-point addition instruction.
Sub
Integer subtraction instruction.
FSub
Floating-point subtraction instruction.
Mul
Integer multiplication instruction
FMul
Floating-point multiplication instruction.
UDiv
Unsigned integer division instruction.
SDiv
Signed integer division instruction.
FDiv
Floating-point division instruction.
URem
Unsigned integer remainder instruction.
SRem
Signed integer remainder instruction.
FRem
Floating-point remainder instruction.
Shl
Logical shift left instruction.
LShr
Logical shift right instruction.
AShr
Arithmetic shift right instruction.
And
Bitwise AND instruction.
Or
Bitwise OR instruction.
Xor
Bitwise XOR instruction.
Alloca
Alloca instruction.
Load
Load instruction.
Store
Store instruction.
GetElementPtr
GetElementPtr
instruction.
Trunc
Truncate instruction.
ZExt
Zero extend instruction.
SExt
Sign extend instruction.
FPToUI
Floating-point to unsigned integer instruction.
FPToSI
Floating-point to signed integer instruction.
UIToFP
Unsigned integer to floating-point instruction.
SIToFP
Signed integer to floating-point instruction.
FPTrunc
Floating-point truncate instruction.
FPExt
Floating-point extend instruction
PtrToInt
Pointer to integer instruction
IntToPtr
Integer to pointer instruction
BitCast
Bit-cast instruction
AddrSpaceCast
Address space cast instruction
ICmp
Integer comparison instruction
FCmp
Floating-point comparison instruction
PHI
PHI node instruction
Call
Call instruction
Select
Select instruction
UserOp1
User-defined operation 1
UserOp2
User-defined operation 2
VAArg
Variable argument instruction
ExtractElement
Extract element from vector instruction
InsertElement
Insert element into vector instruction
ShuffleVector
Shuffle vector instruction
ExtractValue
Extract value from aggregate instruction
InsertValue
Insert value into aggregate instruction
Freeze
Freeze instruction
Fence
Fence instruction
AtomicCmpXchg
Atomic compare and exchange instruction
AtomicRMW
Atomic read-modify-write instruction
Resume
Resume instruction
LandingPad
Landing pad instruction
CleanupRet
Cleanup return instruction.
CatchRet
Catch return instruction
CatchPad
Catch pad instruction
CleanupPad
Cleanup pad instruction
CatchSwitch
Catch switch instruction