llvm-project/llvm/test/tools/llvm-profdata
Justin Bogner 821d7471f9 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.

llvm-svn: 214585
2014-08-01 22:50:07 +00:00
..
Inputs InstrProf: Allow multiple functions with the same name 2014-08-01 22:50:07 +00:00
c-general.test llvm-profdata: Use consistent file suffixes in tests 2014-07-30 23:02:01 +00:00
compat.proftext InstrProf: Allow multiple functions with the same name 2014-08-01 22:50:07 +00:00
count-mismatch.proftext llvm-profdata: Add a test for mismatched numbers of counters 2014-07-30 23:36:06 +00:00
general.proftext llvm-profdata: Replace redundant tests with more targeted ones 2014-08-01 19:59:48 +00:00
hash-mismatch.proftext InstrProf: Allow multiple functions with the same name 2014-08-01 22:50:07 +00:00
lit.local.cfg llvm-profdata: Use consistent file suffixes in tests 2014-07-30 23:02:01 +00:00
multiple-inputs.test llvm-profdata: Replace redundant tests with more targeted ones 2014-08-01 19:59:48 +00:00
overflow.proftext llvm-profdata: Use consistent file suffixes in tests 2014-07-30 23:02:01 +00:00
raw-32-bits-be.test InstrProf: Check pointer size in raw profile 2014-03-23 03:38:12 +00:00
raw-32-bits-le.test InstrProf: Check pointer size in raw profile 2014-03-23 03:38:12 +00:00
raw-64-bits-be.test InstrProf: Check pointer size in raw profile 2014-03-23 03:38:12 +00:00
raw-64-bits-le.test InstrProf: Check pointer size in raw profile 2014-03-23 03:38:12 +00:00
raw-magic-but-no-header.test InstrProf: Change magic number to have non-text characters 2014-03-21 20:42:37 +00:00
raw-two-profiles.test ProfileData: Allow multiple profiles in RawInstrProfReader 2014-05-16 00:38:00 +00:00
text-format-errors.test llvm-profdata: Use consistent file suffixes in tests 2014-07-30 23:02:01 +00:00