Rllvm (version 0.7-0)

binOp: Create a binary operation instruction

Description

This function is used to create an LLVM binary operation such as addition, multiplication, modulus arithmetic.

Usage

binOp(builder, op, x, y, id = character())

Arguments

builder

the IRBuidler being used to create the instructions.

op

the identifier for the particular binary operation being created. This is one of the enumerated values in BinaryOps.

x

the first operand, i.e. on the left-hand side

y

the second operand, i.e. on the right-hand side

id

an optional character string giving the name to use to identify the operation. This is used when display the instructions in a "dump" of the module

Value

An object of class Value-class.

References

LLVM & the http://llvm.org/docs/doxygen/html/IRBuilder_8h.html class.

See Also

IRBuilder