[PGO] Allow value profile writer interface to allocated target buffer
authorXinliang David Li <davidxl@google.com>
Sat, 28 Nov 2015 05:37:01 +0000 (05:37 +0000)
committerXinliang David Li <davidxl@google.com>
Sat, 28 Nov 2015 05:37:01 +0000 (05:37 +0000)
commit9bee4a8249abac133d065d9ce0f878af44bed392
treeda12553e97111d644a192f014463de3ab07916de
parent52a156fb302df191b8f6880c4834d0a6703abee4
[PGO] Allow value profile writer interface to allocated target buffer

Raw profile writer needs to write all data of one kind in one continuous block,
so the buffer needs to be pre-allocated and passed to the writer method in
pieces for function profile data. The change adds the support for raw value data
writing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254219 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ProfileData/InstrProf.h
lib/ProfileData/InstrProf.cpp
unittests/ProfileData/InstrProfTest.cpp