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;
Machine Check Debug Module
FunctionAnalysisManager FAM
StringSet - A set-like wrapper for the StringMap.
A container for analyses that lazily runs them and caches their results.
Base class for all callable instructions (InvokeInst and CallInst) Holds everything related to callin...
Interface for deciding whether to inline a call site or not.
const std::optional< InlineContext > IC
FunctionAnalysisManager & FAM
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.
Replay inline advisor that uses optimization remarks from inlining of previous build to guide current...
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)
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