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.
createICmp(builder, op, lhs, rhs, id = character())
the IRBuilder that manages the creation of the instructions
the comparison operator. One of the elements of ICmpInst.Predicate or the corresponding global variables in the R package.
the value objects for the two operands
an optional name for the instruction.
LLVM Documentation http://llvm.org/docs/