llvm::emitUnaryFloatFnCall

emitUnaryFloatFnCall overloads

Synopses

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

Emit a call to the unary floating-point libcall named Name.

Value*
emitUnaryFloatFnCall(
    Value* Op,
    TargetLibraryInfo const* TLI,
    StringRef Name,
    IRBuilderBase& B,
    AttributeList const& Attrs);
» more...

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

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

Return Value

The unary float libcall, or null if unavailable.

Parameters

NameDescription
OpOperand whose type selects float/double/long double.
TLITarget library info describing available libcalls.
NameBase name of the unary math function (e.g. "floor").
BIR builder used to create the call.
AttrsAttributes to attach to the call.
DoubleFnLibFunc for the double variant.
FloatFnLibFunc for the float variant.
LongDoubleFnLibFunc for the long double variant.