@@ -4405,7 +4405,7 @@ def fcoverage_prefix_map_EQ
44054405 HelpText<"remap file source paths <old> to <new> in coverage mapping. If there are multiple options, prefix replacement is applied in reverse order starting from the last one">;
44064406def ffile_prefix_map_EQ
44074407 : Joined<["-"], "ffile-prefix-map=">, Group<f_Group>,
4408- HelpText<"remap file source paths in debug info, predefined preprocessor "
4408+ HelpText<"remap file source paths in debug info, coverage mapping, predefined preprocessor "
44094409 "macros and __builtin_FILE(). Implies -ffile-reproducible.">;
44104410def fmacro_prefix_map_EQ
44114411 : Joined<["-"], "fmacro-prefix-map=">, Group<f_Group>,
@@ -5413,6 +5413,10 @@ def mlam_bh : Flag<["-"], "mlam-bh">, Group<m_loongarch_Features_Group>,
54135413 HelpText<"Enable amswap[_db].{b/h} and amadd[_db].{b/h}">;
54145414def mno_lam_bh : Flag<["-"], "mno-lam-bh">, Group<m_loongarch_Features_Group>,
54155415 HelpText<"Disable amswap[_db].{b/h} and amadd[_db].{b/h}">;
5416+ def mld_seq_sa : Flag<["-"], "mld-seq-sa">, Group<m_loongarch_Features_Group>,
5417+ HelpText<"Do not generate load-load barrier instructions (dbar 0x700)">;
5418+ def mno_ld_seq_sa : Flag<["-"], "mno-ld-seq-sa">, Group<m_loongarch_Features_Group>,
5419+ HelpText<"Generate load-load barrier instructions (dbar 0x700)">;
54165420def mannotate_tablejump : Flag<["-"], "mannotate-tablejump">, Group<m_loongarch_Features_Group>,
54175421 HelpText<"Enable annotate table jump instruction to correlate it with the jump table.">;
54185422def mno_annotate_tablejump : Flag<["-"], "mno-annotate-tablejump">, Group<m_loongarch_Features_Group>,
@@ -5884,12 +5888,24 @@ def target : Joined<["--"], "target=">, Flags<[NoXarchOption]>,
58845888def darwin_target_variant : Separate<["-"], "darwin-target-variant">,
58855889 Flags<[NoXarchOption]>, Visibility<[ClangOption, CLOption]>,
58865890 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+
58875898def print_supported_cpus : Flag<["-", "--"], "print-supported-cpus">,
58885899 Group<CompileOnly_Group>,
5889- Visibility<[ClangOption, CC1Option, CLOption]>,
5890- HelpText<"Print supported cpu models for the given target (if target is not specified,"
5891- " 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)">,
58925902 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+
58935909def print_supported_extensions : Flag<["-", "--"], "print-supported-extensions">,
58945910 Visibility<[ClangOption, CC1Option, CLOption]>,
58955911 HelpText<"Print supported -march extensions (RISC-V, AArch64 and ARM only)">,
@@ -5899,8 +5915,6 @@ def print_enabled_extensions : Flag<["-", "--"], "print-enabled-extensions">,
58995915 HelpText<"Print the extensions enabled by the given target and -march/-mcpu options."
59005916 " (AArch64 and RISC-V only)">,
59015917 MarshallingInfoFlag<FrontendOpts<"PrintEnabledExtensions">>;
5902- def : Flag<["-"], "mcpu=help">, Alias<print_supported_cpus>;
5903- def : Flag<["-"], "mtune=help">, Alias<print_supported_cpus>;
59045918def time : Flag<["-"], "time">,
59055919 HelpText<"Time individual commands">;
59065920def traditional_cpp : Flag<["-", "--"], "traditional-cpp">,
0 commit comments