Returns a pair of values, which if passed to llvm.is.fpclass, returns the same result as an fcmp with the given operands.

Synopses

Declared in <llvm/Analysis/FloatingPointPredicateUtils.h>

Returns a pair of values, which if passed to llvm.is.fpclass, returns the same result as an fcmp with the given operands.

std::pair<Value*, FPClassTest>
fcmpToClassTest(
    FCmpInst::Predicate Pred,
    Function const& F,
    Value* LHS,
    Value* RHS,
    bool LookThroughSrc = true);

Returns a pair of values, which if passed to llvm.is.fpclass, returns the same result as an fcmp with the given operands.

std::pair<Value*, FPClassTest>
fcmpToClassTest(
    FCmpInst::Predicate Pred,
    Function const& F,
    Value* LHS,
    APFloat const* ConstRHS,
    bool LookThroughSrc = true);

Return Value

Pair of (value, class mask) equivalent to the fcmp when passed to llvm.is.fpclass.

Parameters

Name

Description

Pred

FCmp predicate of the compare to convert.

F

Function providing denormal mode for the operands.

LHS

Left‐hand operand of the compare.

RHS

Right‐hand operand of the compare.

LookThroughSrc

Whether to look through sign‐bit operations on LHS.

ConstRHS

Constant right‐hand operand of the compare.

Created with MrDocs