[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:
parent
b83361b82b
commit
1cd1573f11
|
|
@ -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
|
code, to compiling, loading, and executing it. After the basics are down, more
|
||||||
advanced features are discussed.
|
advanced features are discussed.
|
||||||
|
|
||||||
This document deals with the legacy pass manager. LLVM is transitioning to
|
.. warning::
|
||||||
the new pass manager, which has its own way of defining passes. For more
|
This document deals with the legacy pass manager. LLVM now uses the new
|
||||||
details, see :doc:`WritingAnLLVMNewPMPass`.
|
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
|
Quick Start --- Writing hello world
|
||||||
===================================
|
===================================
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue