Binary
public enum Binary : CaseIterable
BinaryOperation
enumerates the subset of opcodes that are binary operations.
-
The
add
instruction.Declaration
Swift
case add
-
The
fadd
instruction.Declaration
Swift
case fadd
-
The
sub
instruction.Declaration
Swift
case sub
-
The
fsub
instruction.Declaration
Swift
case fsub
-
The
mul
instruction.Declaration
Swift
case mul
-
The
fmul
instruction.Declaration
Swift
case fmul
-
The
udiv
instruction.Declaration
Swift
case udiv
-
The
sdiv
instruction.Declaration
Swift
case sdiv
-
The
fdiv
instruction.Declaration
Swift
case fdiv
-
The
urem
instruction.Declaration
Swift
case urem
-
The
srem
instruction.Declaration
Swift
case srem
-
The
frem
instruction.Declaration
Swift
case frem
-
The
shl
instruction.Declaration
Swift
case shl
-
The
lshr
instruction.Declaration
Swift
case lshr
-
The
ashr
instruction.Declaration
Swift
case ashr
-
The
and
instruction.Declaration
Swift
case and
-
The
or
instruction.Declaration
Swift
case or
-
The
xor
instruction.Declaration
Swift
case xor
-
Retrieves the corresponding
LLVMOpcode
.Declaration
Swift
public var llvm: LLVMOpcode { get }
-
Retrieves the corresponding opcode for this binary operation.
Declaration
Swift
public var opCode: OpCode { get }