Add inline stack streaming to binary sample profiles.
authorDiego Novillo <dnovillo@google.com>
Fri, 9 Oct 2015 17:54:24 +0000 (17:54 +0000)
committerDiego Novillo <dnovillo@google.com>
Fri, 9 Oct 2015 17:54:24 +0000 (17:54 +0000)
commit50072bfa3eea84f503699fa0caa166f1be5b1719
treeeeee9e1945969cb65a890c663828e8f52a3fb5dd
parent822d42fa8b012c6c5d2a1246948f3e896cec6d79
Add inline stack streaming to binary sample profiles.

With this patch we can now read and write inline stacks in sample
profiles to the binary encoded profiles.

In a subsequent patch, I will add a string table to the binary encoding.
Right now function names are emitted as strings every time we find them.
This is too bloated and will produce large files in applications with
lots of inlining.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249861 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ProfileData/SampleProfReader.h
lib/ProfileData/SampleProfReader.cpp
lib/ProfileData/SampleProfWriter.cpp
test/Transforms/SampleProfile/Inputs/fnptr.binprof
test/tools/llvm-profdata/Inputs/inline-samples.afdo [new file with mode: 0644]
test/tools/llvm-profdata/inline-samples.test [new file with mode: 0644]