[llvm] [SampleFDO][TypeProf]Support vtable type profiling for ext-binary and text format (PR #148002)
David Li via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 11 08:24:10 PDT 2025
================
@@ -318,16 +324,28 @@ struct LineLocationHash {
LLVM_ABI raw_ostream &operator<<(raw_ostream &OS, const LineLocation &Loc);
+/// Key represents the id of a vtable and value represents its count.
+/// TODO: Rename class FunctionId to SymbolId in a separate PR.
+using TypeCountMap = std::map<FunctionId, uint64_t>;
----------------
david-xl wrote:
Add document on FunctionId/SymbolId which refers to vtable symbol. 'Type' refers to C++ polymorphic class types.
https://github.com/llvm/llvm-project/pull/148002
More information about the llvm-commits
mailing list