Learn R Programming

Rllvm (version 0.7-0)

createICmp: Create an integer comparison instruction

Description

This function allows us to create an instruction that compares two integers. The usual comparisons such as less than, greater than, equal, not equal, are supported. And there is support for both unsigned and signed versions of all of these comparisons.

Usage

createICmp(builder, op, lhs, rhs, id = character())

Arguments

builder

the IRBuilder that manages the creation of the instructions

op

the comparison operator. One of the elements of ICmpInst.Predicate or the corresponding global variables in the R package.

lhs,rhs

the value objects for the two operands

id

an optional name for the instruction.

References

LLVM Documentation http://llvm.org/docs/