[PATCH] D57068: [cmake] Add option to build LLVM using the experimental new pass manager
Rong Xu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 8 11:31:46 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL353550: [Cmake] Add an option to build LLVM using the experimental new pass manager (authored by xur, committed by ).
Herald added a project: LLVM.
Changed prior to commit:
https://reviews.llvm.org/D57068?vs=182985&id=186009#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D57068/new/
https://reviews.llvm.org/D57068
Files:
llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
llvm/trunk/docs/CMake.rst
Index: llvm/trunk/docs/CMake.rst
===================================================================
--- llvm/trunk/docs/CMake.rst
+++ llvm/trunk/docs/CMake.rst
@@ -582,6 +582,9 @@
If enabled, the compiler version check will only warn when using a toolchain
which is about to be deprecated, instead of emitting an error.
+**LLVM_USE_NEWPM**:BOOL
+ If enabled, use the experimental new pass manager.
+
CMake Caches
============
Index: llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
===================================================================
--- llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
+++ llvm/trunk/cmake/modules/HandleLLVMOptions.cmake
@@ -784,6 +784,16 @@
message(FATAL_ERROR "Exception handling requires RTTI. You must set LLVM_ENABLE_RTTI to ON")
endif()
+option(LLVM_USE_NEWPM "Build LLVM using the experimental new pass manager" Off)
+mark_as_advanced(LLVM_USE_NEWPM)
+if (LLVM_USE_NEWPM)
+ append("-fexperimental-new-pass-manager"
+ CMAKE_CXX_FLAGS
+ CMAKE_C_FLAGS
+ CMAKE_EXE_LINKER_FLAGS
+ CMAKE_SHARED_LINKER_FLAGS)
+endif()
+
option(LLVM_ENABLE_IR_PGO "Build LLVM and tools with IR PGO instrumentation (deprecated)" Off)
mark_as_advanced(LLVM_ENABLE_IR_PGO)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57068.186009.patch
Type: text/x-patch
Size: 1225 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190208/b323917a/attachment.bin>
More information about the llvm-commits
mailing list