diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td --- a/clang/include/clang/Driver/Options.td +++ b/clang/include/clang/Driver/Options.td @@ -195,8 +195,7 @@ def m_wasm_Features_Driver_Group : OptionGroup<"">, Group, DocName<"WebAssembly Driver">; def m_x86_Features_Group : OptionGroup<"">, - Group, - Visibility<[ClangOption, CLOption, DXCOption]>, + Group, Visibility<[ClangOption, CLOption]>, DocName<"X86">; def m_riscv_Features_Group : OptionGroup<"">, Group, DocName<"RISC-V">; @@ -274,8 +273,7 @@ // Retired with clang-16.0, to provide a deprecation period; it should // be removed in Clang 18 or later. def enable_trivial_var_init_zero : Flag<["-"], "enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang">, - Flags<[NoArgumentUnused]>, - Visibility<[ClangOption, CC1Option, CLOption, DXCOption]>, + Flags<[NoArgumentUnused]>, Visibility<[ClangOption, CC1Option, CLOption]>, Group; // Group that ignores all gcc optimizations that won't be implemented @@ -1079,7 +1077,7 @@ Visibility<[ClangOption, CLOption, DXCOption]>, HelpText<"User directory for configuration files">; def coverage : Flag<["-", "--"], "coverage">, Group, - Visibility<[ClangOption, CLOption, DXCOption]>; + Visibility<[ClangOption, CLOption]>; def cpp_precomp : Flag<["-"], "cpp-precomp">, Group; def current__version : JoinedOrSeparate<["-"], "current_version">; def cxx_isystem : JoinedOrSeparate<["-"], "cxx-isystem">, Group, @@ -1449,7 +1447,7 @@ PosFlag, NegFlag, - BothFlags<[], [ClangOption, CLOption, DXCOption]>>; + BothFlags<[], [ClangOption, CLOption]>>; def fassume_sane_operator_new : Flag<["-"], "fassume-sane-operator-new">, Group; def fastcp : Flag<["-"], "fastcp">, Group; @@ -1488,7 +1486,7 @@ defm experimental_library : BoolFOption<"experimental-library", LangOpts<"ExperimentalLibrary">, DefaultFalse, - PosFlag>; def fprofile_sample_use : Flag<["-"], "fprofile-sample-use">, Group, - Visibility<[ClangOption, CLOption, DXCOption]>; + Visibility<[ClangOption, CLOption]>; def fno_profile_sample_use : Flag<["-"], "fno-profile-sample-use">, Group, - Visibility<[ClangOption, CLOption, DXCOption]>; + Visibility<[ClangOption, CLOption]>; def fprofile_sample_use_EQ : Joined<["-"], "fprofile-sample-use=">, Group, Flags<[NoXarchOption]>, Visibility<[ClangOption, CC1Option]>, @@ -1568,8 +1566,7 @@ Visibility<[ClangOption, CC1Option, CC1AsOption, CLOption, DXCOption]>, Alias; def fcoverage_compilation_dir_EQ : Joined<["-"], "fcoverage-compilation-dir=">, - Group, - Visibility<[ClangOption, CC1Option, CC1AsOption, CLOption, DXCOption]>, + Group, Visibility<[ClangOption, CC1Option, CC1AsOption, CLOption]>, HelpText<"The compilation directory to embed in the coverage mapping.">, MarshallingInfoString>; def ffile_compilation_dir_EQ : Joined<["-"], "ffile-compilation-dir=">, Group, @@ -1581,19 +1578,18 @@ "Emit extra debug info to make sample profile more accurate">, NegFlag>; def fprofile_instr_generate : Flag<["-"], "fprofile-instr-generate">, - Group, Visibility<[ClangOption, CLOption, DXCOption]>, + Group, Visibility<[ClangOption, CLOption]>, HelpText<"Generate instrumented code to collect execution counts into default.profraw file (overridden by '=' form of option or LLVM_PROFILE_FILE env var)">; def fprofile_instr_generate_EQ : Joined<["-"], "fprofile-instr-generate=">, - Group, Visibility<[ClangOption, CLOption, DXCOption]>, - MetaVarName<"">, + Group, Visibility<[ClangOption, CLOption]>, MetaVarName<"">, HelpText<"Generate instrumented code to collect execution counts into (overridden by LLVM_PROFILE_FILE env var)">; def fprofile_instr_use : Flag<["-"], "fprofile-instr-use">, Group, - Visibility<[ClangOption, CLOption, DXCOption]>; + Visibility<[ClangOption, CLOption]>; def fprofile_instr_use_EQ : Joined<["-"], "fprofile-instr-use=">, - Group, Visibility<[ClangOption, CLOption, DXCOption]>, + Group, Visibility<[ClangOption, CLOption]>, HelpText<"Use instrumentation data for profile-guided optimization">; def fprofile_remapping_file_EQ : Joined<["-"], "fprofile-remapping-file=">, - Group, Visibility<[ClangOption, CC1Option, CLOption, DXCOption]>, + Group, Visibility<[ClangOption, CC1Option, CLOption]>, MetaVarName<"">, HelpText<"Use the remappings described in to match the profile data against names in the program">, MarshallingInfoString>; @@ -1602,36 +1598,36 @@ PosFlag, NegFlag, BothFlags< - [], [ClangOption, CLOption, DXCOption]>>; + [], [ClangOption, CLOption]>>; def fprofile_generate : Flag<["-"], "fprofile-generate">, - Group, Visibility<[ClangOption, CLOption, DXCOption]>, + Group, Visibility<[ClangOption, CLOption]>, HelpText<"Generate instrumented code to collect execution counts into default.profraw (overridden by LLVM_PROFILE_FILE env var)">; def fprofile_generate_EQ : Joined<["-"], "fprofile-generate=">, - Group, Visibility<[ClangOption, CLOption, DXCOption]>, + Group, Visibility<[ClangOption, CLOption]>, MetaVarName<"">, HelpText<"Generate instrumented code to collect execution counts into /default.profraw (overridden by LLVM_PROFILE_FILE env var)">; def fcs_profile_generate : Flag<["-"], "fcs-profile-generate">, - Group, Visibility<[ClangOption, CLOption, DXCOption]>, + Group, Visibility<[ClangOption, CLOption]>, HelpText<"Generate instrumented code to collect context sensitive execution counts into default.profraw (overridden by LLVM_PROFILE_FILE env var)">; def fcs_profile_generate_EQ : Joined<["-"], "fcs-profile-generate=">, - Group, Visibility<[ClangOption, CLOption, DXCOption]>, + Group, Visibility<[ClangOption, CLOption]>, MetaVarName<"">, HelpText<"Generate instrumented code to collect context sensitive execution counts into /default.profraw (overridden by LLVM_PROFILE_FILE env var)">; def fprofile_use : Flag<["-"], "fprofile-use">, Group, - Visibility<[ClangOption, CLOption, DXCOption]>, Alias; + Visibility<[ClangOption, CLOption]>, Alias; def fprofile_use_EQ : Joined<["-"], "fprofile-use=">, Group, Flags<[NoXarchOption]>, - Visibility<[ClangOption, CLOption, DXCOption]>, + Visibility<[ClangOption, CLOption]>, MetaVarName<"">, HelpText<"Use instrumentation data for profile-guided optimization. If pathname is a directory, it reads from /default.profdata. Otherwise, it reads from file .">; def fno_profile_instr_generate : Flag<["-"], "fno-profile-instr-generate">, - Group, Visibility<[ClangOption, CLOption, DXCOption]>, + Group, Visibility<[ClangOption, CLOption]>, HelpText<"Disable generation of profile instrumentation.">; def fno_profile_generate : Flag<["-"], "fno-profile-generate">, - Group, Visibility<[ClangOption, CLOption, DXCOption]>, + Group, Visibility<[ClangOption, CLOption]>, HelpText<"Disable generation of profile instrumentation.">; def fno_profile_instr_use : Flag<["-"], "fno-profile-instr-use">, - Group, Visibility<[ClangOption, CLOption, DXCOption]>, + Group, Visibility<[ClangOption, CLOption]>, HelpText<"Disable using instrumentation data for profile-guided optimization">; def fno_profile_use : Flag<["-"], "fno-profile-use">, Alias; @@ -1642,15 +1638,15 @@ HelpText<"Instrument code to produce gcov data files (*.gcda)">; def fno_profile_arcs : Flag<["-"], "fno-profile-arcs">, Group; def fprofile_filter_files_EQ : Joined<["-"], "fprofile-filter-files=">, - Group, Visibility<[ClangOption, CC1Option, CLOption, DXCOption]>, + Group, Visibility<[ClangOption, CC1Option, CLOption]>, HelpText<"Instrument only functions from files where names match any regex separated by a semi-colon">, MarshallingInfoString>; def fprofile_exclude_files_EQ : Joined<["-"], "fprofile-exclude-files=">, - Group, Visibility<[ClangOption, CC1Option, CLOption, DXCOption]>, + Group, Visibility<[ClangOption, CC1Option, CLOption]>, HelpText<"Instrument only functions from files where names don't match all the regexes separated by a semi-colon">, MarshallingInfoString>; def fprofile_update_EQ : Joined<["-"], "fprofile-update=">, - Group, Visibility<[ClangOption, CC1Option, CLOption, DXCOption]>, + Group, Visibility<[ClangOption, CC1Option, CLOption]>, Values<"atomic,prefer-atomic,single">, MetaVarName<"">, HelpText<"Set update method of profile counters">, MarshallingInfoFlag>; @@ -1661,10 +1657,10 @@ BothFlags<[NoXarchOption], [ClangOption, CC1Option], " pseudo probes for sample profiling">>; def forder_file_instrumentation : Flag<["-"], "forder-file-instrumentation">, - Group, Visibility<[ClangOption, CC1Option, CLOption, DXCOption]>, + Group, Visibility<[ClangOption, CC1Option, CLOption]>, HelpText<"Generate instrumented code to collect order file into default.profraw file (overridden by '=' form of option or LLVM_PROFILE_FILE env var)">; def fprofile_list_EQ : Joined<["-"], "fprofile-list=">, - Group, Visibility<[ClangOption, CC1Option, CLOption, DXCOption]>, + Group, Visibility<[ClangOption, CC1Option, CLOption]>, HelpText<"Filename defining the list of functions/files to instrument. " "The file uses the sanitizer special case list format.">, MarshallingInfoStringVector>; @@ -1679,7 +1675,7 @@ MarshallingInfoInt>; def fswift_async_fp_EQ : Joined<["-"], "fswift-async-fp=">, Group, - Visibility<[ClangOption, CC1Option, CC1AsOption, CLOption, DXCOption]>, + Visibility<[ClangOption, CC1Option, CC1AsOption, CLOption]>, MetaVarName<"