[PATCH] D92072: [CMake][NewPM] Move ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER into llvm/

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 1 10:28:11 PST 2020


rnk added inline comments.


================
Comment at: llvm/include/llvm/Config/llvm-config.h.cmake:95
+/* Define to 1 to enable the experimental new pass manager by default */
+#cmakedefine01 ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER
+
----------------
aeubanks wrote:
> rnk wrote:
> > This should be namespaced in LLVM_*.
> > 
> > Can we drop "experimental" now to shorten it? LLVM_ENABLE_NEW_PASS_MANAGER?
> That would mean changing the CMake variable name which would break everybody using the flag. I can add a #define alias if you want.
You can leave the cmake option as it is, and make a new variable with the right name before the call to configure_file:
  set(LLVM_ENABLE_NEW_PASS_MANAGER ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D92072/new/

https://reviews.llvm.org/D92072



More information about the llvm-commits mailing list