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

Name

Description

M

Module whose call sites are advised.

FAM

Function analysis manager providing analyses for advice.

Context

LLVM context used for diagnostics and remarks.

OriginalAdvisor

Advisor to fall back to when replay has no match.

ReplaySettings

Replay file, scope, fallback, and location format.

EmitRemarks

Whether to emit optimization remarks for replay decisions.

IC

Pipeline context identifying the inline pass using this advisor.

Created with MrDocs