================ @@ -57,9 +57,23 @@ class PGOCtxProfContext final { GlobalValue::GUID guid() const { return GUID; } const SmallVectorImpl<uint64_t> &counters() const { return Counters; } + SmallVectorImpl<uint64_t> &counters() { return Counters; } + + uint64_t getEntrycount() const { return Counters[0]; } ---------------- mtrofin wrote:
wouldn't hurt (the idea is that all functions have their entry BB instrumented) https://github.com/llvm/llvm-project/pull/105469 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits