LLVM 20.0.0git
Public Member Functions | Friends | List of all members
llvm::coverage::InstantiationGroup Class Reference

An instantiation group contains a FunctionRecord list, such that each record corresponds to a distinct instantiation of the same function. More...

#include "llvm/ProfileData/Coverage/CoverageMapping.h"

Public Member Functions

 InstantiationGroup (const InstantiationGroup &)=delete
 
 InstantiationGroup (InstantiationGroup &&)=default
 
size_t size () const
 Get the number of instantiations in this group.
 
unsigned getLine () const
 Get the line where the common function was defined.
 
unsigned getColumn () const
 Get the column where the common function was defined.
 
bool hasName () const
 Check if the instantiations in this group have a common mangled name.
 
StringRef getName () const
 Get the common mangled name for instantiations in this group.
 
uint64_t getTotalExecutionCount () const
 Get the total execution count of all instantiations in this group.
 
ArrayRef< const FunctionRecord * > getInstantiations () const
 Get the instantiations in this group.
 

Friends

class CoverageMapping
 

Detailed Description

An instantiation group contains a FunctionRecord list, such that each record corresponds to a distinct instantiation of the same function.

Note that it's possible for a function to have more than one instantiation (consider C++ template specializations or static inline functions).

Definition at line 828 of file CoverageMapping.h.

Constructor & Destructor Documentation

◆ InstantiationGroup() [1/2]

llvm::coverage::InstantiationGroup::InstantiationGroup ( const InstantiationGroup )
delete

◆ InstantiationGroup() [2/2]

llvm::coverage::InstantiationGroup::InstantiationGroup ( InstantiationGroup &&  )
default

Member Function Documentation

◆ getColumn()

unsigned llvm::coverage::InstantiationGroup::getColumn ( ) const
inline

Get the column where the common function was defined.

Definition at line 850 of file CoverageMapping.h.

◆ getInstantiations()

ArrayRef< const FunctionRecord * > llvm::coverage::InstantiationGroup::getInstantiations ( ) const
inline

Get the instantiations in this group.

Definition at line 875 of file CoverageMapping.h.

◆ getLine()

unsigned llvm::coverage::InstantiationGroup::getLine ( ) const
inline

Get the line where the common function was defined.

Definition at line 847 of file CoverageMapping.h.

◆ getName()

StringRef llvm::coverage::InstantiationGroup::getName ( ) const
inline

Get the common mangled name for instantiations in this group.

Definition at line 861 of file CoverageMapping.h.

References assert(), and hasName().

◆ getTotalExecutionCount()

uint64_t llvm::coverage::InstantiationGroup::getTotalExecutionCount ( ) const
inline

Get the total execution count of all instantiations in this group.

Definition at line 867 of file CoverageMapping.h.

References F.

◆ hasName()

bool llvm::coverage::InstantiationGroup::hasName ( ) const
inline

Check if the instantiations in this group have a common mangled name.

Definition at line 853 of file CoverageMapping.h.

References E, I, and Name.

Referenced by getName().

◆ size()

size_t llvm::coverage::InstantiationGroup::size ( ) const
inline

Get the number of instantiations in this group.

Definition at line 844 of file CoverageMapping.h.

Friends And Related Function Documentation

◆ CoverageMapping

friend class CoverageMapping
friend

Definition at line 829 of file CoverageMapping.h.


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