binOp: Create a binary operation instruction

Description Usage Arguments Value Author(s) References See Also

Description

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

Usage

1
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.

Author(s)

Duncan Temple Lang

References

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

See Also

IRBuilder


doktorschiwago/Rllvm2 documentation built on May 15, 2019, 9:42 a.m.