llvm::InlineResult

InlineResult is basically true or false. For false results the message describes a reason.

Synopsis

Declared in <llvm/Analysis/InlineCost.h>

class InlineResult;

Member Functions

NameDescription
getFailureReason Return the reason string for a failed inlining decision.
isSuccess Return true if inlining is allowed by this result.

Static Member Functions

NameDescription
failure Create a failed inlining result with the given reason.
success Create a successful inlining result.

Non-Member Functions

NameDescription
CanInlineCallSiteCheck 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.
InlineFunctionInline CB while also updating a contextual profile.
InlineFunctionInline the callee of CB into its caller's basic block.
getAttributeBasedInliningDecisionDecide inlining from user directives and viability, without cost modeling.
isInlineViableCheck if it is mechanically possible to inline the function Callee, based on the contents of the function.