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);

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

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

Return Value

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

Parameters

Name

Description

Opcode

Unary operator opcode.

Op

Operand of the unary operator.

Q

Simplification query providing analyses and flags.

FMF

Fast‐math flags to honor while folding.

Created with MrDocs