llvm
llvm copied to clipboard
[SYCL][Driver] Update -fsycl-dump-device-code option name.
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]