[all-commits] [llvm/llvm-project] a42bd1: [CMake] Change -DENABLE_EXPERIMENTAL_NEW_PASS_MANA...

Fangrui Song via All-commits all-commits at lists.llvm.org
Thu Aug 26 14:25:45 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a42bd1b560524905d3b9aebcb658cf6dc9521d26
      https://github.com/llvm/llvm-project/commit/a42bd1b560524905d3b9aebcb658cf6dc9521d26
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-08-26 (Thu, 26 Aug 2021)

  Changed paths:
    M clang/cmake/caches/Fuchsia-stage2.cmake
    M clang/cmake/caches/Fuchsia.cmake
    M llvm/CMakeLists.txt
    M llvm/docs/NewPassManager.rst

  Log Message:
  -----------
  [CMake] Change -DENABLE_EXPERIMENTAL_NEW_PASS_MANAGER=off to -DLLVM_ENABLE_NEW_PASS_MANAGER=off

LLVM_ENABLE_NEW_PASS_MANAGER is set to ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER, so
-DLLVM_ENABLE_NEW_PASS_MANAGER=off has no effect.

Change the cache variable to LLVM_ENABLE_NEW_PASS_MANAGER instead.
A user opting out the new PM needs to switch from
-DENABLE_EXPERIMENTAL_NEW_PASS_MANAGER=off to
-DLLVM_ENABLE_NEW_PASS_MANAGER=off.

Also give a warning that -DLLVM_ENABLE_NEW_PASS_MANAGER=off is deprecated.

Reviewed By: aeubanks, phosek

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




More information about the All-commits mailing list