LLVM 17.0.0git
Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
llvm::FunctionPropertiesInfo Class Reference

#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
 

Detailed Description

Definition at line 27 of file FunctionPropertiesAnalysis.h.

Member Function Documentation

◆ getFunctionPropertiesInfo() [1/2]

FunctionPropertiesInfo FunctionPropertiesInfo::getFunctionPropertiesInfo ( const Function F,
const DominatorTree DT,
const LoopInfo LI 
)
static

◆ getFunctionPropertiesInfo() [2/2]

FunctionPropertiesInfo FunctionPropertiesInfo::getFunctionPropertiesInfo ( Function F,
FunctionAnalysisManager FAM 
)
static

◆ operator!=()

bool llvm::FunctionPropertiesInfo::operator!= ( const FunctionPropertiesInfo FPI) const
inline

Definition at line 45 of file FunctionPropertiesAnalysis.h.

◆ operator==()

bool llvm::FunctionPropertiesInfo::operator== ( const FunctionPropertiesInfo FPI) const
inline

Definition at line 41 of file FunctionPropertiesAnalysis.h.

◆ print()

void FunctionPropertiesInfo::print ( raw_ostream OS) const

Friends And Related Function Documentation

◆ FunctionPropertiesUpdater

friend class FunctionPropertiesUpdater
friend

Definition at line 28 of file FunctionPropertiesAnalysis.h.

Member Data Documentation

◆ BasicBlockCount

int64_t llvm::FunctionPropertiesInfo::BasicBlockCount = 0

Number of basic blocks.

Definition at line 52 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ BlocksReachedFromConditionalInstruction

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().

◆ DirectCallsToDefinedFunctions

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().

◆ LoadInstCount

int64_t llvm::FunctionPropertiesInfo::LoadInstCount = 0

Definition at line 71 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ MaxLoopDepth

int64_t llvm::FunctionPropertiesInfo::MaxLoopDepth = 0

Definition at line 77 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ StoreInstCount

int64_t llvm::FunctionPropertiesInfo::StoreInstCount = 0

Definition at line 74 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ TopLevelLoopCount

int64_t llvm::FunctionPropertiesInfo::TopLevelLoopCount = 0

Definition at line 80 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ TotalInstructionCount

int64_t llvm::FunctionPropertiesInfo::TotalInstructionCount = 0

Definition at line 83 of file FunctionPropertiesAnalysis.h.

Referenced by llvm::MLInlineAdvisor::getIRSize(), and print().

◆ Uses

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().


The documentation for this class was generated from the following files: