9#ifndef LLVM_ANALYSIS_REPLAYINLINEADVISOR_H
10#define LLVM_ANALYSIS_REPLAYINLINEADVISOR_H
55std::unique_ptr<InlineAdvisor>
58 std::unique_ptr<InlineAdvisor> OriginalAdvisor,
68 std::unique_ptr<InlineAdvisor> OriginalAdvisor,
80 std::unique_ptr<InlineAdvisor> OriginalAdvisor;
81 bool HasReplayRemarks =
false;
82 const ReplayInlinerSettings ReplaySettings;
83 bool EmitRemarks =
false;
85 StringMap<bool> InlineSitesFromRemarks;
86 StringSet<> CallersToReplay;
FunctionAnalysisManager FAM
StringSet - A set-like wrapper for the StringMap.
Base class for all callable instructions (InvokeInst and CallInst) Holds everything related to callin...
const std::optional< InlineContext > IC
FunctionAnalysisManager & FAM
InlineAdvisor(InlineAdvisor &&)=delete
This is an important class for using LLVM in a threaded context.
A Module instance is used to store all the information related to an LLVM module.
ReplayInlineAdvisor(Module &M, FunctionAnalysisManager &FAM, LLVMContext &Context, std::unique_ptr< InlineAdvisor > OriginalAdvisor, const ReplayInlinerSettings &ReplaySettings, bool EmitRemarks, InlineContext IC)
bool areReplayRemarksLoaded() const
std::unique_ptr< InlineAdvice > getAdviceImpl(CallBase &CB) override
StringRef - Represent a constant reference to a string, i.e.
bool contains(StringRef key) const
Check if the set contains the given key.
This is an optimization pass for GlobalISel generic memory operations.
std::unique_ptr< InlineAdvisor > getReplayInlineAdvisor(Module &M, FunctionAnalysisManager &FAM, LLVMContext &Context, std::unique_ptr< InlineAdvisor > OriginalAdvisor, const ReplayInlinerSettings &ReplaySettings, bool EmitRemarks, InlineContext IC)
AnalysisManager< Function > FunctionAnalysisManager
Convenience typedef for the Function analysis manager.
std::string formatCallSiteLocation(DebugLoc DLoc, const CallSiteFormat &Format)
Get call site location as a string with the given format.
Provides context on when an inline advisor is constructed in the pipeline (e.g., link phase,...
CallSiteFormat ReplayFormat