llvm-project/llvm/lib/Transforms/Instrumentation
Calixte Denizet eb7f60201c [IR] Add a boolean field in DILocation to know if a line must covered or not
Summary:
Some lines have a hit counter where they should not have one.
For example, in C++, some cleanup is adding at the end of a scope represented by a '}'.
So such a line has a hit counter where a user expects to not have one.
The goal of the patch is to add this information in DILocation which is used to get the covered lines in GCOVProfiling.cpp.
A following patch in clang will add this information when generating IR (https://reviews.llvm.org/D49916).

Reviewers: marco-c, davidxl, vsk, javed.absar, rnk

Reviewed By: rnk

Subscribers: eraman, xur, danielcdh, aprantl, rnk, dblaikie, #debug-info, vsk, llvm-commits, sylvestre.ledru

Tags: #debug-info

Differential Revision: https://reviews.llvm.org/D49915

llvm-svn: 342631
2018-09-20 08:53:06 +00:00
..
AddressSanitizer.cpp Re-land r334313 "[asan] Instrument comdat globals on COFF targets" 2018-08-20 23:35:45 +00:00
BoundsChecking.cpp Fix crash in bounds checking. 2018-08-03 17:12:23 +00:00
CFGMST.h Rename DEBUG macro to LLVM_DEBUG. 2018-05-14 12:53:11 +00:00
CGProfile.cpp Recommit r335794 "Add support for generating a call graph profile from Branch Frequency Info." with fix for removed functions. 2018-07-16 00:28:24 +00:00
CMakeLists.txt [PGO] Control Height Reduction 2018-09-04 17:19:13 +00:00
ControlHeightReduction.cpp [PGO][CHR] Add opt remarks. 2018-09-18 16:50:10 +00:00
DataFlowSanitizer.cpp [IR] Replace `isa<TerminatorInst>` with `isTerminator()`. 2018-08-26 09:51:22 +00:00
EfficiencySanitizer.cpp Add Triple::isMIPS()/isMIPS32()/isMIPS64(). NFC 2018-06-25 16:49:20 +00:00
GCOVProfiling.cpp [IR] Add a boolean field in DILocation to know if a line must covered or not 2018-09-20 08:53:06 +00:00
HWAddressSanitizer.cpp [hwasan] Add a basic API. 2018-08-15 00:39:35 +00:00
IndirectCallPromotion.cpp [PGO] add target md5sum in warning message for icall 2018-08-24 21:38:24 +00:00
InstrProfiling.cpp [InstrProf] Use atomic profile counter updates for TSan 2018-08-16 22:24:47 +00:00
Instrumentation.cpp [PGO] Control Height Reduction 2018-09-04 17:19:13 +00:00
LLVMBuild.txt
MaximumSpanningTree.h Remove unneeded use of #undef DEBUG_TYPE. NFC 2017-07-12 20:49:21 +00:00
MemorySanitizer.cpp [MSan] don't access MsanCtorFunction when using KMSAN 2018-09-07 09:56:36 +00:00
PGOInstrumentation.cpp Rename DEBUG macro to LLVM_DEBUG. 2018-05-14 12:53:11 +00:00
PGOMemOPSizeOpt.cpp [PGOMemOPSize] Preserve the DominatorTree 2018-07-09 08:07:21 +00:00
SanitizerCoverage.cpp [SanitizerCoverage] Create comdat for global arrays. 2018-09-13 21:45:55 +00:00
ThreadSanitizer.cpp Use SmallPtrSet explicitly for SmallSets with pointer types (NFC). 2018-06-12 11:16:56 +00:00