[all-commits] [llvm/llvm-project] ed4e6e: [cmake] Remove LLVM_ENABLE_NEW_PASS_MANAGER cmake ...

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Apr 6 00:52:37 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ed4e6e03981a37d54c4ac635b2bdb2c2fe8fec92
      https://github.com/llvm/llvm-project/commit/ed4e6e03981a37d54c4ac635b2bdb2c2fe8fec92
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-04-06 (Wed, 06 Apr 2022)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M clang/test/CMakeLists.txt
    M clang/test/lit.cfg.py
    M clang/test/lit.site.cfg.py.in
    M clang/unittests/Frontend/CompilerInvocationTest.cpp
    M lld/COFF/Driver.cpp
    M lld/ELF/Driver.cpp
    M lld/MachO/Config.h
    M lld/MachO/Driver.cpp
    M lld/wasm/Driver.cpp
    M llvm/CMakeLists.txt
    M llvm/cmake/modules/LLVMConfig.cmake.in
    M llvm/docs/NewPassManager.rst
    M llvm/include/llvm/Config/llvm-config.h.cmake
    M llvm/include/llvm/LTO/Config.h
    M llvm/include/llvm/LTO/legacy/ThinLTOCodeGenerator.h
    M llvm/tools/gold/gold-plugin.cpp
    M llvm/tools/llvm-lto/llvm-lto.cpp
    M llvm/tools/llvm-lto2/llvm-lto2.cpp
    M llvm/tools/opt/opt.cpp
    M llvm/utils/gn/secondary/clang/test/BUILD.gn
    M llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn
    M utils/bazel/llvm-project-overlay/llvm/include/llvm/Config/llvm-config.h
    M utils/bazel/llvm_configs/llvm-config.h.cmake

  Log Message:
  -----------
  [cmake] Remove LLVM_ENABLE_NEW_PASS_MANAGER cmake option

Or rather, error out if it is set to something other than ON. This
removes the ability to enable the legacy pass manager by default,
but does not remove the ability to explicitly enable it through
various flags like -flegacy-pass-manager or -enable-new-pm=0.

I checked, and our test suite definitely doesn't pass with
LLVM_ENABLE_NEW_PASS_MANAGER=OFF anymore.

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




More information about the All-commits mailing list