clang 20.0.0git
Classes | Public Member Functions | Public Attributes | List of all members
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 116 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 143 of file CodeGenModule.h.

◆ CounterPair() [2/2]

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

Definition at line 146 of file CodeGenModule.h.

Member Data Documentation

◆ Executed

ValueOpt clang::CodeGen::CounterPair::Executed

Definition at line 139 of file CodeGenModule.h.

◆ Skipped

ValueOpt clang::CodeGen::CounterPair::Skipped

Definition at line 140 of file CodeGenModule.h.


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