Given operands for a CmpInst, fold the result or return null.

Synopsis

Declared in <llvm/Analysis/InstructionSimplify.h>

Value*
simplifyCmpInst(
    CmpPredicate Predicate,
    Value* LHS,
    Value* RHS,
    SimplifyQuery const& Q);

Return Value

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

Parameters

Name

Description

Predicate

Comparison predicate.

LHS

Left‐hand side operand.

RHS

Right‐hand side operand.

Q

Simplification query providing analyses and flags.

Created with MrDocs