[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:11 PDT 2025
================
@@ -989,6 +1016,42 @@ class FunctionSamples {
return CallsiteSamples;
}
+ /// Return all the callsite type samples collected in the body of the
+ /// function.
+ const CallsiteTypeMap &getCallsiteTypeCounts() const {
+ return VirtualCallsiteTypeCounts;
+ }
+
+ /// Returns the type samples for the un-drifted location of \p Loc.
----------------
david-xl wrote:
similarly here.
https://github.com/llvm/llvm-project/pull/148002
More information about the llvm-commits
mailing list