[PGO] Move value profile format related structures and APIs to common file
authorXinliang David Li <davidxl@google.com>
Sat, 28 Nov 2015 19:07:09 +0000 (19:07 +0000)
committerXinliang David Li <davidxl@google.com>
Sat, 28 Nov 2015 19:07:09 +0000 (19:07 +0000)
commitea177884e9411af74e336bd47cad0258c6090a1e
treed31ff7fab102b9ba12b0c9e67f4204424e4883c2
parentb6bfb483807246e5e225d0894cda7df315dfc519
[PGO] Move value profile format related structures and APIs to common file

This is the last step to enable profile runtime to share the same value prof
data format and reader/writer code with llvm host tools. The VP related
data structures are moved to a section in InstrProfData.inc enabled with macro
INSTR_PROF_VALUE_PROF_DATA, and common API implementations are enabled with
INSTR_PROF_COMMON_API_IMPL. There should be no functional change.

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