InstrProf: Read raw binary profile in llvm-profdata
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 21 Mar 2014 18:26:05 +0000 (18:26 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 21 Mar 2014 18:26:05 +0000 (18:26 +0000)
commitddfcb21b3f728fd569e106f43c1bcaed356223e4
treef50994e1caa945d32234c0d1c5b4516de49871d3
parentc61e1f53d97e35b9f75dabb7099f35eabffcce5b
InstrProf: Read raw binary profile in llvm-profdata

Read a raw binary profile that corresponds to a memory dump from the
runtime profile.

The test is a binary file generated from
cfe/trunk/test/Profile/c-general.c with the new compiler-rt runtime and
the matching text version of the input.  It includes instructions on how
to regenerate.

<rdar://problem/15950346>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204496 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ProfileData/InstrProfReader.h
lib/ProfileData/InstrProfReader.cpp
test/tools/llvm-profdata/Inputs/binary-compare.profdata [new file with mode: 0644]
test/tools/llvm-profdata/Inputs/binary.profdata [new file with mode: 0644]
test/tools/llvm-profdata/binary.test [new file with mode: 0644]