LLVM  8.0.1
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions
CoverageMapping.h File Reference
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/Hashing.h"
#include "llvm/ADT/None.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/StringSet.h"
#include "llvm/ADT/iterator.h"
#include "llvm/ADT/iterator_range.h"
#include "llvm/ProfileData/InstrProf.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/Endian.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/raw_ostream.h"
#include <cassert>
#include <cstdint>
#include <iterator>
#include <memory>
#include <string>
#include <system_error>
#include <tuple>
#include <utility>
#include <vector>
#include "llvm/ProfileData/InstrProfData.inc"
Include dependency graph for CoverageMapping.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  llvm::coverage::CoverageMapError
 
struct  llvm::coverage::Counter
 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. More...
 
struct  llvm::coverage::CounterExpression
 A Counter expression is a value that represents an arithmetic operation with two counters. More...
 
class  llvm::coverage::CounterExpressionBuilder
 A Counter expression builder is used to construct the counter expressions. More...
 
struct  llvm::coverage::CounterMappingRegion
 A Counter mapping region associates a source range with a specific counter. More...
 
struct  llvm::coverage::CountedRegion
 Associates a source range with an execution count. More...
 
class  llvm::coverage::CounterMappingContext
 A Counter mapping context is used to connect the counters, expressions and the obtained counter values. More...
 
struct  llvm::coverage::FunctionRecord
 Code coverage information for a single function. More...
 
class  llvm::coverage::FunctionRecordIterator
 Iterator over Functions, optionally filtered to a single file. More...
 
struct  llvm::coverage::ExpansionRecord
 Coverage information for a macro expansion or #included file. More...
 
struct  llvm::coverage::CoverageSegment
 The execution count information starting at a point in a file. More...
 
class  llvm::coverage::InstantiationGroup
 An instantiation group contains a FunctionRecord list, such that each record corresponds to a distinct instantiation of the same function. More...
 
class  llvm::coverage::CoverageData
 Coverage information to be processed or displayed. More...
 
class  llvm::coverage::CoverageMapping
 The mapping of profile information to coverage data. More...
 
class  llvm::coverage::LineCoverageStats
 Coverage statistics for a single line. More...
 
class  llvm::coverage::LineCoverageIterator
 An iterator over the LineCoverageStats objects for lines described by a CoverageData instance. More...
 
struct  llvm::coverage::CovMapFunctionRecordV1< IntPtrT >
 
struct  llvm::coverage::CovMapFunctionRecord
 
struct  llvm::coverage::CovMapHeader
 
struct  llvm::coverage::CovMapTraits< CovMapVersion, IntPtrT >
 
struct  llvm::coverage::CovMapTraits< CovMapVersion::Version1, IntPtrT >
 
struct  llvm::DenseMapInfo< coverage::CounterExpression >
 Provide DenseMapInfo for CounterExpression. More...
 

Namespaces

 llvm
 This class represents lattice values for constants.
 
 llvm::coverage
 

Macros

#define COVMAP_V1
 
#define COVMAP_FUNC_RECORD(Type, LLVMType, Name, Init)   Type Name;
 
#define COVMAP_FUNC_RECORD(Type, LLVMType, Name, Init)   Type Name;
 
#define COVMAP_HEADER(Type, LLVMType, Name, Init)   Type Name;
 

Typedefs

using llvm::coverage::LineColPair = std::pair< unsigned, unsigned >
 

Enumerations

enum  llvm::coverage::coveragemap_error {
  llvm::coverage::coveragemap_error::success = 0, llvm::coverage::coveragemap_error::eof, llvm::coverage::coveragemap_error::no_data_found, llvm::coverage::coveragemap_error::unsupported_version,
  llvm::coverage::coveragemap_error::truncated, llvm::coverage::coveragemap_error::malformed
}
 
enum  llvm::coverage::CovMapVersion { llvm::coverage::Version1 = 0, llvm::coverage::Version2 = 1, llvm::coverage::Version3 = 2, llvm::coverage::CurrentVersion = INSTR_PROF_COVMAP_VERSION }
 

Functions

const std::error_categoryllvm::coverage::coveragemap_category ()
 
std::error_code llvm::coverage::make_error_code (coveragemap_error E)
 
static iterator_range< LineCoverageIterator > llvm::coverage::getLineCoverageStats (const coverage::CoverageData &CD)
 Get a LineCoverageIterator range for the lines described by CD. More...
 

Macro Definition Documentation

◆ COVMAP_FUNC_RECORD [1/2]

#define COVMAP_FUNC_RECORD (   Type,
  LLVMType,
  Name,
  Init 
)    Type Name;

Definition at line 711 of file CoverageMapping.h.

◆ COVMAP_FUNC_RECORD [2/2]

#define COVMAP_FUNC_RECORD (   Type,
  LLVMType,
  Name,
  Init 
)    Type Name;

Definition at line 711 of file CoverageMapping.h.

◆ COVMAP_HEADER

#define COVMAP_HEADER (   Type,
  LLVMType,
  Name,
  Init 
)    Type Name;

Definition at line 741 of file CoverageMapping.h.

◆ COVMAP_V1

#define COVMAP_V1

Definition at line 678 of file CoverageMapping.h.