llvm::emitBinaryFloatFnCall

Emit a call to the binary function DoubleFn, FloatFn or LongDoubleFn, depending of the type of Op1.

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

LLVM Value Representation

Parameters

NameDescription
Op1LLVM Value Representation
Op2LLVM Value Representation
TLIProvides information about what library functions are available for the current target.
BCommon base class shared among various IRBuilders.
AttrsThis class holds the attributes for a function, its return value, and its parameters. You access the attributes for each of them via an index into the AttributeList object. The function attributes are at index `AttributeList::FunctionIndex', the return value is at index `AttributeList::ReturnIndex', and the attributes for the parameters start at index `AttributeList::FirstArgIndex'.