[PGO] Introducing version mask macro/NFC

llvm-svn: 257224
This commit is contained in:
Xinliang David Li 2016-01-08 22:55:16 +00:00
parent abc2c998d2
commit 891c51b75a
1 changed files with 8 additions and 0 deletions

View File

@ -700,6 +700,14 @@ serializeValueProfDataFromRT(const ValueProfRuntimeRecord *Record,
#define INSTR_PROF_INDEX_VERSION 3
#define INSTR_PROF_COVMAP_VERSION 0
/* Profile version is always of type uint_64_t. Reserve the upper 8 bits in the
* version for other variants of profile. We set the lowest bit of the upper 8
* bits (i.e. bit 56) to 1 to indicate if this is an IR-level instrumentaiton
* generated profile, and 0 if this is a Clang FE generated profile.
*/
#define VARIANT_MASKS_ALL 0xff00000000000000ULL
#define GET_VERSION(V) ((V) & ~VARIANT_MASKS_ALL)
/* Runtime section names and name strings. */
#define INSTR_PROF_DATA_SECT_NAME __llvm_prf_data
#define INSTR_PROF_NAME_SECT_NAME __llvm_prf_names