<div dir="ltr">I think this file has to use C-style /* */ comments.</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 28, 2016 at 11:29 AM, Adam Nemet via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: anemet<br>
Date: Mon Mar 28 13:29:36 2016<br>
New Revision: 264612<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=264612&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=264612&view=rev</a><br>
Log:<br>
[PGO] Comment how function pointers for indirect calls are mapped to function names<br>
<br>
Summary:<br>
Hopefully this will make it easier for the next person to figure all<br>
this out...<br>
<br>
Reviewers: bogner, davidxl<br>
<br>
Subscribers: llvm-commits<br>
<br>
Differential Revision: <a href="http://reviews.llvm.org/D18490" rel="noreferrer" target="_blank">http://reviews.llvm.org/D18490</a><br>
<br>
Modified:<br>
    compiler-rt/trunk/lib/profile/InstrProfData.inc<br>
<br>
Modified: compiler-rt/trunk/lib/profile/InstrProfData.inc<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfData.inc?rev=264612&r1=264611&r2=264612&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfData.inc?rev=264612&r1=264611&r2=264612&view=diff</a><br>
==============================================================================<br>
--- compiler-rt/trunk/lib/profile/InstrProfData.inc (original)<br>
+++ compiler-rt/trunk/lib/profile/InstrProfData.inc Mon Mar 28 13:29:36 2016<br>
@@ -73,6 +73,8 @@ INSTR_PROF_DATA(const uint64_t, llvm::Ty<br>
 INSTR_PROF_DATA(const IntPtrT, llvm::Type::getInt64PtrTy(Ctx), CounterPtr, \<br>
                 ConstantExpr::getBitCast(CounterPtr, \<br>
                 llvm::Type::getInt64PtrTy(Ctx)))<br>
+// This is used to map function pointers for the indirect call targets to<br>
+// function name hashes during the conversion from raw to merged profile data.<br>
 INSTR_PROF_DATA(const IntPtrT, llvm::Type::getInt8PtrTy(Ctx), FunctionPointer, \<br>
                 FunctionAddr)<br>
 INSTR_PROF_DATA(IntPtrT, llvm::Type::getInt8PtrTy(Ctx), Values, \<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div>