class InstantiationGroup

Declaration

class InstantiationGroup { /* full declaration omitted */ };

Description

An instantiation group contains a \c 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).

Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:474

Member Variables

private unsigned int Line
private unsigned int Col
private std::vector<const FunctionRecord*> Instantiations

Method Overview

Methods

InstantiationGroup(
    unsigned int Line,
    unsigned int Col,
    std::vector<const FunctionRecord*>
        Instantiations)

Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:481

Parameters

unsigned int Line
unsigned int Col
std::vector<const FunctionRecord*> Instantiations

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

Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:486

Parameters

const llvm::coverage::InstantiationGroup&

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

Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:487

Parameters

llvm::coverage::InstantiationGroup&&

unsigned int getColumn() const

Description

Get the column where the common function was defined.

Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:496

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

Description

Get the instantiations in this group.

Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:521

unsigned int getLine() const

Description

Get the line where the common function was defined.

Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:493

llvm::StringRef getName() const

Description

Get the common mangled name for instantiations in this group.

Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:507

uint64_t getTotalExecutionCount() const

Description

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

Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:513

bool hasName() const

Description

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

Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:499

size_t size() const

Description

Get the number of instantiations in this group.

Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:490