[all-commits] [llvm/llvm-project] 863412: [NFC] Rename ThinLTOPhase to ThinOrFullLTOPhase an...

wmi-11 via All-commits all-commits at lists.llvm.org
Wed Jan 13 15:56:40 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 86341247c4a2ffa4328945b03e7a05b1c51c3889
      https://github.com/llvm/llvm-project/commit/86341247c4a2ffa4328945b03e7a05b1c51c3889
  Author: Wei Mi <wmi at google.com>
  Date:   2021-01-13 (Wed, 13 Jan 2021)

  Changed paths:
    M llvm/include/llvm/Pass.h
    M llvm/include/llvm/Passes/PassBuilder.h
    M llvm/include/llvm/Transforms/IPO/SampleProfile.h
    M llvm/lib/Passes/PassBuilder.cpp
    M llvm/lib/Passes/PassRegistry.def
    M llvm/lib/Transforms/IPO/SampleProfile.cpp
    M polly/lib/Support/RegisterPasses.cpp

  Log Message:
  -----------
  [NFC] Rename ThinLTOPhase to ThinOrFullLTOPhase and move it from PassBuilder.h
to Pass.h.

In some compiler passes like SampleProfileLoaderPass, we want to know which
LTO/ThinLTO phase the pass is in. Currently the phase is represented in enum
class PassBuilder::ThinLTOPhase, so it is only available in PassBuilder and
it also cannot represent phase in full LTO. The patch extends it to include
full LTO phases and move it from PassBuilder.h to Pass.h, then it is much
easier for PassBuilder to communiate with each pass about current LTO phase.

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




More information about the All-commits mailing list