LLVM  7.0.0svn
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 417 of file CoverageMapping.h.

## ◆ InstantiationGroup() [1/2]

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

## ◆ InstantiationGroup() [2/2]

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

## ◆ getColumn()

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

Get the column where the common function was defined.

Definition at line 439 of file CoverageMapping.h.

## ◆ getInstantiations()

 ArrayRef llvm::coverage::InstantiationGroup::getInstantiations ( ) const
inline

Get the instantiations in this group.

Definition at line 464 of file CoverageMapping.h.

## ◆ getLine()

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

Get the line where the common function was defined.

Definition at line 436 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 450 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 456 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 442 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 433 of file CoverageMapping.h.

## ◆ CoverageMapping

 friend class CoverageMapping
friend

Definition at line 418 of file CoverageMapping.h.

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