llvm::fcmpToClassTest

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);
» more...

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);
» more...

Return Value

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

Parameters

NameDescription
PredFCmp predicate of the compare to convert.
FFunction providing denormal mode for the operands.
LHSLeft-hand operand of the compare.
RHSRight-hand operand of the compare.
LookThroughSrcWhether to look through sign-bit operations on LHS.
ConstRHSConstant right-hand operand of the compare.