llvm icon indicating copy to clipboard operation
llvm copied to clipboard

[SYCL][Driver] Update -fsycl-dump-device-code option name.

Open srividya-sundaram opened this issue 4 months ago • 1 comments

This PR deprecates the usage of -fsycl-dump-device-code option, making this option backend-agnostic, extending its functionality beyond just SYCL to include OpenMP and other offloading models in the future, with the new option name: -save-offload-code=/path/to/offload/code/(Linux) and -(or)/Qsave-offload-code=/path/to/offload/code/ (Windows)

A diagnostic warning is emitted when -fsycl-dump-device-code option is passed to the Clang driver. Example:

clang++ -fsycl -fsycl-dump-device-code= syclfile.cpp
clang++: warning: option '-fsycl-dump-device-code=' is deprecated and will be removed in a future release, use '-save-offload-code=' instead [-Wdeprecated]

srividya-sundaram avatar Jun 10 '25 21:06 srividya-sundaram