[all-commits] [llvm/llvm-project] 776bb2: [llvm-profdata] ProfileReader cleanup - preparatio...

William Junda Huang via All-commits all-commits at lists.llvm.org
Mon May 8 21:38:35 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 776bb279d6429ae8a47f05a903aef34dcd7f7657
      https://github.com/llvm/llvm-project/commit/776bb279d6429ae8a47f05a903aef34dcd7f7657
  Author: William Huang <williamjhuang at google.com>
  Date:   2023-05-09 (Tue, 09 May 2023)

  Changed paths:
    M llvm/include/llvm/ProfileData/SampleProfReader.h
    M llvm/lib/ProfileData/SampleProfReader.cpp

  Log Message:
  -----------
  [llvm-profdata] ProfileReader cleanup - preparation for MD5 refactoring - 2

Cleanup profile reader classes to prepare for complex refactoring as propsed in D147740, continuing D148868
This is patch 2/n. This patch refactors CSNameTable and related things

The decision to move CSNameTable up to the base class is because a planned improvement (D147740) to use MD5 to lookup Functions/Context frames. In this case we want a unified data structure between contextless function or Context frames, so that it can be mapped by MD5 value. Since Context Frames can represent contextless functions, it is being used for MD5 lookup, therefore exposing it to the base class

Reviewed By: snehasish, wenlei

Differential Revision: https://reviews.llvm.org/D148872




More information about the All-commits mailing list