Check if it is legal to perform inlining of the function called by CB into the caller at this particular use, and sets fields in IFI.

Synopsis

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

InlineResult
CanInlineCallSite(
    CallBase const& CB,
    InlineFunctionInfo& IFI);

Description

This does not consider whether it is possible for the function callee itself to be inlined; for that see isInlineViable.

Return Value

Success if the callsite may be inlined, otherwise a failure reason.

Parameters

Name

Description

CB

Call site being considered for inlining.

IFI

Inlining context updated with callsite‐specific state on success.

Created with MrDocs