llvm-profdata: Use the Profile library, implement show and generate
authorJustin Bogner <mail@justinbogner.com>
Wed, 12 Mar 2014 20:14:17 +0000 (20:14 +0000)
committerJustin Bogner <mail@justinbogner.com>
Wed, 12 Mar 2014 20:14:17 +0000 (20:14 +0000)
commit4207c6759c040ca9c26fd305b1e62d5c68a44fb1
treebd8a82a31b229d1a27a158b93a13d15fbd9d2733
parent02da814a94c043452e3ad10915e8ba366218e925
llvm-profdata: Use the Profile library, implement show and generate

This replaces the llvm-profdata tool with a version that uses the
recently introduced Profile library. The new tool has the ability to
generate and summarize profdata files as well as merging them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203704 91177308-0d34-0410-b5e6-96231b3b80d8
37 files changed:
include/llvm/Support/LineIterator.h
test/tools/llvm-profdata/Inputs/bad-function-count.profdata [deleted file]
test/tools/llvm-profdata/Inputs/bad-hash.profdata.input [new file with mode: 0644]
test/tools/llvm-profdata/Inputs/bar3-1.profdata [deleted file]
test/tools/llvm-profdata/Inputs/bar3-1.profdata.input [new file with mode: 0644]
test/tools/llvm-profdata/Inputs/empty.profdata [deleted file]
test/tools/llvm-profdata/Inputs/empty.profdata.input [new file with mode: 0644]
test/tools/llvm-profdata/Inputs/extra-word.profdata [deleted file]
test/tools/llvm-profdata/Inputs/extra-word.profdata.input [new file with mode: 0644]
test/tools/llvm-profdata/Inputs/foo3-1.profdata [deleted file]
test/tools/llvm-profdata/Inputs/foo3-1.profdata.input [new file with mode: 0644]
test/tools/llvm-profdata/Inputs/foo3-2.profdata [deleted file]
test/tools/llvm-profdata/Inputs/foo3-2.profdata.input [new file with mode: 0644]
test/tools/llvm-profdata/Inputs/foo3bar3-1.profdata [deleted file]
test/tools/llvm-profdata/Inputs/foo3bar3-1.profdata.input [new file with mode: 0644]
test/tools/llvm-profdata/Inputs/foo3bar3-2.profdata [deleted file]
test/tools/llvm-profdata/Inputs/foo3bar3-2.profdata.input [new file with mode: 0644]
test/tools/llvm-profdata/Inputs/foo4-1.profdata [deleted file]
test/tools/llvm-profdata/Inputs/foo4-1.profdata.input [new file with mode: 0644]
test/tools/llvm-profdata/Inputs/foo4-2.profdata [deleted file]
test/tools/llvm-profdata/Inputs/foo4-2.profdata.input [new file with mode: 0644]
test/tools/llvm-profdata/Inputs/invalid-count-later.profdata [deleted file]
test/tools/llvm-profdata/Inputs/invalid-count-later.profdata.input [new file with mode: 0644]
test/tools/llvm-profdata/Inputs/overflow.profdata [deleted file]
test/tools/llvm-profdata/Inputs/overflow.profdata.input [new file with mode: 0644]
test/tools/llvm-profdata/Inputs/three-words-long.profdata [deleted file]
test/tools/llvm-profdata/Inputs/three-words-long.profdata.input [new file with mode: 0644]
test/tools/llvm-profdata/Inputs/wrong-count.profdata.input [new file with mode: 0644]
test/tools/llvm-profdata/errors.test [deleted file]
test/tools/llvm-profdata/generate.test [new file with mode: 0644]
test/tools/llvm-profdata/merge-errors.test [new file with mode: 0644]
test/tools/llvm-profdata/simple-merges.test [new file with mode: 0644]
test/tools/llvm-profdata/simple.test [deleted file]
tools/llvm-profdata/CMakeLists.txt
tools/llvm-profdata/LLVMBuild.txt
tools/llvm-profdata/Makefile
tools/llvm-profdata/llvm-profdata.cpp