emitUnaryFloatFnCall overloads

Synopses

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

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

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);

Return Value

The unary float libcall, or null if unavailable.

Parameters

Name

Description

Op

Operand whose type selects float/double/long double.

TLI

Target library info describing available libcalls.

Name

Base name of the unary math function (e.g. "floor").

B

IR builder used to create the call.

Attrs

Attributes to attach to the call.

DoubleFn

LibFunc for the double variant.

FloatFn

LibFunc for the float variant.

LongDoubleFn

LibFunc for the long double variant.

Created with MrDocs