summaryrefslogtreecommitdiff
path: root/lib/profile/InstrProfData.inc
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2016-03-28 18:29:36 +0000
committerAdam Nemet <anemet@apple.com>2016-03-28 18:29:36 +0000
commit51e5416001e0345b14047a0f22c1cc2b246f3a4f (patch)
tree2e8fb402e25192d73599b10f1a9adc4a2dc962ec /lib/profile/InstrProfData.inc
parentf66c15c163a7d89ea6d4cf409e50ca1281fab80d (diff)
[PGO] Comment how function pointers for indirect calls are mapped to function names
Summary: Hopefully this will make it easier for the next person to figure all this out... Reviewers: bogner, davidxl Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D18490 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@264612 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/profile/InstrProfData.inc')
-rw-r--r--lib/profile/InstrProfData.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/profile/InstrProfData.inc b/lib/profile/InstrProfData.inc
index 1bd941cdb..c758cd7cd 100644
--- a/lib/profile/InstrProfData.inc
+++ b/lib/profile/InstrProfData.inc
@@ -73,6 +73,8 @@ INSTR_PROF_DATA(const uint64_t, llvm::Type::getInt64Ty(Ctx), FuncHash, \
INSTR_PROF_DATA(const IntPtrT, llvm::Type::getInt64PtrTy(Ctx), CounterPtr, \
ConstantExpr::getBitCast(CounterPtr, \
llvm::Type::getInt64PtrTy(Ctx)))
+// This is used to map function pointers for the indirect call targets to
+// function name hashes during the conversion from raw to merged profile data.
INSTR_PROF_DATA(const IntPtrT, llvm::Type::getInt8PtrTy(Ctx), FunctionPointer, \
FunctionAddr)
INSTR_PROF_DATA(IntPtrT, llvm::Type::getInt8PtrTy(Ctx), Values, \