PGO: llvm-profdata: tool for merging profiles
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 17 Feb 2014 23:22:49 +0000 (23:22 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 17 Feb 2014 23:22:49 +0000 (23:22 +0000)
commitddc5a010a40a7b85a020a072f9f6b4ae132e94bd
tree147cfb9555bac4adf6f6ef5a9c5cf3a8dcf69b7e
parent4959a2d8780bb6a2424a0bb82df45d5150cef228
PGO: llvm-profdata: tool for merging profiles

Introducing llvm-profdata, a tool for merging profile data generated by
PGO instrumentation in clang.

- The name indicates a file extension of <name>.profdata.  Eventually
  profile data output by clang should be changed to that extension.

- llvm-profdata merges two profiles.  However, the name is more general,
  since it will likely pick up more tasks (such as summarizing a single
  profile).

- llvm-profdata parses the current text-based format, but will be
  updated once we settle on a binary format.

<rdar://problem/15949645>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201535 91177308-0d34-0410-b5e6-96231b3b80d8
26 files changed:
docs/CommandGuide/index.rst
docs/CommandGuide/llvm-profdata.rst [new file with mode: 0644]
test/CMakeLists.txt
test/lit.cfg
test/tools/llvm-profdata/Inputs/bad-function-count.profdata [new file with mode: 0644]
test/tools/llvm-profdata/Inputs/bar3-1.profdata [new file with mode: 0644]
test/tools/llvm-profdata/Inputs/empty.profdata [new file with mode: 0644]
test/tools/llvm-profdata/Inputs/extra-word.profdata [new file with mode: 0644]
test/tools/llvm-profdata/Inputs/foo3-1.profdata [new file with mode: 0644]
test/tools/llvm-profdata/Inputs/foo3-2.profdata [new file with mode: 0644]
test/tools/llvm-profdata/Inputs/foo3bar3-1.profdata [new file with mode: 0644]
test/tools/llvm-profdata/Inputs/foo3bar3-2.profdata [new file with mode: 0644]
test/tools/llvm-profdata/Inputs/foo4-1.profdata [new file with mode: 0644]
test/tools/llvm-profdata/Inputs/foo4-2.profdata [new file with mode: 0644]
test/tools/llvm-profdata/Inputs/invalid-count-later.profdata [new file with mode: 0644]
test/tools/llvm-profdata/Inputs/overflow.profdata [new file with mode: 0644]
test/tools/llvm-profdata/Inputs/three-words-long.profdata [new file with mode: 0644]
test/tools/llvm-profdata/errors.test [new file with mode: 0644]
test/tools/llvm-profdata/simple.test [new file with mode: 0644]
tools/CMakeLists.txt
tools/LLVMBuild.txt
tools/Makefile
tools/llvm-profdata/CMakeLists.txt [new file with mode: 0644]
tools/llvm-profdata/LLVMBuild.txt [new file with mode: 0644]
tools/llvm-profdata/Makefile [new file with mode: 0644]
tools/llvm-profdata/llvm-profdata.cpp [new file with mode: 0644]