Skip to content

Commit 9faab43

Browse files
committed
[docs] Mention that we are in the process of removing the legacy PM for the optimization pipeline
And remove references to flags to turn it off. Reviewed By: nikic, MaskRay Differential Revision: https://reviews.llvm.org/D123547
1 parent 0cc34ca commit 9faab43

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1937,8 +1937,8 @@ def fexperimental_isel : Flag<["-"], "fexperimental-isel">, Group<f_clang_Group>
19371937
Alias<fglobal_isel>;
19381938
defm legacy_pass_manager : BoolOption<"f", "legacy-pass-manager",
19391939
CodeGenOpts<"LegacyPassManager">, DefaultFalse,
1940-
PosFlag<SetTrue, [], "Use the legacy pass manager in LLVM (deprecated, to be removed in a future release)">,
1941-
NegFlag<SetFalse, [], "Use the new pass manager in LLVM">,
1940+
PosFlag<SetTrue>,
1941+
NegFlag<SetFalse>,
19421942
BothFlags<[CC1Option]>>, Group<f_clang_Group>;
19431943
def fexperimental_new_pass_manager : Flag<["-"], "fexperimental-new-pass-manager">,
19441944
Group<f_clang_Group>, Flags<[CC1Option]>, Alias<fno_legacy_pass_manager>;

llvm/docs/NewPassManager.rst

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -480,12 +480,9 @@ optimization pipeline (aka the middle-end) works with both the legacy PM and
480480
the new PM, whereas the backend target-dependent code generation only works
481481
with the legacy PM.
482482

483-
For the optimization pipeline, the new PM is the default PM. The legacy PM is
484-
available for the optimization pipeline by setting various compiler/linker
485-
flags, e.g. ``-flegacy-pass-manager`` for ``clang``.
486-
487-
There will be efforts to deprecate and remove the legacy PM for the
488-
optimization pipeline in the future.
483+
For the optimization pipeline, the new PM is the default PM. Using the legacy PM
484+
for the optimization pipeline is deprecated and there are ongoing efforts to
485+
remove its usage.
489486

490487
Some IR passes are considered part of the backend codegen pipeline even if
491488
they are LLVM IR passes (whereas all MIR passes are codegen passes). This

0 commit comments

Comments
 (0)