diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-02-17 23:22:49 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-02-17 23:22:49 +0000 |
| commit | 846a627f5ca4cc72d4256c3b6b2051a49e13eb89 (patch) | |
| tree | 35c756f4b20a469e2cd9fd4f5ba1f60ade11c66d /llvm/test/tools/llvm-profdata/Inputs | |
| parent | 551365da338bb7ef54943cb7e10cf595524d2ff9 (diff) | |
| download | bcm5719-llvm-846a627f5ca4cc72d4256c3b6b2051a49e13eb89.tar.gz bcm5719-llvm-846a627f5ca4cc72d4256c3b6b2051a49e13eb89.zip | |
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>
llvm-svn: 201535
Diffstat (limited to 'llvm/test/tools/llvm-profdata/Inputs')
13 files changed, 49 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-profdata/Inputs/bad-function-count.profdata b/llvm/test/tools/llvm-profdata/Inputs/bad-function-count.profdata new file mode 100644 index 00000000000..7d247626e5a --- /dev/null +++ b/llvm/test/tools/llvm-profdata/Inputs/bad-function-count.profdata @@ -0,0 +1,2 @@ +function_count_not 1count +1 diff --git a/llvm/test/tools/llvm-profdata/Inputs/bar3-1.profdata b/llvm/test/tools/llvm-profdata/Inputs/bar3-1.profdata new file mode 100644 index 00000000000..cb8b409891a --- /dev/null +++ b/llvm/test/tools/llvm-profdata/Inputs/bar3-1.profdata @@ -0,0 +1,4 @@ +bar 3 +1 +2 +3 diff --git a/llvm/test/tools/llvm-profdata/Inputs/empty.profdata b/llvm/test/tools/llvm-profdata/Inputs/empty.profdata new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/llvm/test/tools/llvm-profdata/Inputs/empty.profdata diff --git a/llvm/test/tools/llvm-profdata/Inputs/extra-word.profdata b/llvm/test/tools/llvm-profdata/Inputs/extra-word.profdata new file mode 100644 index 00000000000..67a662909cf --- /dev/null +++ b/llvm/test/tools/llvm-profdata/Inputs/extra-word.profdata @@ -0,0 +1,2 @@ +extra 1 word +1 diff --git a/llvm/test/tools/llvm-profdata/Inputs/foo3-1.profdata b/llvm/test/tools/llvm-profdata/Inputs/foo3-1.profdata new file mode 100644 index 00000000000..d6f9f648b7b --- /dev/null +++ b/llvm/test/tools/llvm-profdata/Inputs/foo3-1.profdata @@ -0,0 +1,4 @@ +foo 3 +1 +2 +3 diff --git a/llvm/test/tools/llvm-profdata/Inputs/foo3-2.profdata b/llvm/test/tools/llvm-profdata/Inputs/foo3-2.profdata new file mode 100644 index 00000000000..94fd0343915 --- /dev/null +++ b/llvm/test/tools/llvm-profdata/Inputs/foo3-2.profdata @@ -0,0 +1,4 @@ +foo 3 +7 +5 +3 diff --git a/llvm/test/tools/llvm-profdata/Inputs/foo3bar3-1.profdata b/llvm/test/tools/llvm-profdata/Inputs/foo3bar3-1.profdata new file mode 100644 index 00000000000..85b702d4977 --- /dev/null +++ b/llvm/test/tools/llvm-profdata/Inputs/foo3bar3-1.profdata @@ -0,0 +1,9 @@ +foo 3 +2 +3 +5 + +bar 3 +7 +11 +13 diff --git a/llvm/test/tools/llvm-profdata/Inputs/foo3bar3-2.profdata b/llvm/test/tools/llvm-profdata/Inputs/foo3bar3-2.profdata new file mode 100644 index 00000000000..d652781a35c --- /dev/null +++ b/llvm/test/tools/llvm-profdata/Inputs/foo3bar3-2.profdata @@ -0,0 +1,9 @@ +foo 3 +17 +19 +23 + +bar 3 +29 +31 +37 diff --git a/llvm/test/tools/llvm-profdata/Inputs/foo4-1.profdata b/llvm/test/tools/llvm-profdata/Inputs/foo4-1.profdata new file mode 100644 index 00000000000..4d694080bff --- /dev/null +++ b/llvm/test/tools/llvm-profdata/Inputs/foo4-1.profdata @@ -0,0 +1,5 @@ +foo 4 +11 +22 +33 +44 diff --git a/llvm/test/tools/llvm-profdata/Inputs/foo4-2.profdata b/llvm/test/tools/llvm-profdata/Inputs/foo4-2.profdata new file mode 100644 index 00000000000..8d91d8bbef0 --- /dev/null +++ b/llvm/test/tools/llvm-profdata/Inputs/foo4-2.profdata @@ -0,0 +1,5 @@ +foo 4 +7 +6 +5 +4 diff --git a/llvm/test/tools/llvm-profdata/Inputs/invalid-count-later.profdata b/llvm/test/tools/llvm-profdata/Inputs/invalid-count-later.profdata new file mode 100644 index 00000000000..5575df3fda6 --- /dev/null +++ b/llvm/test/tools/llvm-profdata/Inputs/invalid-count-later.profdata @@ -0,0 +1,2 @@ +invalid_count 1 +1later diff --git a/llvm/test/tools/llvm-profdata/Inputs/overflow.profdata b/llvm/test/tools/llvm-profdata/Inputs/overflow.profdata new file mode 100644 index 00000000000..bfb9a52d2ec --- /dev/null +++ b/llvm/test/tools/llvm-profdata/Inputs/overflow.profdata @@ -0,0 +1,2 @@ +overflow 1 +9223372036854775808 diff --git a/llvm/test/tools/llvm-profdata/Inputs/three-words-long.profdata b/llvm/test/tools/llvm-profdata/Inputs/three-words-long.profdata new file mode 100644 index 00000000000..a4d45fb3bfa --- /dev/null +++ b/llvm/test/tools/llvm-profdata/Inputs/three-words-long.profdata @@ -0,0 +1 @@ +three words long |

