[PGO] Add --text option for llvm-profdata show|merge commands
authorXinliang David Li <davidxl@google.com>
Mon, 23 Nov 2015 20:47:38 +0000 (20:47 +0000)
committerXinliang David Li <davidxl@google.com>
Mon, 23 Nov 2015 20:47:38 +0000 (20:47 +0000)
commit55f78334c142356bff6a35670e336fad1f11b62b
tree3810b76d0f8eb8270a32af0cafdb7a680b4d668b
parentdf79221070e72b2fc5e01dccaa5875602d7073d2
[PGO] Add --text option for llvm-profdata show|merge commands

The new option is similar to the SampleProfile dump option.

- dump raw/indexed format into text profile format
- merge the profile and output into text profile format.

Note that Value Profiling data text format is not yet designed.
That functionality will be added later.

Differential Revision: http://reviews.llvm.org/D14894

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253913 91177308-0d34-0410-b5e6-96231b3b80d8
docs/CommandGuide/llvm-profdata.rst
include/llvm/ProfileData/InstrProfWriter.h
lib/ProfileData/InstrProfWriter.cpp
test/tools/llvm-profdata/Inputs/basic.proftext [new file with mode: 0644]
test/tools/llvm-profdata/text-dump.test [new file with mode: 0644]
tools/llvm-profdata/llvm-profdata.cpp