[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
Tue Jan 22 14:45:55 PST 2019
xur created this revision.
xur added a reviewer: tejohnson.
Herald added a subscriber: mgorny.
https://reviews.llvm.org/D57068
Files:
cmake/modules/HandleLLVMOptions.cmake
docs/CMake.rst
Index: docs/CMake.rst
===================================================================
--- docs/CMake.rst
+++ docs/CMake.rst
@@ -578,6 +578,9 @@
may not compile at all, or might fail at runtime due to known bugs in these
toolchains.
+**LLVM_USE_NEWPM**:BOOL
+ If enabled, use the experimental new pass manager.
+
CMake Caches
============
Index: cmake/modules/HandleLLVMOptions.cmake
===================================================================
--- cmake/modules/HandleLLVMOptions.cmake
+++ 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.182985.patch
Type: text/x-patch
Size: 1107 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190122/3e614297/attachment.bin>
More information about the llvm-commits
mailing list