/// This must be called when the Inliner pass is entered, to allow the
/// InlineAdvisor update internal state, as result of function passes run
/// between Inliner pass runs (for the same module).
- virtual void OnPassEntry() {}
+ virtual void onPassEntry() {}
/// This must be called when the Inliner pass is exited, as function passes
/// may be run subsequently. This allows an implementation of InlineAdvisor
/// to prepare for a partial update.
- virtual void OnPassExit() {}
+ virtual void onPassExit() {}
protected:
InlineAdvisor() = default;
std::unique_ptr<InlineAdvice>
getAdvice(CallBase &CB, FunctionAnalysisManager &FAM) override;
- void OnPassExit() override { freeDeletedFunctions(); }
+ void onPassExit() override { freeDeletedFunctions(); }
InlineParams Params;
};
ProfileSummaryInfo *PSI = MAMProxy.getCachedResult<ProfileSummaryAnalysis>(M);
InlineAdvisor &Advisor = getAdvisor(MAMProxy, M);
- Advisor.OnPassEntry();
+ Advisor.onPassEntry();
- auto AdvisorOnExit = make_scope_exit([&] { Advisor.OnPassExit(); });
+ auto AdvisorOnExit = make_scope_exit([&] { Advisor.onPassExit(); });
if (!ImportedFunctionsStats &&
InlinerFunctionImportStats != InlinerFunctionImportStatsOpts::No) {
return FAM.getResult<AssumptionAnalysis>(F);
};
- // Now process as many calls as we have within this caller in the sequnece.
+ // Now process as many calls as we have within this caller in the sequence.
// We bail out as soon as the caller has to change so we can update the
// call graph and prepare the context of that new caller.
bool DidInline = false;