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, FunctionAnalysisManager &FAM) |
Public Attributes | |
int64_t | BasicBlockCount = 0 |
Number of basic blocks. More... | |
int64_t | BlocksReachedFromConditionalInstruction = 0 |
Number of blocks reached from a conditional instruction, or that are 'cases' of a SwitchInstr. More... | |
int64_t | Uses = 0 |
Number of uses of this function, plus 1 if the function is callable outside the module. More... | |
int64_t | DirectCallsToDefinedFunctions = 0 |
Number of direct calls made from this function to other functions defined in this module. More... | |
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 26 of file FunctionPropertiesAnalysis.h.
|
static |
Definition at line 84 of file FunctionPropertiesAnalysis.cpp.
References BB, F, FAM, and llvm::AnalysisManager< IRUnitT, ExtraArgTs >::getResult().
Referenced by llvm::FunctionPropertiesUpdater::finish(), and llvm::FunctionPropertiesAnalysis::run().
|
inline |
Definition at line 40 of file FunctionPropertiesAnalysis.h.
|
inline |
Definition at line 36 of file FunctionPropertiesAnalysis.h.
References memcmp.
void FunctionPropertiesInfo::print | ( | raw_ostream & | OS | ) | const |
Definition at line 99 of file FunctionPropertiesAnalysis.cpp.
References BasicBlockCount, BlocksReachedFromConditionalInstruction, DirectCallsToDefinedFunctions, LoadInstCount, MaxLoopDepth, StoreInstCount, TopLevelLoopCount, TotalInstructionCount, and Uses.
|
friend |
Definition at line 27 of file FunctionPropertiesAnalysis.h.
int64_t llvm::FunctionPropertiesInfo::BasicBlockCount = 0 |
Number of basic blocks.
Definition at line 47 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 55 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 63 of file FunctionPropertiesAnalysis.h.
Referenced by llvm::MLInlineAdvisor::getLocalCalls(), llvm::MLInlineAdvisor::onSuccessfulInlining(), and print().
int64_t llvm::FunctionPropertiesInfo::LoadInstCount = 0 |
Definition at line 66 of file FunctionPropertiesAnalysis.h.
Referenced by print().
int64_t llvm::FunctionPropertiesInfo::MaxLoopDepth = 0 |
Definition at line 72 of file FunctionPropertiesAnalysis.h.
Referenced by print().
int64_t llvm::FunctionPropertiesInfo::StoreInstCount = 0 |
Definition at line 69 of file FunctionPropertiesAnalysis.h.
Referenced by print().
int64_t llvm::FunctionPropertiesInfo::TopLevelLoopCount = 0 |
Definition at line 75 of file FunctionPropertiesAnalysis.h.
Referenced by print().
int64_t llvm::FunctionPropertiesInfo::TotalInstructionCount = 0 |
Definition at line 78 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 59 of file FunctionPropertiesAnalysis.h.
Referenced by print().