Skip to content

Commit 2978d02

Browse files
committed
[Clang] Remove support for legacy pass manager
This removes the -flegacy-pass-manager and -fno-experimental-new-pass-manager options, and the corresponding support code in BackendUtil. The -fno-legacy-pass-manager and -fexperimental-new-pass-manager options are retained as no-ops. Differential Revision: https://reviews.llvm.org/D123609
1 parent 5967528 commit 2978d02

File tree

7 files changed

+13
-614
lines changed

7 files changed

+13
-614
lines changed

clang/include/clang/Basic/CodeGenOptions.def

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ CODEGENOPT(DisableO0ImplyOptNone , 1, 0) ///< Don't annonate function with optno
6565
CODEGENOPT(ExperimentalStrictFloatingPoint, 1, 0) ///< Enables the new, experimental
6666
///< strict floating point.
6767
CODEGENOPT(EnableNoundefAttrs, 1, 0) ///< Enable emitting `noundef` attributes on IR call arguments and return values
68-
CODEGENOPT(LegacyPassManager, 1, 0) ///< Use the legacy pass manager.
6968
CODEGENOPT(DebugPassManager, 1, 0) ///< Prints debug information for the new
7069
///< pass manager.
7170
CODEGENOPT(DisableRedZone , 1, 0) ///< Set when -mno-red-zone is enabled.

clang/include/clang/Driver/Options.td

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1935,15 +1935,10 @@ def fglobal_isel : Flag<["-"], "fglobal-isel">, Group<f_clang_Group>,
19351935
HelpText<"Enables the global instruction selector">;
19361936
def fexperimental_isel : Flag<["-"], "fexperimental-isel">, Group<f_clang_Group>,
19371937
Alias<fglobal_isel>;
1938-
defm legacy_pass_manager : BoolOption<"f", "legacy-pass-manager",
1939-
CodeGenOpts<"LegacyPassManager">, DefaultFalse,
1940-
PosFlag<SetTrue>,
1941-
NegFlag<SetFalse>,
1942-
BothFlags<[CC1Option]>>, Group<f_clang_Group>;
1938+
def fno_legacy_pass_manager : Flag<["-"], "fno-legacy-pass-manager">,
1939+
Group<f_clang_Group>, Flags<[CC1Option, NoArgumentUnused]>;
19431940
def fexperimental_new_pass_manager : Flag<["-"], "fexperimental-new-pass-manager">,
19441941
Group<f_clang_Group>, Flags<[CC1Option]>, Alias<fno_legacy_pass_manager>;
1945-
def fno_experimental_new_pass_manager : Flag<["-"], "fno-experimental-new-pass-manager">,
1946-
Group<f_clang_Group>, Flags<[CC1Option,NoDriverOption]>, Alias<flegacy_pass_manager>;
19471942
def fexperimental_strict_floating_point : Flag<["-"], "fexperimental-strict-floating-point">,
19481943
Group<f_clang_Group>, Flags<[CC1Option]>,
19491944
HelpText<"Enables experimental strict floating point in LLVM.">,

0 commit comments

Comments
 (0)