[PATCH] D92584: [CSSPGO][llvm-profgen] Refactor to unify hashable interface for trace sample and context-sensitive counter
Hongtao Yu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 13 23:23:58 PST 2020
hoy added inline comments.
================
Comment at: llvm/tools/llvm-profgen/PerfReader.cpp:76
+SampleCounter &
+VirtualUnwinder::getSampleCounter(const ProfiledBinary *Binary,
+ std::list<uint64_t> &CallStack) {
----------------
Name it `getOrCreateSampleCounter`?
================
Comment at: llvm/tools/llvm-profgen/PerfReader.h:110
+ };
+ T &getData() { return *Data; }
+
----------------
I don't see a consumer of the two APIs. Maybe exclude them from this patch? I'm wondering if the shared pointer should be returned (for reference counting) when there is a need of exposing the underlying data.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D92584/new/
https://reviews.llvm.org/D92584
More information about the llvm-commits
mailing list