ProfileData: Add support for the indexed instrprof format
authorJustin Bogner <mail@justinbogner.com>
Fri, 18 Apr 2014 21:48:40 +0000 (21:48 +0000)
committerJustin Bogner <mail@justinbogner.com>
Fri, 18 Apr 2014 21:48:40 +0000 (21:48 +0000)
commite153fb33e49bd6d44189d3659287338c410bc0ce
tree28b8eb8580f22648394e4d4e629d97cd0d72e4c9
parent4c464def6ae721b09ebb7cf202e04339267f761a
ProfileData: Add support for the indexed instrprof format

This adds support for an indexed instrumentation based profiling
format, which is just a small header and an on disk hash table.  This
format will be used by clang's -fprofile-instr-use= for PGO.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206656 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ProfileData/InstrProf.h
include/llvm/ProfileData/InstrProfReader.h
include/llvm/ProfileData/InstrProfWriter.h
lib/ProfileData/InstrProf.cpp
lib/ProfileData/InstrProfIndexed.h [new file with mode: 0644]
lib/ProfileData/InstrProfReader.cpp
lib/ProfileData/InstrProfWriter.cpp
test/tools/llvm-profdata/errors.test
test/tools/llvm-profdata/simple.test
tools/llvm-profdata/llvm-profdata.cpp