@@ -71,6 +71,11 @@ def FlangOnlyOption : OptionFlag;
71
71
// FC1Option - This option should be accepted by flang -fc1.
72
72
def FC1Option : OptionFlag;
73
73
74
+ // Deprecated - The option is deprecated, but still supported. A
75
+ // diagnostic is emitted about the potential for the option to be removed
76
+ // in an upcoming release.
77
+ def Deprecated : OptionFlag;
78
+
74
79
// A short name to show in documentation. The name will be interpreted as rST.
75
80
class DocName<string name> { string DocName = name; }
76
81
@@ -2783,10 +2788,14 @@ def fsycl_device_only : Flag<["-"], "fsycl-device-only">, Flags<[CoreOption]>,
2783
2788
HelpText<"Compile SYCL kernels for device">;
2784
2789
def fsycl_targets_EQ : CommaJoined<["-"], "fsycl-targets=">, Flags<[NoXarchOption, CC1Option, CoreOption]>,
2785
2790
HelpText<"Specify comma-separated list of triples SYCL offloading targets to be supported">;
2786
- def fsycl_add_targets_EQ : CommaJoined<["-"], "fsycl-add-targets=">, Flags<[NoXarchOption, CoreOption]>,
2787
- HelpText<"Specify comma-separated list of triple and device binary image pairs to add to the final SYCL binary">;
2788
- def fsycl_link_targets_EQ : CommaJoined<["-"], "fsycl-link-targets=">, Flags<[NoXarchOption, CC1Option, CoreOption]>,
2789
- HelpText<"Specify comma-separated list of triples SYCL offloading targets to produce linked device images">;
2791
+ def fsycl_add_targets_EQ : CommaJoined<["-"], "fsycl-add-targets=">,
2792
+ Flags<[NoXarchOption, CoreOption, Deprecated]>,
2793
+ HelpText<"Specify comma-separated list of triple and device binary image "
2794
+ "pairs to add to the final SYCL binary (deprecated)">;
2795
+ def fsycl_link_targets_EQ : CommaJoined<["-"], "fsycl-link-targets=">,
2796
+ Flags<[NoXarchOption, CC1Option, CoreOption, Deprecated]>,
2797
+ HelpText<"Specify comma-separated list of triples SYCL offloading targets "
2798
+ "to produce linked device images (deprecated)">;
2790
2799
def fsycl_device_code_split_EQ : Joined<["-"], "fsycl-device-code-split=">,
2791
2800
Flags<[CC1Option, CoreOption]>, HelpText<"Perform SYCL device code split: per_kernel (device code module is "
2792
2801
"created for each SYCL kernel) | per_source (device code module is created for each source (translation unit)) | off (no device code split). | auto (use heuristic to select the best way of splitting device code). "
@@ -4894,9 +4903,12 @@ def fsycl : Flag<["-"], "fsycl">, Flags<[NoXarchOption, CoreOption]>, Group<sycl
4894
4903
def fno_sycl : Flag<["-"], "fno-sycl">, Flags<[NoXarchOption, CoreOption]>, Group<sycl_Group>,
4895
4904
HelpText<"Disables SYCL kernels compilation for device">;
4896
4905
// FIXME: -fsycl-explicit-simd is deprecated. remove it when support is dropped.
4897
- def : Flag<["-"], "fsycl-explicit-simd">, Flags<[CoreOption]>, Group<clang_ignored_legacy_options_Group>,
4906
+ def : Flag<["-"], "fsycl-explicit-simd">, Flags<[CoreOption, Deprecated]>,
4907
+ Group<clang_ignored_legacy_options_Group>,
4898
4908
HelpText<"Enable SYCL explicit SIMD extension. (deprecated)">;
4899
- def : Flag<["-"], "fno-sycl-explicit-simd">, Flags<[CoreOption]>, Group<clang_ignored_legacy_options_Group>,
4909
+ def : Flag<["-"], "fno-sycl-explicit-simd">,
4910
+ Flags<[CoreOption, Deprecated]>,
4911
+ Group<clang_ignored_legacy_options_Group>,
4900
4912
HelpText<"Disable SYCL explicit SIMD extension. (deprecated)">;
4901
4913
defm sycl_early_optimizations : OptOutCC1FFlag<"sycl-early-optimizations", "Enable", "Disable", " standard optimization pipeline for SYCL device compiler", [CoreOption]>;
4902
4914
def fsycl_dead_args_optimization : Flag<["-"], "fsycl-dead-args-optimization">,
0 commit comments