[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 15:26:38 PST 2021


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG1cd1573f11b8: [docs] Make clearer in WritingAnLLVMPass that the legacy PM isn't the default (authored by aeubanks).

Repository:
  rG LLVM Github Monorepo

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

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.322843.patch
Type: text/x-patch
Size: 915 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210210/f927e79c/attachment.bin>


More information about the llvm-commits mailing list