LLVM 22.0.0git
llvm::Function::ProfileCount Class Reference

Class to represent profile counts. More...

#include "llvm/IR/Function.h"

Public Member Functions

 ProfileCount (uint64_t Count, ProfileCountType PCT)
uint64_t getCount () const
ProfileCountType getType () const
bool isSynthetic () const

Detailed Description

Class to represent profile counts.

This class represents both real and synthetic profile counts.

Definition at line 297 of file Function.h.

Constructor & Destructor Documentation

◆ ProfileCount()

llvm::Function::ProfileCount::ProfileCount ( uint64_t Count,
ProfileCountType PCT )
inline

Definition at line 303 of file Function.h.

Member Function Documentation

◆ getCount()

uint64_t llvm::Function::ProfileCount::getCount ( ) const
inline

Definition at line 305 of file Function.h.

Referenced by updateCallProfile().

◆ getType()

ProfileCountType llvm::Function::ProfileCount::getType ( ) const
inline

Definition at line 306 of file Function.h.

◆ isSynthetic()

bool llvm::Function::ProfileCount::isSynthetic ( ) const
inline

Definition at line 307 of file Function.h.

References llvm::Function::PCT_Synthetic.

Referenced by updateCallProfile().


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