Emit a call to the unary floating-point libcall named Name.
Declared in <llvm/Transforms/Utils/BuildLibCalls.h>
Value*
emitUnaryFloatFnCall(
Value* Op,
TargetLibraryInfo const* TLI,
StringRef Name,
IRBuilderBase& B,
AttributeList const& Attrs);
Emit a call to the unary function named 'Name' (e.g. 'floor'). This function is known to take a single of type matching 'Op' and returns one value with the same type. If 'Op' is a long double, 'l' is added as the suffix of name, if 'Op' is a float, we add a 'f' suffix.
The unary float libcall, or null if unavailable.
| 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. |