Infer and set non‐mandatory attributes on an existing function.

Synopsis

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

bool
inferNonMandatoryLibFuncAttrs(
    Function& F,
    TargetLibraryInfo const& 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.

Return Value

True if any attributes were set, false otherwise.

Parameters

Name

Description

F

Function whose attributes may be updated.

TLI

Target library info describing available libcalls.

Created with MrDocs