createICmp: Create an integer comparison instruction

Description Usage Arguments Author(s) References

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

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

Author(s)

Duncan Temple Lang

References

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


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