LLVM 19.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
 
int64_t BasicBlocksWithSingleSuccessor = 0
 
int64_t BasicBlocksWithTwoSuccessors = 0
 
int64_t BasicBlocksWithMoreThanTwoSuccessors = 0
 
int64_t BasicBlocksWithSinglePredecessor = 0
 
int64_t BasicBlocksWithTwoPredecessors = 0
 
int64_t BasicBlocksWithMoreThanTwoPredecessors = 0
 
int64_t BigBasicBlocks = 0
 
int64_t MediumBasicBlocks = 0
 
int64_t SmallBasicBlocks = 0
 
int64_t CastInstructionCount = 0
 
int64_t FloatingPointInstructionCount = 0
 
int64_t IntegerInstructionCount = 0
 
int64_t ConstantIntOperandCount = 0
 
int64_t ConstantFPOperandCount = 0
 
int64_t ConstantOperandCount = 0
 
int64_t InstructionOperandCount = 0
 
int64_t BasicBlockOperandCount = 0
 
int64_t GlobalValueOperandCount = 0
 
int64_t InlineAsmOperandCount = 0
 
int64_t ArgumentOperandCount = 0
 
int64_t UnknownOperandCount = 0
 
int64_t CriticalEdgeCount = 0
 
int64_t ControlFlowEdgeCount = 0
 
int64_t UnconditionalBranchCount = 0
 
int64_t IntrinsicCount = 0
 
int64_t DirectCallCount = 0
 
int64_t IndirectCallCount = 0
 
int64_t CallReturnsIntegerCount = 0
 
int64_t CallReturnsFloatCount = 0
 
int64_t CallReturnsPointerCount = 0
 
int64_t CallReturnsVectorIntCount = 0
 
int64_t CallReturnsVectorFloatCount = 0
 
int64_t CallReturnsVectorPointerCount = 0
 
int64_t CallWithManyArgumentsCount = 0
 
int64_t CallWithPointerArgumentCount = 0
 

Friends

class FunctionPropertiesUpdater
 

Detailed Description

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

◆ operator==()

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

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

Member Data Documentation

◆ ArgumentOperandCount

int64_t llvm::FunctionPropertiesInfo::ArgumentOperandCount = 0

Definition at line 117 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ BasicBlockCount

int64_t llvm::FunctionPropertiesInfo::BasicBlockCount = 0

Number of basic blocks.

Definition at line 51 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ BasicBlockOperandCount

int64_t llvm::FunctionPropertiesInfo::BasicBlockOperandCount = 0

Definition at line 114 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ BasicBlocksWithMoreThanTwoPredecessors

int64_t llvm::FunctionPropertiesInfo::BasicBlocksWithMoreThanTwoPredecessors = 0

Definition at line 92 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ BasicBlocksWithMoreThanTwoSuccessors

int64_t llvm::FunctionPropertiesInfo::BasicBlocksWithMoreThanTwoSuccessors = 0

Definition at line 87 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ BasicBlocksWithSinglePredecessor

int64_t llvm::FunctionPropertiesInfo::BasicBlocksWithSinglePredecessor = 0

Definition at line 90 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ BasicBlocksWithSingleSuccessor

int64_t llvm::FunctionPropertiesInfo::BasicBlocksWithSingleSuccessor = 0

Definition at line 85 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ BasicBlocksWithTwoPredecessors

int64_t llvm::FunctionPropertiesInfo::BasicBlocksWithTwoPredecessors = 0

Definition at line 91 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ BasicBlocksWithTwoSuccessors

int64_t llvm::FunctionPropertiesInfo::BasicBlocksWithTwoSuccessors = 0

Definition at line 86 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ BigBasicBlocks

int64_t llvm::FunctionPropertiesInfo::BigBasicBlocks = 0

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

Referenced by print().

◆ CallReturnsFloatCount

int64_t llvm::FunctionPropertiesInfo::CallReturnsFloatCount = 0

Definition at line 130 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ CallReturnsIntegerCount

int64_t llvm::FunctionPropertiesInfo::CallReturnsIntegerCount = 0

Definition at line 129 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ CallReturnsPointerCount

int64_t llvm::FunctionPropertiesInfo::CallReturnsPointerCount = 0

Definition at line 131 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ CallReturnsVectorFloatCount

int64_t llvm::FunctionPropertiesInfo::CallReturnsVectorFloatCount = 0

Definition at line 133 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ CallReturnsVectorIntCount

int64_t llvm::FunctionPropertiesInfo::CallReturnsVectorIntCount = 0

Definition at line 132 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ CallReturnsVectorPointerCount

int64_t llvm::FunctionPropertiesInfo::CallReturnsVectorPointerCount = 0

Definition at line 134 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ CallWithManyArgumentsCount

int64_t llvm::FunctionPropertiesInfo::CallWithManyArgumentsCount = 0

Definition at line 135 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ CallWithPointerArgumentCount

int64_t llvm::FunctionPropertiesInfo::CallWithPointerArgumentCount = 0

Definition at line 136 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ CastInstructionCount

int64_t llvm::FunctionPropertiesInfo::CastInstructionCount = 0

Definition at line 101 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ ConstantFPOperandCount

int64_t llvm::FunctionPropertiesInfo::ConstantFPOperandCount = 0

Definition at line 111 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ ConstantIntOperandCount

int64_t llvm::FunctionPropertiesInfo::ConstantIntOperandCount = 0

Definition at line 110 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ ConstantOperandCount

int64_t llvm::FunctionPropertiesInfo::ConstantOperandCount = 0

Definition at line 112 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ ControlFlowEdgeCount

int64_t llvm::FunctionPropertiesInfo::ControlFlowEdgeCount = 0

Definition at line 122 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ CriticalEdgeCount

int64_t llvm::FunctionPropertiesInfo::CriticalEdgeCount = 0

Definition at line 121 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ DirectCallCount

int64_t llvm::FunctionPropertiesInfo::DirectCallCount = 0

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

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

◆ FloatingPointInstructionCount

int64_t llvm::FunctionPropertiesInfo::FloatingPointInstructionCount = 0

Definition at line 104 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ GlobalValueOperandCount

int64_t llvm::FunctionPropertiesInfo::GlobalValueOperandCount = 0

Definition at line 115 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ IndirectCallCount

int64_t llvm::FunctionPropertiesInfo::IndirectCallCount = 0

Definition at line 128 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ InlineAsmOperandCount

int64_t llvm::FunctionPropertiesInfo::InlineAsmOperandCount = 0

Definition at line 116 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ InstructionOperandCount

int64_t llvm::FunctionPropertiesInfo::InstructionOperandCount = 0

Definition at line 113 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ IntegerInstructionCount

int64_t llvm::FunctionPropertiesInfo::IntegerInstructionCount = 0

Definition at line 107 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ IntrinsicCount

int64_t llvm::FunctionPropertiesInfo::IntrinsicCount = 0

Definition at line 126 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ LoadInstCount

int64_t llvm::FunctionPropertiesInfo::LoadInstCount = 0

Definition at line 70 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ MaxLoopDepth

int64_t llvm::FunctionPropertiesInfo::MaxLoopDepth = 0

Definition at line 76 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ MediumBasicBlocks

int64_t llvm::FunctionPropertiesInfo::MediumBasicBlocks = 0

Definition at line 97 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ SmallBasicBlocks

int64_t llvm::FunctionPropertiesInfo::SmallBasicBlocks = 0

Definition at line 98 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ StoreInstCount

int64_t llvm::FunctionPropertiesInfo::StoreInstCount = 0

Definition at line 73 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ TopLevelLoopCount

int64_t llvm::FunctionPropertiesInfo::TopLevelLoopCount = 0

Definition at line 79 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ TotalInstructionCount

int64_t llvm::FunctionPropertiesInfo::TotalInstructionCount = 0

Definition at line 82 of file FunctionPropertiesAnalysis.h.

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

◆ UnconditionalBranchCount

int64_t llvm::FunctionPropertiesInfo::UnconditionalBranchCount = 0

Definition at line 123 of file FunctionPropertiesAnalysis.h.

Referenced by print().

◆ UnknownOperandCount

int64_t llvm::FunctionPropertiesInfo::UnknownOperandCount = 0

Definition at line 118 of file FunctionPropertiesAnalysis.h.

Referenced by 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 63 of file FunctionPropertiesAnalysis.h.

Referenced by print().


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