Sample profiles - Add a name table to the binary encoding.
authorDiego Novillo <dnovillo@google.com>
Tue, 13 Oct 2015 22:48:46 +0000 (22:48 +0000)
committerDiego Novillo <dnovillo@google.com>
Tue, 13 Oct 2015 22:48:46 +0000 (22:48 +0000)
commitdb271655ddef5f0108a6fdfd02cc589e7520a96c
treeea213ccd0b1acfb2731295d1e983a3f009d0d331
parent5fa57d9ce38d76a6779730c6e30c8a3b970a3a9c
Sample profiles - Add a name table to the binary encoding.

Binary encoded profiles used to encode all function names inline at
every reference.  This is clearly suboptimal in terms of space.  This
patch fixes this by adding a name table to the header of the file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250241 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ProfileData/SampleProf.h
include/llvm/ProfileData/SampleProfReader.h
include/llvm/ProfileData/SampleProfWriter.h
lib/ProfileData/SampleProf.cpp
lib/ProfileData/SampleProfReader.cpp
lib/ProfileData/SampleProfWriter.cpp
test/Transforms/SampleProfile/Inputs/fnptr.binprof