[llvm] [SampleFDO] Read call-graph matching recovered top-level function profile (PR #101053)
    Lei Wang via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Aug 13 08:25:56 PDT 2024
    
    
  
================
@@ -392,6 +392,11 @@ class SampleProfileReader {
   /// which doesn't support loading function profiles on demand.
   virtual bool collectFuncsFromModule() { return false; }
 
+  virtual std::error_code readOnDemand(const DenseSet<StringRef> &FuncsToUse,
+                                       SampleProfileMap &Profiles) {
+    return sampleprof_error::not_implemented;
----------------
wlei-llvm wrote:
We only support extended binary format, if we use pure virtual function, we may need more duplicated override functions(only return `not_implemented`) for all other derived classes.
https://github.com/llvm/llvm-project/pull/101053
    
    
More information about the llvm-commits
mailing list