clang  14.0.0git
Macros | Functions
CoverageMappingGen.cpp File Reference
#include "CoverageMappingGen.h"
#include "CodeGenFunction.h"
#include "clang/AST/StmtVisitor.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/Basic/FileManager.h"
#include "clang/Frontend/FrontendDiagnostic.h"
#include "clang/Lex/Lexer.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ProfileData/Coverage/CoverageMapping.h"
#include "llvm/ProfileData/Coverage/CoverageMappingReader.h"
#include "llvm/ProfileData/Coverage/CoverageMappingWriter.h"
#include "llvm/ProfileData/InstrProfReader.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"
#include "llvm/ProfileData/InstrProfData.inc"
Include dependency graph for CoverageMappingGen.cpp:

Go to the source code of this file.

Macros

#define COVMAP_V3
 
#define COVMAP_FUNC_RECORD(Type, LLVMType, Name, Init)   LLVMType,
 
#define COVMAP_FUNC_RECORD(Type, LLVMType, Name, Init)   Init,
 
#define COVMAP_HEADER(Type, LLVMType, Name, Init)   LLVMType,
 
#define COVMAP_HEADER(Type, LLVMType, Name, Init)   Init,
 

Functions

static llvm::cl::opt< boolEmptyLineCommentCoverage ("emptyline-comment-coverage", llvm::cl::desc("Emit emptylines and comment lines as skipped regions (only " "disable it on test)"), llvm::cl::init(true), llvm::cl::Hidden)
 
static void dump (llvm::raw_ostream &OS, StringRef FunctionName, ArrayRef< CounterExpression > Expressions, ArrayRef< CounterMappingRegion > Regions)
 
static std::string getInstrProfSection (const CodeGenModule &CGM, llvm::InstrProfSectKind SK)
 

Macro Definition Documentation

◆ COVMAP_FUNC_RECORD [1/2]

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

◆ COVMAP_FUNC_RECORD [2/2]

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

◆ COVMAP_HEADER [1/2]

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

◆ COVMAP_HEADER [2/2]

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

◆ COVMAP_V3

#define COVMAP_V3

Definition at line 32 of file CoverageMappingGen.cpp.

Function Documentation

◆ dump()

static void dump ( llvm::raw_ostream &  OS,
StringRef  FunctionName,
ArrayRef< CounterExpression >  Expressions,
ArrayRef< CounterMappingRegion >  Regions 
)
static

◆ EmptyLineCommentCoverage()

static llvm::cl::opt<bool> EmptyLineCommentCoverage ( "emptyline-comment-coverage"  ,
llvm::cl::desc("Emit emptylines and comment lines as skipped regions (only " "disable it on test)")  ,
llvm::cl::init(true ,
llvm::cl::Hidden   
)
static

◆ getInstrProfSection()

static std::string getInstrProfSection ( const CodeGenModule CGM,
llvm::InstrProfSectKind  SK 
)
static