[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
Thu Jul 24 12:53:51 PDT 2025
================
@@ -989,6 +1018,42 @@ class FunctionSamples {
return CallsiteSamples;
}
+ /// Returns vtable access samples for the C++ types collcted in this function.
+ const CallsiteTypeMap &getCallsiteTypeCounts() const {
+ return VirtualCallsiteTypeCounts;
+ }
+
+ /// Returns the vtable access samples for the C++ types at the un-drifted
----------------
david-xl wrote:
Remove 'undrifted' if the caller is not required to do explicit 'undrifting' (which should be done behind the scene through a layer of source location mapping).
https://github.com/llvm/llvm-project/pull/148002
More information about the llvm-commits
mailing list