struct CoverageSegment

Declaration

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

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.

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

Member Variables

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

Method Overview

  • public CoverageSegment(unsigned int Line, unsigned int Col, bool IsRegionEntry)
  • public CoverageSegment(unsigned int Line, unsigned int Col, uint64_t Count, bool IsRegionEntry, bool IsGapRegion = false)

Methods

CoverageSegment(unsigned int Line,
                unsigned int Col,
                bool IsRegionEntry)

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

Parameters

unsigned int Line
unsigned int Col
bool IsRegionEntry

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

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

Parameters

unsigned int Line
unsigned int Col
uint64_t Count
bool IsRegionEntry
bool IsGapRegion = false