llvm::getReplayInlineAdvisor

Create a replay inline advisor that consults prior inlining remarks.

Synopsis

Declared in <llvm/Analysis/ReplayInlineAdvisor.h>

std::unique_ptr<InlineAdvisor>
getReplayInlineAdvisor(
    Module& M,
    FunctionAnalysisManager& FAM,
    LLVMContext& Context,
    std::unique_ptr<InlineAdvisor> OriginalAdvisor,
    ReplayInlinerSettings const& ReplaySettings,
    bool EmitRemarks,
    InlineContext IC);

Return Value

A ReplayInlineAdvisor, or null if remarks could not be loaded.

Parameters

NameDescription
MModule whose call sites are advised.
FAMFunction analysis manager providing analyses for advice.
ContextLLVM context used for diagnostics and remarks.
OriginalAdvisorAdvisor to fall back to when replay has no match.
ReplaySettingsReplay file, scope, fallback, and location format.
EmitRemarksWhether to emit optimization remarks for replay decisions.
ICPipeline context identifying the inline pass using this advisor.