1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00
llvm-mirror/include/llvm/ProfileData
Petr Hosek d548975423 [Coverage] Store compilation dir separately in coverage mapping
We currently always store absolute filenames in coverage mapping.  This
is problematic for several reasons. It poses a problem for distributed
compilation as source location might vary across machines.  We are also
duplicating the path prefix potentially wasting space.

This change modifies how we store filenames in coverage mapping. Rather
than absolute paths, it stores the compilation directory and file paths
as given to the compiler, either relative or absolute. Later when
reading the coverage mapping information, we recombine relative paths
with the working directory. This approach is similar to handling
ofDW_AT_comp_dir in DWARF.

Finally, we also provide a new option, -fprofile-compilation-dir akin
to -fdebug-compilation-dir which can be used to manually override the
compilation directory which is useful in distributed compilation cases.

Differential Revision: https://reviews.llvm.org/D95753
2021-02-18 14:34:39 -08:00
..
Coverage [Coverage] Store compilation dir separately in coverage mapping 2021-02-18 14:34:39 -08:00
GCOV.h [llvm] Fix header guards (NFC) 2021-02-05 21:02:06 -08:00
InstrProf.h [llvm] Use llvm::lower_bound and llvm::upper_bound (NFC) 2021-01-05 21:15:59 -08:00
InstrProfData.inc [Coverage] Store compilation dir separately in coverage mapping 2021-02-18 14:34:39 -08:00
InstrProfReader.h Make LLVM build in C++20 mode 2020-12-17 10:44:10 +00:00
InstrProfWriter.h
ProfileCommon.h [CSSPGO] Use merged base profile for hot threshold calculation 2021-02-05 17:51:00 -08:00
SampleProf.h [CSSPGO] Introducing distribution factor for pseudo probe. 2021-02-02 11:55:01 -08:00
SampleProfReader.h [CSSPGO] Support of CS profiles in extended binary format. 2021-01-27 21:29:46 -08:00
SampleProfWriter.h Fix Wmissing-field-initializers warnings. 2021-01-19 15:26:52 -08:00