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.
Declared in <llvm/Transforms/Utils/BuildLibCalls.h>
Value*
emitUnaryFloatFnCall(
Value* Op,
TargetLibraryInfo const* TLI,
StringRef Name,
IRBuilderBase& B,
AttributeList const& Attrs);
LLVM Value Representation
| Name | Description |
|---|---|
| Op | LLVM Value Representation |
| TLI | Provides information about what library functions are available for the current target. |
| Name | Represent a constant reference to a string, i.e. a character array and a length, which need not be null terminated. |
| B | Common base class shared among various IRBuilders. |
| Attrs | This 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'. |