[PATCH] D96452: [docs] Make clearer in WritingAnLLVMPass that the legacy PM isn't the default

Arthur Eubanks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 10 14:21:18 PST 2021


aeubanks created this revision.
aeubanks added reviewers: ychen, asbirlea.
Herald added a subscriber: awarzynski.
aeubanks requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D96452

Files:
  llvm/docs/WritingAnLLVMPass.rst


Index: llvm/docs/WritingAnLLVMPass.rst
===================================================================
--- llvm/docs/WritingAnLLVMPass.rst
+++ llvm/docs/WritingAnLLVMPass.rst
@@ -34,9 +34,12 @@
 code, to compiling, loading, and executing it.  After the basics are down, more
 advanced features are discussed.
 
-This document deals with the legacy pass manager. LLVM is transitioning to
-the new pass manager, which has its own way of defining passes. For more
-details, see :doc:`WritingAnLLVMNewPMPass`.
+.. warning::
+  This document deals with the legacy pass manager. LLVM now uses the new
+  pass manager by default, which has its own way of defining passes. For more
+  details, see :doc:`WritingAnLLVMNewPMPass`. To use the legacy pass manager
+  with ``opt``, pass the ``-enable-new-pm=0`` flag to all ``opt``
+  invocations.
 
 Quick Start --- Writing hello world
 ===================================


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96452.322824.patch
Type: text/x-patch
Size: 915 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210210/dfcb961f/attachment.bin>


More information about the llvm-commits mailing list