struct Counter

Declaration

struct Counter { /* full declaration omitted */ };

Description

A Counter is an abstract value that describes how to compute the execution count for a region of code using the collected profile count data.

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

Member Variables

public static const unsigned int EncodingTagBits = 2
public static const unsigned int EncodingTagMask = 3
public static const unsigned int EncodingCounterTagAndExpansionRegionTagBits = EncodingTagBits + 1

Method Overview

Methods

Counter()

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

static llvm::coverage::Counter getCounter(
    unsigned int CounterId)

Description

Return the counter that corresponds to a specific profile counter.

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

Parameters

unsigned int CounterId

unsigned int getCounterID() const

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

static llvm::coverage::Counter getExpression(
    unsigned int ExpressionId)

Description

Return the counter that corresponds to a specific addition counter expression.

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

Parameters

unsigned int ExpressionId

unsigned int getExpressionID() const

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

llvm::coverage::Counter::CounterKind getKind()
    const

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

static llvm::coverage::Counter getZero()

Description

Return the counter that represents the number zero.

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

bool isExpression() const

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

bool isZero() const

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