LLVM  16.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"

Collaboration diagram for llvm::FunctionPropertiesInfo:
Collaboration graph
[legend]

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
 

Detailed Description

Definition at line 26 of file FunctionPropertiesAnalysis.h.

Member Function Documentation

◆ getFunctionPropertiesInfo()

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

◆ operator!=()

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

Definition at line 40 of file FunctionPropertiesAnalysis.h.

◆ operator==()

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

Definition at line 36 of file FunctionPropertiesAnalysis.h.

References memcmp.

◆ print()

void FunctionPropertiesInfo::print ( raw_ostream OS) const

Friends And Related Function Documentation

◆ FunctionPropertiesUpdater

friend class FunctionPropertiesUpdater
friend

Definition at line 27 of file FunctionPropertiesAnalysis.h.

Member Data Documentation

◆ BasicBlockCount

int64_t llvm::FunctionPropertiesInfo::BasicBlockCount = 0

Number of basic blocks.

Definition at line 47 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 55 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 63 of file FunctionPropertiesAnalysis.h.

Referenced by llvm::MLInlineAdvisor::getLocalCalls(), llvm::MLInlineAdvisor::onSuccessfulInlining(), and print().

◆ LoadInstCount

int64_t llvm::FunctionPropertiesInfo::LoadInstCount = 0

Definition at line 66 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ MaxLoopDepth

int64_t llvm::FunctionPropertiesInfo::MaxLoopDepth = 0

Definition at line 72 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ StoreInstCount

int64_t llvm::FunctionPropertiesInfo::StoreInstCount = 0

Definition at line 69 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ TopLevelLoopCount

int64_t llvm::FunctionPropertiesInfo::TopLevelLoopCount = 0

Definition at line 75 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ TotalInstructionCount

int64_t llvm::FunctionPropertiesInfo::TotalInstructionCount = 0

Definition at line 78 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 59 of file FunctionPropertiesAnalysis.h.

Referenced by print().


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