@@ -51,6 +51,11 @@ def NoArgumentUnused : OptionFlag;
5151// lines that use it.
5252def Unsupported : OptionFlag;
5353
54+ // UnsupportedRemoved - The option is unsupported and recently removed. Allows
55+ // for special diagnostic handling, and the driver will reject command
56+ // lines that use it.
57+ def UnsupportedRemoved : OptionFlag;
58+
5459// Ignored - The option is unsupported, and the driver will silently ignore it.
5560def Ignored : OptionFlag;
5661
@@ -6982,8 +6987,8 @@ defm : FlangIgnoredDiagOpt<"target-lifetime">;
69826987
69836988// C++ SYCL options
69846989let Group = sycl_Group in {
6985- def reuse_exe_EQ : Joined<["-"], "reuse-exe=">, Visibility<[ClangOption, CLOption, DXCOption]>,
6986- HelpText<"Speed up FPGA aoc compile if the device code in <exe> is unchanged." >,
6990+ def reuse_exe_EQ : Joined<["-"], "reuse-exe=">,
6991+ Visibility<[ClangOption, CLOption, DXCOption]>, Flags<[UnsupportedRemoved] >,
69876992 MetaVarName<"<exe>">;
69886993def fsycl : Flag<["-"], "fsycl">,
69896994 HelpText<"Enable SYCL C++ extensions">;
@@ -7031,10 +7036,9 @@ def fsycl_default_sub_group_size
70317036def fsycl_default_sub_group_size_EQ
70327037 : Joined<["-"], "fsycl-default-sub-group-size=">,
70337038 Alias<fsycl_default_sub_group_size>, Visibility<[ClangOption, CC1Option]>;
7034- def fintelfpga : Flag<["-"], "fintelfpga">,
7039+ def fintelfpga : Flag<["-"], "fintelfpga">, Flags<[UnsupportedRemoved]>,
70357040 Visibility<[ClangOption, CLOption, CC1Option]>,
7036- MarshallingInfoFlag<LangOpts<"IntelFPGA">>,
7037- HelpText<"Perform ahead-of-time compilation for FPGA">;
7041+ MarshallingInfoFlag<LangOpts<"IntelFPGA">>;
70387042def fsycl_embed_ir : Flag<["-"], "fsycl-embed-ir">,
70397043 HelpText<"Embed LLVM IR for runtime kernel fusion">;
70407044defm sycl_esimd_force_stateless_mem : BoolFOption<"sycl-esimd-force-stateless-mem",
@@ -7131,11 +7135,9 @@ def fsycl_use_bitcode : Flag<["-"], "fsycl-use-bitcode">,
71317135def fno_sycl_use_bitcode : Flag<["-"], "fno-sycl-use-bitcode">,
71327136 Alias<fsycl_device_obj_EQ>, AliasArgs<["spirv"]>, Flags<[Deprecated]>,
71337137 HelpText<"Use SPIR-V instead of LLVM bitcode in fat objects (deprecated)">;
7134- def fsycl_link_EQ : Joined<["-"], "fsycl-link=">,
7135- HelpText<"Generate partially linked device and host object to be used at "
7136- "various stages of compilation">, Values<"image,early">;
7138+ def fsycl_link_EQ : Joined<["-"], "fsycl-link=">;
71377139def fsycl_link : Flag<["-"], "fsycl-link">, Alias<fsycl_link_EQ>,
7138- AliasArgs<["early "]>, HelpText<"Generate partially linked device object to "
7140+ AliasArgs<["default "]>, HelpText<"Generate partially linked device object to "
71397141 "be used with the host link">;
71407142defm sycl_unnamed_lambda
71417143 : BoolFOption<
0 commit comments