Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bae7012

Browse files
authoredFeb 18, 2025··
[SYCL][Driver][FPGA] Remove support for FPGA related options (#16864)
Removes support for any FPGA related options and any options that use FPGA specific arguments. Upon usage of any of these options, a specific error will be emitted: > clang++ -fintelfpga file.cpp clang++: error: option '-fintelfpga' is not supported and has been removed from the compiler. Please see the compiler documentation for more details The following options are being handled: - -fintelfpga - -fsycl-targets=spir64_fpga[-unknown-unknown] - -fsycl-link=early/image - -Xsycl-target-backend=spir64_fpga "opt" - -reuse-exe=arg - -fsycl-help=fpga This mainly removes support of the options as specified, subsequent cleanup of driver behaviors will be done in a later change. Due to the broad impact of these changes, all associated LIT tests have been updated/removed. Associated issue: #16929
1 parent c812d8b commit bae7012

File tree

78 files changed

+126
-3371
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+126
-3371
lines changed
 

‎clang/include/clang/Basic/DiagnosticDriverKinds.td

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ def err_drv_unsupported_option_argument : Error<
2222
"unsupported argument '%1' to option '%0'">;
2323
def err_drv_unsupported_option_argument_for_target : Error<
2424
"unsupported argument '%1' to option '%0' for target '%2'">;
25+
def err_drv_unsupported_opt_removed : Error<
26+
"option '%0' is not supported and has been removed from the compiler. Please "
27+
"see the compiler documentation for more details">;
2528
def err_drv_unknown_stdin_type : Error<
2629
"-E or -x required when input is from standard input">;
2730
def err_drv_unknown_stdin_type_clang_cl : Error<

‎clang/include/clang/Driver/Driver.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,11 @@ class Driver {
617617

618618
/// getSYCLDeviceTriple - Returns the SYCL device triple for the
619619
/// specified subarch
620-
llvm::Triple getSYCLDeviceTriple(StringRef TargetArch = "spir64") const;
620+
// TODO: Additional Arg input parameter is for diagnostic output information
621+
// regarding FPGA support removal. This should be cleaned up in a future
622+
// release.
623+
llvm::Triple getSYCLDeviceTriple(StringRef TargetArch = "spir64",
624+
const llvm::opt::Arg *Arg = nullptr) const;
621625

622626
/// PrintActions - Print the list of actions.
623627
void PrintActions(const Compilation &C) const;

0 commit comments

Comments
 (0)
Please sign in to comment.