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
- private InstantiationGroup(unsigned int Line, unsigned int Col, std::vector<const FunctionRecord *> Instantiations)
- public InstantiationGroup(const llvm::coverage::InstantiationGroup &)
- public InstantiationGroup(llvm::coverage::InstantiationGroup &&)
- public unsigned int getColumn() const
- public ArrayRef<const llvm::coverage::FunctionRecord *> getInstantiations() const
- public unsigned int getLine() const
- public llvm::StringRef getName() const
- public uint64_t getTotalExecutionCount() const
- public bool hasName() const
- public size_t size() const
Methods
¶InstantiationGroup(
unsigned int Line,
unsigned int Col,
std::vector<const FunctionRecord*>
Instantiations)
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&)
InstantiationGroup(
const llvm::coverage::InstantiationGroup&)
Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:486
Parameters
¶InstantiationGroup(
llvm::coverage::InstantiationGroup&&)
InstantiationGroup(
llvm::coverage::InstantiationGroup&&)
Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:487
Parameters
¶unsigned int getColumn() const
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
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
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
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
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
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
size_t size() const
Description
Get the number of instantiations in this group.
Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:490