createICmp: Create an integer comparison instruction

View source: R/IRBuilder.R

createICmpR Documentation

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.

Author(s)

Duncan Temple Lang

References

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


duncantl/Rllvm documentation built on Nov. 23, 2023, 4:24 p.m.