LLVM 22.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 | |
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 104 of file MLInlineAdvisor.h.
MLInlineAdvice::MLInlineAdvice | ( | MLInlineAdvisor * | Advisor, |
CallBase & | CB, | ||
OptimizationRemarkEmitter & | ORE, | ||
bool | Recommendation ) |
Definition at line 548 of file MLInlineAdvisor.cpp.
References llvm::InlineAdvice::Advisor, llvm::InlineAdvice::Callee, CalleeIRSize, llvm::InlineAdvice::Caller, CallerAndCalleeEdges, CallerIRSize, getCaller(), llvm::InlineAdvice::InlineAdvice(), and llvm::InlineAdvice::ORE.
|
virtualdefault |
|
inline |
Definition at line 116 of file MLInlineAdvisor.h.
References llvm::InlineAdvice::Callee.
Referenced by llvm::MLInlineAdvisor::onSuccessfulInlining().
|
inline |
Definition at line 115 of file MLInlineAdvisor.h.
References llvm::InlineAdvice::Caller.
Referenced by MLInlineAdvice(), and llvm::MLInlineAdvisor::onSuccessfulInlining().
|
overridevirtual |
Reimplemented from llvm::InlineAdvice.
Definition at line 577 of file MLInlineAdvisor.cpp.
References llvm::InlineAdvice::Block, DEBUG_TYPE, llvm::InlineAdvice::DLoc, and llvm::InlineAdvice::ORE.
|
overridevirtual |
Reimplemented from llvm::InlineAdvice.
Definition at line 586 of file MLInlineAdvisor.cpp.
References llvm::InlineAdvice::Block, DEBUG_TYPE, llvm::InlineAdvice::DLoc, and llvm::InlineAdvice::ORE.
|
overridevirtual |
Reimplemented from llvm::InlineAdvice.
Definition at line 606 of file MLInlineAdvisor.cpp.
References assert(), llvm::InlineAdvice::Block, DEBUG_TYPE, llvm::InlineAdvice::DLoc, and llvm::InlineAdvice::ORE.
|
overridevirtual |
Reimplemented from llvm::InlineAdvice.
Definition at line 596 of file MLInlineAdvisor.cpp.
References llvm::InlineAdvice::Block, llvm::InlineAdvice::Caller, DEBUG_TYPE, llvm::InlineAdvice::DLoc, and llvm::InlineAdvice::ORE.
void MLInlineAdvice::updateCachedCallerFPI | ( | FunctionAnalysisManager & | FAM | ) | const |
Definition at line 573 of file MLInlineAdvisor.cpp.
References FAM.
Referenced by llvm::MLInlineAdvisor::onSuccessfulInlining().
const int64_t llvm::MLInlineAdvice::CalleeIRSize |
Definition at line 119 of file MLInlineAdvisor.h.
Referenced by MLInlineAdvice(), and llvm::MLInlineAdvisor::onSuccessfulInlining().
const int64_t llvm::MLInlineAdvice::CallerAndCalleeEdges |
Definition at line 120 of file MLInlineAdvisor.h.
Referenced by MLInlineAdvice(), and llvm::MLInlineAdvisor::onSuccessfulInlining().
const int64_t llvm::MLInlineAdvice::CallerIRSize |
Definition at line 118 of file MLInlineAdvisor.h.
Referenced by MLInlineAdvice(), and llvm::MLInlineAdvisor::onSuccessfulInlining().