llvm::emitBinaryFloatFnCall

Emit a call to the binary DoubleFn, FloatFn, or LongDoubleFn for Op1's type.

Synopsis

Declared in <llvm/Transforms/Utils/BuildLibCalls.h>

Value*
emitBinaryFloatFnCall(
    Value* Op1,
    Value* Op2,
    TargetLibraryInfo const* TLI,
    LibFunc DoubleFn,
    LibFunc FloatFn,
    LibFunc LongDoubleFn,
    IRBuilderBase& B,
    AttributeList const& Attrs);

Return Value

The binary float libcall, or null if unavailable.

Parameters

NameDescription
Op1First operand; type selects which LibFunc to call.
Op2Second operand; type must match Op1.
TLITarget library info describing available libcalls.
DoubleFnLibFunc for the double variant.
FloatFnLibFunc for the float variant.
LongDoubleFnLibFunc for the long double variant.
BIR builder used to create the call.
AttrsAttributes to attach to the call.