ΒΆllvm::Value* emitBinaryFloatFnCall(
    llvm::Value* Op1,
    llvm::Value* Op2,
    llvm::StringRef Name,
    IRBuilder<>& B,
    const llvm::AttributeList& Attrs)

Description

Emit a call to the binary function named 'Name' (e.g. 'fmin'). This function is known to take type matching 'Op1' and 'Op2' and return one value with the same type. If 'Op1/Op2' are long double, 'l' is added as the suffix of name, if 'Op1/Op2' are float, we add a 'f' suffix.

Declared at: llvm/include/llvm/Transforms/Utils/BuildLibCalls.h:168

Parameters

llvm::Value* Op1
llvm::Value* Op2
llvm::StringRef Name
IRBuilder<>& B
const llvm::AttributeList& Attrs