llvm::simplifyUnOp

simplifyUnOp overloads

Synopses

Declared in <llvm/Analysis/InstructionSimplify.h>

Given operand for a UnaryOperator, fold the result or return null.

Value*
simplifyUnOp(
    unsigned int Opcode,
    Value* Op,
    SimplifyQuery const& Q);
» more...

Given operand for a UnaryOperator, fold the result or return null.

Value*
simplifyUnOp(
    unsigned int Opcode,
    Value* Op,
    FastMathFlags FMF,
    SimplifyQuery const& Q);
» more...

Return Value

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

Parameters

NameDescription
OpcodeUnary operator opcode.
OpOperand of the unary operator.
QSimplification query providing analyses and flags.
FMFFast-math flags to honor while folding.