LLVM 22.0.0git
llvm::coverage::CoverageSegment Struct Reference

The execution count information starting at a point in a file. More...

#include "llvm/ProfileData/Coverage/CoverageMapping.h"

Public Member Functions

 CoverageSegment (unsigned Line, unsigned Col, bool IsRegionEntry)
 CoverageSegment (unsigned Line, unsigned Col, uint64_t Count, bool IsRegionEntry, bool IsGapRegion=false, bool IsBranchRegion=false)

Public Attributes

unsigned Line
 The line where this segment begins.
unsigned Col
 The column where this segment begins.
uint64_t Count
 The execution count, or zero if no count was recorded.
bool HasCount
 When false, the segment was uninstrumented or skipped.
bool IsRegionEntry
 Whether this enters a new region or returns to a previous count.
bool IsGapRegion
 Whether this enters a gap region.

Friends

bool operator== (const CoverageSegment &L, const CoverageSegment &R)

Detailed Description

The execution count information starting at a point in a file.

A sequence of CoverageSegments gives execution counts for a file in format that's simple to iterate through for processing.

Definition at line 849 of file CoverageMapping.h.

Constructor & Destructor Documentation

◆ CoverageSegment() [1/2]

llvm::coverage::CoverageSegment::CoverageSegment ( unsigned Line,
unsigned Col,
bool IsRegionEntry )
inline

Definition at line 863 of file CoverageMapping.h.

References Col, Count, HasCount, IsGapRegion, IsRegionEntry, and Line.

Referenced by operator==.

◆ CoverageSegment() [2/2]

llvm::coverage::CoverageSegment::CoverageSegment ( unsigned Line,
unsigned Col,
uint64_t Count,
bool IsRegionEntry,
bool IsGapRegion = false,
bool IsBranchRegion = false )
inline

Definition at line 867 of file CoverageMapping.h.

References Col, Count, HasCount, IsGapRegion, IsRegionEntry, and Line.

◆ operator==

bool operator== ( const CoverageSegment & L,
const CoverageSegment & R )
friend

Definition at line 873 of file CoverageMapping.h.

References CoverageSegment().

Member Data Documentation

◆ Col

unsigned llvm::coverage::CoverageSegment::Col

The column where this segment begins.

Definition at line 853 of file CoverageMapping.h.

Referenced by CoverageSegment(), and CoverageSegment().

◆ Count

uint64_t llvm::coverage::CoverageSegment::Count

The execution count, or zero if no count was recorded.

Definition at line 855 of file CoverageMapping.h.

Referenced by CoverageSegment(), and CoverageSegment().

◆ HasCount

bool llvm::coverage::CoverageSegment::HasCount

When false, the segment was uninstrumented or skipped.

Definition at line 857 of file CoverageMapping.h.

Referenced by CoverageSegment(), and CoverageSegment().

◆ IsGapRegion

bool llvm::coverage::CoverageSegment::IsGapRegion

Whether this enters a gap region.

Definition at line 861 of file CoverageMapping.h.

Referenced by CoverageSegment(), and CoverageSegment().

◆ IsRegionEntry

bool llvm::coverage::CoverageSegment::IsRegionEntry

Whether this enters a new region or returns to a previous count.

Definition at line 859 of file CoverageMapping.h.

Referenced by CoverageSegment(), and CoverageSegment().

◆ Line

unsigned llvm::coverage::CoverageSegment::Line

The line where this segment begins.

Definition at line 851 of file CoverageMapping.h.

Referenced by CoverageSegment(), and CoverageSegment().


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