LLVM 20.0.0git
|
Writer for instrumentation based coverage mapping data. More...
#include "llvm/ProfileData/Coverage/CoverageMappingWriter.h"
Public Member Functions | |
CoverageMappingWriter (ArrayRef< unsigned > VirtualFileMapping, ArrayRef< CounterExpression > Expressions, MutableArrayRef< CounterMappingRegion > MappingRegions) | |
void | write (raw_ostream &OS) |
Write encoded coverage mapping data to the given output stream. | |
Writer for instrumentation based coverage mapping data.
Definition at line 41 of file CoverageMappingWriter.h.
|
inline |
Definition at line 47 of file CoverageMappingWriter.h.
void CoverageMappingWriter::write | ( | raw_ostream & | OS | ) |
Write encoded coverage mapping data to the given output stream.
Definition at line 154 of file CoverageMappingWriter.cpp.
References llvm::all_of(), assert(), llvm::coverage::CounterMappingRegion::BranchRegion, llvm::coverage::CounterMappingRegion::CodeRegion, llvm::encodeULEB128(), llvm::coverage::Counter::EncodingCounterTagAndExpansionRegionTagBits, llvm::coverage::Counter::EncodingTagBits, llvm::coverage::CounterMappingRegion::endLoc(), llvm::coverage::CounterMappingRegion::ExpansionRegion, llvm::coverage::CounterMappingRegion::GapRegion, I, if(), llvm::coverage::Counter::isZero(), LHS, llvm::coverage::CounterMappingRegion::MCDCBranchRegion, llvm::coverage::CounterMappingRegion::MCDCDecisionRegion, OS, RHS, llvm::ArrayRef< T >::size(), llvm::coverage::CounterMappingRegion::SkippedRegion, llvm::stable_sort(), llvm::coverage::CounterMappingRegion::startLoc(), and writeCounter().