[all-commits] [llvm/llvm-project] f9c0d1: [Driver] Add -f[no-]legacy-pass-manager to superse...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Wed Dec 9 16:57:53 PST 2020
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f9c0d1b0562c4789638a91ce97f1c2d99608005b
https://github.com/llvm/llvm-project/commit/f9c0d1b0562c4789638a91ce97f1c2d99608005b
Author: Fangrui Song <i at maskray.me>
Date: 2020-12-09 (Wed, 09 Dec 2020)
Changed paths:
M clang/include/clang/Basic/CodeGenOptions.def
M clang/include/clang/Driver/Options.td
M clang/lib/CodeGen/BackendUtil.cpp
M clang/lib/Driver/ToolChains/Clang.cpp
M clang/lib/Driver/ToolChains/CommonArgs.cpp
M clang/lib/Frontend/CompilerInvocation.cpp
M clang/test/Driver/clang_f_opts.c
A clang/test/Driver/flegacy-pass-manager.c
R clang/test/Driver/gold-lto-new-pass-man.c
Log Message:
-----------
[Driver] Add -f[no-]legacy-pass-manager to supersede -f[no-]experimental-new-pass-manager
The new PM is considered stable and many downstream groups have adopted it (some
have adopted it for more than two years). Add -f[no-]legacy-pass-manager to reflect the
fact that it is no longer experimental and the legacy pass manager is something we strive to retire.
In the future, when the legacy PM eventually goes away,
-fno-experimental-new-pass-manager and -flegacy-pass-manager will be removed.
This patch also changes -f[no-]legacy-pass-manager to pass `-plugin-opt={new,legacy}-pass-manager` to the linker (supported by both ld.lld and LLVMgold.so) when -flto/-flto=thin is specified
Reviewed By: aeubanks, rsmith
Differential Revision: https://reviews.llvm.org/D92915
More information about the All-commits
mailing list