LLVM Reference Card
LLVM Reference Card
4 Reference Card
Terminator instructions
ret <ty> <value>
ret void
Arithmetic instructions
<result> = add [nuw] [nsw] <ty> <op1>, <op2>
<ty>
Integer addition.
<ty>
Floating-point addition.
<ty>
Integer subtraction.
<ty>
Floating-point subtraction.
<ty>
Integer multiplication.
<ty>
Floating-point multiplication.
<ty>
<ty>
<ty>
Floating-point division.
<ty>
<ty>
<ty>
Floating-point remainder.
<ty>
Shift left.
<ty>
<ty>
<ty>
<ty>
Bitwise OR operation.
<ty>
Bitwise arithmetic
Vector operations
<result> = extractelement <n x <ty>> <val>,
i32 <idx>
<ty>
n x <ty>
m x <ty>
Aggregate operations
<result> = extractvalue <aggregate type> <val>,
<idx>[, <idx> ...]
aggregate value.
<ty>*
<ty>
Write to memory.
<ty>
Atomic compare-and-exchange.
<ty>
Atomic read-modify-write.
Conversion operations
<result> = trunc <ty> <value> to <ty2>
<ty2>
<ty2>
<ty2>
<ty2>
<ty2>
<ty2>
<ty2>
<ty2>
<ty2>
<ty2>
<ty2>
<ty2>
Miscellaneous
<result> = icmp {eq|ne|ugt|uge|ult|ule|sgt|sge|slt|sle}
<ty> <op1>, <op2>
i1
i1