[compiler-rt] r253891 - [PGO] Unify per-function control data definition

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 23 09:50:53 PST 2015


Author: davidxl
Date: Mon Nov 23 11:50:53 2015
New Revision: 253891

URL: http://llvm.org/viewvc/llvm-project?rev=253891&view=rev
Log:
[PGO] Unify per-function control data definition

 Replace duplicate definition per-func profile control data
 with common definition in InstrProfData.inc.




Modified:
    compiler-rt/trunk/lib/profile/InstrProfiling.h

Modified: compiler-rt/trunk/lib/profile/InstrProfiling.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfiling.h?rev=253891&r1=253890&r2=253891&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfiling.h (original)
+++ compiler-rt/trunk/lib/profile/InstrProfiling.h Mon Nov 23 11:50:53 2015
@@ -54,14 +54,8 @@ enum ValueKind {
 
 typedef void *IntPtrT;
 typedef struct LLVM_ALIGNAS(8) __llvm_profile_data {
-  const uint32_t NameSize;
-  const uint32_t NumCounters;
-  const uint64_t FuncHash;
-  const IntPtrT NamePtr;
-  const IntPtrT CounterPtr;
-  const IntPtrT FunctionPointer;
-  IntPtrT Values;
-  const uint16_t NumValueSites[IPVK_Last + 1];
+#define INSTR_PROF_DATA(Type, LLVMType, Name, Initializer) Type Name;
+#include "InstrProfData.inc"
 } __llvm_profile_data;
 
 typedef struct __llvm_profile_header {




More information about the llvm-commits mailing list