[compiler-rt] r253890 - [PGO] Use common definition of value profile kind

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


Author: davidxl
Date: Mon Nov 23 11:43:10 2015
New Revision: 253890

URL: http://llvm.org/viewvc/llvm-project?rev=253890&view=rev
Log:
[PGO] Use common definition of value profile kind

 Replace duplicate definition value profile kind definitions
 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=253890&r1=253889&r2=253890&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfiling.h (original)
+++ compiler-rt/trunk/lib/profile/InstrProfiling.h Mon Nov 23 11:43:10 2015
@@ -48,9 +48,8 @@ typedef unsigned long int uintptr_t;
 #include "InstrProfData.inc"
 
 enum ValueKind {
-  IPVK_IndirectCallTarget = 0,
-  IPVK_First = IPVK_IndirectCallTarget,
-  IPVK_Last = IPVK_IndirectCallTarget
+#define VALUE_PROF_KIND(Enumerator, Value) Enumerator = Value,
+#include "InstrProfData.inc"
 };
 
 typedef void *IntPtrT;




More information about the llvm-commits mailing list