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

Reviewed By: ychen

Differential Revision: https://reviews.llvm.org/D96452
This commit is contained in:
Arthur Eubanks 2021-02-10 14:20:38 -08:00
parent b83361b82b
commit 1cd1573f11
1 changed files with 6 additions and 3 deletions

View File

@ -34,9 +34,12 @@ We start by showing you how to construct a pass, everything from setting up the
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
===================================