ΒΆbool inferNonMandatoryLibFuncAttrs(
llvm::Module* M,
llvm::StringRef Name,
const llvm::TargetLibraryInfo& TLI)
bool inferNonMandatoryLibFuncAttrs(
llvm::Module* M,
llvm::StringRef Name,
const llvm::TargetLibraryInfo& TLI)
Description
Analyze the name and prototype of the given function and set any applicable attributes. Note that this merely helps optimizations on an already existing function but does not consider mandatory attributes. If the library function is unavailable, this doesn't modify it. Returns true if any attributes were set and false otherwise.
Declared at: llvm/include/llvm/Transforms/Utils/BuildLibCalls.h:31
Parameters
- llvm::Module* M
- llvm::StringRef Name
- const llvm::TargetLibraryInfo& TLI