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

#include "llvm/Analysis/FunctionPropertiesAnalysis.h"

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

Public Member Functions

void print (raw_ostream &OS) const
 

Static Public Member Functions

static FunctionPropertiesInfo getFunctionPropertiesInfo (const Function &F, const LoopInfo &LI)
 

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
 

Detailed Description

Definition at line 23 of file FunctionPropertiesAnalysis.h.

Member Function Documentation

◆ getFunctionPropertiesInfo()

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

◆ print()

void FunctionPropertiesInfo::print ( raw_ostream OS) const

Member Data Documentation

◆ BasicBlockCount

int64_t llvm::FunctionPropertiesInfo::BasicBlockCount = 0

Number of basic blocks.

Definition at line 31 of file FunctionPropertiesAnalysis.h.

Referenced by getFunctionPropertiesInfo(), and 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 39 of file FunctionPropertiesAnalysis.h.

Referenced by getFunctionPropertiesInfo(), and 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 47 of file FunctionPropertiesAnalysis.h.

Referenced by getFunctionPropertiesInfo(), and print().

◆ LoadInstCount

int64_t llvm::FunctionPropertiesInfo::LoadInstCount = 0

Definition at line 50 of file FunctionPropertiesAnalysis.h.

Referenced by getFunctionPropertiesInfo(), and print().

◆ MaxLoopDepth

int64_t llvm::FunctionPropertiesInfo::MaxLoopDepth = 0

Definition at line 56 of file FunctionPropertiesAnalysis.h.

Referenced by getFunctionPropertiesInfo(), and print().

◆ StoreInstCount

int64_t llvm::FunctionPropertiesInfo::StoreInstCount = 0

Definition at line 53 of file FunctionPropertiesAnalysis.h.

Referenced by getFunctionPropertiesInfo(), and print().

◆ TopLevelLoopCount

int64_t llvm::FunctionPropertiesInfo::TopLevelLoopCount = 0

Definition at line 59 of file FunctionPropertiesAnalysis.h.

Referenced by getFunctionPropertiesInfo(), 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 43 of file FunctionPropertiesAnalysis.h.

Referenced by getFunctionPropertiesInfo(), and print().


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