[all-commits] [llvm/llvm-project] 2e3172: [NFC] Clean up PassBuilder

aeubanks via All-commits all-commits at lists.llvm.org
Fri Oct 30 10:04:37 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2e31727a884affa11f2955ddfa40590715f144df
      https://github.com/llvm/llvm-project/commit/2e31727a884affa11f2955ddfa40590715f144df
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2020-10-30 (Fri, 30 Oct 2020)

  Changed paths:
    M clang/lib/CodeGen/BackendUtil.cpp
    M llvm/include/llvm/Passes/PassBuilder.h
    M llvm/lib/LTO/LTOBackend.cpp
    M llvm/lib/Passes/PassBuilder.cpp
    M llvm/lib/Passes/PassRegistry.def
    M llvm/tools/llvm-opt-fuzzer/llvm-opt-fuzzer.cpp
    M llvm/tools/opt/NewPMDriver.cpp
    M llvm/unittests/IR/PassBuilderCallbacksTest.cpp

  Log Message:
  -----------
  [NFC] Clean up PassBuilder

Make DebugLogging a member variable so that users of PassBuilder don't
need to pass it around so much.

Move call to TargetMachine::registerPassBuilderCallbacks() within
PassBuilder so users don't need to remember to call it.

Reviewed By: asbirlea

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




More information about the All-commits mailing list