LLVM 20.0.0git
|
InlineAdvice that tracks changes post inlining. More...
#include "llvm/Analysis/MLInlineAdvisor.h"
Public Attributes | |
const int64_t | CallerIRSize |
const int64_t | CalleeIRSize |
const int64_t | CallerAndCalleeEdges |
Additional Inherited Members | |
virtual void | recordInliningImpl () |
virtual void | recordInliningWithCalleeDeletedImpl () |
virtual void | recordUnsuccessfulInliningImpl (const InlineResult &Result) |
virtual void | recordUnattemptedInliningImpl () |
Protected Attributes inherited from llvm::InlineAdvice | |
InlineAdvisor *const | Advisor |
Function *const | Caller |
Caller and Callee are pre-inlining. | |
Function *const | Callee |
const DebugLoc | DLoc |
const BasicBlock *const | Block |
OptimizationRemarkEmitter & | ORE |
const bool | IsInliningRecommended |
InlineAdvice that tracks changes post inlining.
For that reason, it only overrides the "successful inlining" extension points.
Definition at line 98 of file MLInlineAdvisor.h.
MLInlineAdvice::MLInlineAdvice | ( | MLInlineAdvisor * | Advisor, |
CallBase & | CB, | ||
OptimizationRemarkEmitter & | ORE, | ||
bool | Recommendation | ||
) |
Definition at line 506 of file MLInlineAdvisor.cpp.
References llvm::InlineAdvice::Advisor, and getCaller().
|
virtualdefault |
|
inline |
Definition at line 110 of file MLInlineAdvisor.h.
References llvm::InlineAdvice::Callee.
Referenced by llvm::MLInlineAdvisor::onSuccessfulInlining().
|
inline |
Definition at line 109 of file MLInlineAdvisor.h.
References llvm::InlineAdvice::Caller.
Referenced by MLInlineAdvice(), and llvm::MLInlineAdvisor::onSuccessfulInlining().
|
overridevirtual |
Reimplemented from llvm::InlineAdvice.
Definition at line 535 of file MLInlineAdvisor.cpp.
References llvm::InlineAdvice::Block, DEBUG_TYPE, llvm::InlineAdvice::DLoc, llvm::OptimizationRemarkEmitter::emit(), llvm::MLInlineAdvisor::onSuccessfulInlining(), and llvm::InlineAdvice::ORE.
|
overridevirtual |
Reimplemented from llvm::InlineAdvice.
Definition at line 544 of file MLInlineAdvisor.cpp.
References llvm::InlineAdvice::Block, DEBUG_TYPE, llvm::InlineAdvice::DLoc, llvm::OptimizationRemarkEmitter::emit(), llvm::MLInlineAdvisor::onSuccessfulInlining(), and llvm::InlineAdvice::ORE.
|
overridevirtual |
Reimplemented from llvm::InlineAdvice.
Definition at line 564 of file MLInlineAdvisor.cpp.
References assert(), llvm::InlineAdvice::Block, DEBUG_TYPE, llvm::InlineAdvice::DLoc, llvm::OptimizationRemarkEmitter::emit(), and llvm::InlineAdvice::ORE.
|
overridevirtual |
Reimplemented from llvm::InlineAdvice.
Definition at line 554 of file MLInlineAdvisor.cpp.
References llvm::InlineAdvice::Block, llvm::InlineAdvice::Caller, DEBUG_TYPE, llvm::InlineAdvice::DLoc, llvm::OptimizationRemarkEmitter::emit(), llvm::MLInlineAdvisor::getCachedFPI(), and llvm::InlineAdvice::ORE.
void MLInlineAdvice::updateCachedCallerFPI | ( | FunctionAnalysisManager & | FAM | ) | const |
Definition at line 531 of file MLInlineAdvisor.cpp.
References FAM.
Referenced by llvm::MLInlineAdvisor::onSuccessfulInlining().
const int64_t llvm::MLInlineAdvice::CalleeIRSize |
Definition at line 113 of file MLInlineAdvisor.h.
Referenced by llvm::MLInlineAdvisor::onSuccessfulInlining().
const int64_t llvm::MLInlineAdvice::CallerAndCalleeEdges |
Definition at line 114 of file MLInlineAdvisor.h.
Referenced by llvm::MLInlineAdvisor::onSuccessfulInlining().
const int64_t llvm::MLInlineAdvice::CallerIRSize |
Definition at line 112 of file MLInlineAdvisor.h.
Referenced by llvm::MLInlineAdvisor::onSuccessfulInlining().