llvm::emitUnaryFloatFnCall

Emit a call to the unary DoubleFn, FloatFn, or LongDoubleFn for Op's type.

Synopsis

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

Value*
emitUnaryFloatFnCall(
    Value* Op,
    TargetLibraryInfo const* TLI,
    LibFunc DoubleFn,
    LibFunc FloatFn,
    LibFunc LongDoubleFn,
    IRBuilderBase& B,
    AttributeList const& Attrs);

Return Value

The unary float libcall, or null if unavailable.

Parameters

NameDescription
OpOperand whose type selects which LibFunc to call.
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.