llvm::simplifyICmpInst

Given operands for an ICmpInst, fold the result or return null.

Synopsis

Declared in <llvm/Analysis/InstructionSimplify.h>

Value*
simplifyICmpInst(
    CmpPredicate Pred,
    Value* LHS,
    Value* RHS,
    SimplifyQuery const& Q);

Return Value

The folded value, or null if no simplification was found.

Parameters

NameDescription
PredInteger comparison predicate.
LHSLeft-hand side operand.
RHSRight-hand side operand.
QSimplification query providing analyses and flags.