LLVM  6.0.0svn
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. More...
 
unsigned getLine () const
 Get the line where the common function was defined. More...
 
unsigned getColumn () const
 Get the column where the common function was defined. More...
 
bool hasName () const
 Check if the instantiations in this group have a common mangled name. More...
 
StringRef getName () const
 Get the common mangled name for instantiations in this group. More...
 
uint64_t getTotalExecutionCount () const
 Get the total execution count of all instantiations in this group. More...
 
ArrayRef< const FunctionRecord * > getInstantiations () const
 Get the instantiations in this group. More...
 

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 416 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 438 of file CoverageMapping.h.

◆ getInstantiations()

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

Get the instantiations in this group.

Definition at line 463 of file CoverageMapping.h.

◆ getLine()

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

Get the line where the common function was defined.

Definition at line 435 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 449 of file CoverageMapping.h.

References assert().

◆ getTotalExecutionCount()

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

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

Definition at line 455 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 441 of file CoverageMapping.h.

References E, and I.

◆ size()

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

Get the number of instantiations in this group.

Definition at line 432 of file CoverageMapping.h.

Friends And Related Function Documentation

◆ CoverageMapping

friend class CoverageMapping
friend

Definition at line 417 of file CoverageMapping.h.


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