llvm-6502/lib/ProfileData
Justin Bogner 4a6fa1390a InstrProf: Allow multiple functions with the same name
This updates the instrumentation based profiling format so that when
we have multiple functions with the same name (but different function
hashes) we keep all of them instead of rejecting the later ones.

There are a number of scenarios where this can come up where it's more
useful to keep multiple function profiles:

* Name collisions in unrelated libraries that are profiled together.
* Multiple "main" functions from multiple tools built against a common
  library.
* Combining profiles from different build configurations (ie, asserts
  and no-asserts)

The profile format now stores the number of counters between the hash
and the counts themselves, so that multiple sets of counts can be
stored. Since this is backwards incompatible, I've bumped the format
version and added some trivial logic to skip this when reading the old
format.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214585 91177308-0d34-0410-b5e6-96231b3b80d8
2014-08-01 22:50:07 +00:00
..
CMakeLists.txt Add code coverage mapping data, reader, and writer. 2014-07-24 23:55:56 +00:00
CoverageMapping.cpp Coverage: fix the missing output stream in recursive call to CoverageMappingContext::dump 2014-07-29 19:58:16 +00:00
CoverageMappingReader.cpp Use std::unique_ptr to make the ownership explicit. 2014-07-31 03:12:45 +00:00
CoverageMappingWriter.cpp coverage: remove empty mapping regions 2014-07-25 22:22:24 +00:00
InstrProf.cpp Remove unused and odd code. 2014-06-13 15:36:17 +00:00
InstrProfIndexed.h InstrProf: Allow multiple functions with the same name 2014-08-01 22:50:07 +00:00
InstrProfReader.cpp InstrProf: Allow multiple functions with the same name 2014-08-01 22:50:07 +00:00
InstrProfWriter.cpp InstrProf: Allow multiple functions with the same name 2014-08-01 22:50:07 +00:00
LLVMBuild.txt Add code coverage mapping data, reader, and writer. 2014-07-24 23:55:56 +00:00
Makefile