clang 22.0.0git
clang::CodeGen::CounterPair Class Reference

The Counter with an optional additional Counter for branches. More...

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/CodeGen/CodeGenModule.h"

Classes

class  ValueOpt
 Optional value. More...

Public Member Functions

 CounterPair (unsigned Val)
 May be None.
 CounterPair ()

Public Attributes

ValueOpt Executed
ValueOpt Skipped

Detailed Description

The Counter with an optional additional Counter for branches.

Skipped counter can be calculated with Executed and a common Counter (like Parent) as (Parent-Executed).

In SingleByte mode, Counters are binary. Subtraction is not applicable (but addition is capable). In this case, both Executed and Skipped counters are required. Skipped is None by default. It is allocated in the coverage mapping.

There might be cases that Parent could be induced with (Executed+Skipped). This is not always applicable.

Definition at line 117 of file CodeGenModule.h.

Constructor & Destructor Documentation

◆ CounterPair() [1/2]

clang::CodeGen::CounterPair::CounterPair ( unsigned Val)
inline

May be None.

Initialized with Skipped=None.

Definition at line 144 of file CodeGenModule.h.

References Executed.

◆ CounterPair() [2/2]

clang::CodeGen::CounterPair::CounterPair ( )
inline

Definition at line 147 of file CodeGenModule.h.

References Executed.

Member Data Documentation

◆ Executed

ValueOpt clang::CodeGen::CounterPair::Executed

Definition at line 140 of file CodeGenModule.h.

Referenced by CounterPair(), and CounterPair().

◆ Skipped

ValueOpt clang::CodeGen::CounterPair::Skipped

Definition at line 141 of file CodeGenModule.h.


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