This function is used to create an LLVM binary operation such as addition, multiplication, modulus arithmetic.
binOp(builder, op, x, y, id = character())
the IRBuidler being used to create the instructions.
the identifier for the particular binary operation being
created. This is one of the enumerated values in BinaryOps
.
the first operand, i.e. on the left-hand side
the second operand, i.e. on the right-hand side
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
An object of class Value-class
.
LLVM & the http://llvm.org/docs/doxygen/html/IRBuilder_8h.html class.