llvm::InlineFunctionImpl

This should generally not be used, use InlineFunction instead.

Synopsis

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

void
InlineFunctionImpl(
    CallBase& CB,
    InlineFunctionInfo& IFI,
    bool MergeAttributes = false,
    AAResults* CalleeAAR = nullptr,
    bool InsertLifetime = true,
    bool TrackInlineHistory = false,
    Function* ForwardVarArgsTo = nullptr,
    OptimizationRemarkEmitter* ORE = nullptr);

Description

Perform mechanical inlining of CB into the caller.

This does not perform any legality or profitability checks for the inlining. This assumes that CanInlineCallSite was already called, populated IFI, and returned InlineResult::success.

Also assumes that isInlineViable returned InlineResult::success for the called function.

Parameters

NameDescription
CBCall site to inline mechanically into its caller.
IFIInlining context previously populated by CanInlineCallSite.
MergeAttributesWhether to merge callee attributes into the caller.
CalleeAAROptional alias-analysis results for the callee.
InsertLifetimeWhether to insert lifetime markers for inlined allocas.
TrackInlineHistoryWhether to record inline history metadata.
ForwardVarArgsToIf set, forward varargs from the callsite to calls to this function.
OREOptional optimization-remark emitter for diagnostics.