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

Synopsis

Declared in <llvm/Analysis/InstructionSimplify.h>

Value*
simplifySDivInst(
    Value* LHS,
    Value* RHS,
    bool IsExact,
    SimplifyQuery const& Q);

Return Value

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

Parameters

Name

Description

LHS

Left‐hand side operand.

RHS

Right‐hand side operand.

IsExact

Whether the sdiv has the exact flag.

Q

Simplification query providing analyses and flags.

Created with MrDocs