forked from OSchip/llvm-project
[llvm][NFC] Fixed non-compliant style in InlineAdvisor.h
Changed OnPass{Entry|Exit} -> onPass{Entry|Exit} Also fixed a small typo in a comment.
This commit is contained in:
parent
2084330e41
commit
691980ebb4
|
@ -123,12 +123,12 @@ public:
|
|||
/// 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;
|
||||
|
@ -163,7 +163,7 @@ private:
|
|||
std::unique_ptr<InlineAdvice>
|
||||
getAdvice(CallBase &CB, FunctionAnalysisManager &FAM) override;
|
||||
|
||||
void OnPassExit() override { freeDeletedFunctions(); }
|
||||
void onPassExit() override { freeDeletedFunctions(); }
|
||||
InlineParams Params;
|
||||
};
|
||||
|
||||
|
|
|
@ -696,9 +696,9 @@ PreservedAnalyses InlinerPass::run(LazyCallGraph::SCC &InitialC,
|
|||
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) {
|
||||
|
@ -808,7 +808,7 @@ PreservedAnalyses InlinerPass::run(LazyCallGraph::SCC &InitialC,
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue