Minor Instr PGO code restructuring
authorXinliang David Li <davidxl@google.com>
Sun, 18 Oct 2015 01:02:29 +0000 (01:02 +0000)
committerXinliang David Li <davidxl@google.com>
Sun, 18 Oct 2015 01:02:29 +0000 (01:02 +0000)
commit09717fa07bf6a4cc529885ccb33c8751519efd22
tree025f220069d779a29fdd8e451b7e8446aaaee19a
parentbce4419f78c591499634cf3f7a2ecdfc13a0fa63
Minor Instr PGO code restructuring

1. Key constant values (version, magic) and data structures related to raw and
   indexed profile format are moved into one centralized file: InstrProf.h.
2. Utility function such as MD5Hash computation is also moved to the common
   header to allow sharing with other components in the future.
3. A header data structure is introduced for Indexed format so that the reader
   and writer can always be in sync.
4. Added some comments to document different places where multiple definition
   of the data structure must be kept in sync (reader/writer, runtime, lowering
   etc).  No functional change is intended.

Differential Revision:  http://reviews.llvm.org/D13758

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250638 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ProfileData/InstrProf.h
include/llvm/ProfileData/InstrProfReader.h
lib/ProfileData/InstrProfIndexed.h [deleted file]
lib/ProfileData/InstrProfReader.cpp
lib/ProfileData/InstrProfWriter.cpp