@@ -5888,12 +5888,24 @@ def target : Joined<["--"], "target=">, Flags<[NoXarchOption]>,
5888
5888
def darwin_target_variant : Separate<["-"], "darwin-target-variant">,
5889
5889
Flags<[NoXarchOption]>, Visibility<[ClangOption, CLOption]>,
5890
5890
HelpText<"Generate code for an additional runtime variant of the deployment target">;
5891
+
5892
+ //===----------------------------------------------------------------------===//
5893
+ // Print CPU info options (clang, clang-cl, flang)
5894
+ //===----------------------------------------------------------------------===//
5895
+
5896
+ let Visibility = [ClangOption, CC1Option, CLOption, FlangOption, FC1Option] in {
5897
+
5891
5898
def print_supported_cpus : Flag<["-", "--"], "print-supported-cpus">,
5892
5899
Group<CompileOnly_Group>,
5893
- Visibility<[ClangOption, CC1Option, CLOption, FlangOption, FC1Option]>,
5894
- HelpText<"Print supported cpu models for the given target (if target is not specified,"
5895
- " it will print the supported cpus for the default target)">,
5900
+ HelpText<"Print supported cpu models for the given target (if target is not "
5901
+ "specified,it will print the supported cpus for the default target)">,
5896
5902
MarshallingInfoFlag<FrontendOpts<"PrintSupportedCPUs">>;
5903
+
5904
+ def : Flag<["-"], "mcpu=help">, Alias<print_supported_cpus>;
5905
+ def : Flag<["-"], "mtune=help">, Alias<print_supported_cpus>;
5906
+
5907
+ } // let Visibility = [ClangOption, CC1Option, CLOption, FlangOption, FC1Option]
5908
+
5897
5909
def print_supported_extensions : Flag<["-", "--"], "print-supported-extensions">,
5898
5910
Visibility<[ClangOption, CC1Option, CLOption]>,
5899
5911
HelpText<"Print supported -march extensions (RISC-V, AArch64 and ARM only)">,
@@ -5903,10 +5915,6 @@ def print_enabled_extensions : Flag<["-", "--"], "print-enabled-extensions">,
5903
5915
HelpText<"Print the extensions enabled by the given target and -march/-mcpu options."
5904
5916
" (AArch64 and RISC-V only)">,
5905
5917
MarshallingInfoFlag<FrontendOpts<"PrintEnabledExtensions">>;
5906
- def : Flag<["-"], "mcpu=help">, Alias<print_supported_cpus>,
5907
- Visibility<[ClangOption, CC1Option, CLOption, FlangOption, FC1Option]>;
5908
- def : Flag<["-"], "mtune=help">, Alias<print_supported_cpus>,
5909
- Visibility<[ClangOption, CC1Option, CLOption, FlangOption, FC1Option]>;
5910
5918
def time : Flag<["-"], "time">,
5911
5919
HelpText<"Time individual commands">;
5912
5920
def traditional_cpp : Flag<["-", "--"], "traditional-cpp">,
0 commit comments