LLVM 17.0.0git
|
#include "llvm/Analysis/FunctionPropertiesAnalysis.h"
Public Member Functions | |
bool | operator== (const FunctionPropertiesInfo &FPI) const |
bool | operator!= (const FunctionPropertiesInfo &FPI) const |
void | print (raw_ostream &OS) const |
Static Public Member Functions | |
static FunctionPropertiesInfo | getFunctionPropertiesInfo (const Function &F, const DominatorTree &DT, const LoopInfo &LI) |
static FunctionPropertiesInfo | getFunctionPropertiesInfo (Function &F, FunctionAnalysisManager &FAM) |
Public Attributes | |
int64_t | BasicBlockCount = 0 |
Number of basic blocks. | |
int64_t | BlocksReachedFromConditionalInstruction = 0 |
Number of blocks reached from a conditional instruction, or that are 'cases' of a SwitchInstr. | |
int64_t | Uses = 0 |
Number of uses of this function, plus 1 if the function is callable outside the module. | |
int64_t | DirectCallsToDefinedFunctions = 0 |
Number of direct calls made from this function to other functions defined in this module. | |
int64_t | LoadInstCount = 0 |
int64_t | StoreInstCount = 0 |
int64_t | MaxLoopDepth = 0 |
int64_t | TopLevelLoopCount = 0 |
int64_t | TotalInstructionCount = 0 |
Friends | |
class | FunctionPropertiesUpdater |
Definition at line 27 of file FunctionPropertiesAnalysis.h.
|
static |
Definition at line 90 of file FunctionPropertiesAnalysis.cpp.
References F, and llvm::DominatorTree::isReachableFromEntry().
Referenced by getFunctionPropertiesInfo(), and llvm::FunctionPropertiesAnalysis::run().
|
static |
Definition at line 84 of file FunctionPropertiesAnalysis.cpp.
References F, FAM, getFunctionPropertiesInfo(), and llvm::AnalysisManager< IRUnitT, ExtraArgTs >::getResult().
|
inline |
Definition at line 45 of file FunctionPropertiesAnalysis.h.
|
inline |
Definition at line 41 of file FunctionPropertiesAnalysis.h.
void FunctionPropertiesInfo::print | ( | raw_ostream & | OS | ) | const |
Definition at line 101 of file FunctionPropertiesAnalysis.cpp.
References BasicBlockCount, BlocksReachedFromConditionalInstruction, DirectCallsToDefinedFunctions, LoadInstCount, MaxLoopDepth, OS, StoreInstCount, TopLevelLoopCount, TotalInstructionCount, and Uses.
|
friend |
Definition at line 28 of file FunctionPropertiesAnalysis.h.
int64_t llvm::FunctionPropertiesInfo::BasicBlockCount = 0 |
Number of basic blocks.
Definition at line 52 of file FunctionPropertiesAnalysis.h.
Referenced by print().
int64_t llvm::FunctionPropertiesInfo::BlocksReachedFromConditionalInstruction = 0 |
Number of blocks reached from a conditional instruction, or that are 'cases' of a SwitchInstr.
Definition at line 60 of file FunctionPropertiesAnalysis.h.
Referenced by print().
int64_t llvm::FunctionPropertiesInfo::DirectCallsToDefinedFunctions = 0 |
Number of direct calls made from this function to other functions defined in this module.
Definition at line 68 of file FunctionPropertiesAnalysis.h.
Referenced by llvm::MLInlineAdvisor::getLocalCalls(), llvm::MLInlineAdvisor::onSuccessfulInlining(), and print().
int64_t llvm::FunctionPropertiesInfo::LoadInstCount = 0 |
Definition at line 71 of file FunctionPropertiesAnalysis.h.
Referenced by print().
int64_t llvm::FunctionPropertiesInfo::MaxLoopDepth = 0 |
Definition at line 77 of file FunctionPropertiesAnalysis.h.
Referenced by print().
int64_t llvm::FunctionPropertiesInfo::StoreInstCount = 0 |
Definition at line 74 of file FunctionPropertiesAnalysis.h.
Referenced by print().
int64_t llvm::FunctionPropertiesInfo::TopLevelLoopCount = 0 |
Definition at line 80 of file FunctionPropertiesAnalysis.h.
Referenced by print().
int64_t llvm::FunctionPropertiesInfo::TotalInstructionCount = 0 |
Definition at line 83 of file FunctionPropertiesAnalysis.h.
Referenced by llvm::MLInlineAdvisor::getIRSize(), and print().
int64_t llvm::FunctionPropertiesInfo::Uses = 0 |
Number of uses of this function, plus 1 if the function is callable outside the module.
Definition at line 64 of file FunctionPropertiesAnalysis.h.
Referenced by print().