llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang Author: Srividya Sundaram (srividya-sundaram) <details> <summary>Changes</summary> Ports the SYCL driver entries from PR #<!-- -->200449 (which targeted the now-removed ReleaseNotes.rst) to ReleaseNotes.md, and adds an entry for compile-time device library linking via -mlink-builtin-bitcode (#<!-- -->196656). --- Full diff: https://github.com/llvm/llvm-project/pull/211949.diff 1 Files Affected: - (modified) clang/docs/ReleaseNotes.md (+26) ``````````diff diff --git a/clang/docs/ReleaseNotes.md b/clang/docs/ReleaseNotes.md index 83a2b10d96046..236d6f9db0527 100644 --- a/clang/docs/ReleaseNotes.md +++ b/clang/docs/ReleaseNotes.md @@ -493,6 +493,32 @@ features cannot lower the translation-unit ABI level; #### Improvements +- SYCL compilations now default to `-std=c++17` when no explicit language + standard is specified. Standards below C++17 are rejected with a diagnostic. + +- Clang now assumes the default target for SYCL device compilation is 64-bit + SPIR-V and diagnoses if a non-supporting target is specified on the command + line. (#GH167358) + +- The SYCL runtime shared library has been renamed from `libsycl.so` to + `libLLVMSYCL.so` to align with LLVM naming conventions. + +- SYCL header include paths are now added automatically for both host and + device compilations. + +- SYCL runtime library linking is now supported on Windows. When `-fsycl` is + specified, Clang automatically adds `/MD` if no explicit CRT flag is present, + links the appropriate debug (`LLVMSYCLd.lib`) or release (`LLVMSYCL.lib`) + library, and rejects static CRT flags (`/MT`, `/MTd`) with a diagnostic. Use + `-nolibsycl` to suppress automatic library linking. + +- Fixed `-nolibsycl` being silently ignored on Linux: the SYCL runtime library + was unconditionally added to the link line even when the flag was passed. + +- SYCL device compilations targeting SPIR-V now automatically link + `libclang_rt.builtins.bc` at compile time via `-mlink-builtin-bitcode`. + Pass `--no-offloadlib` to opt out. + ## Additional Information A wide variety of additional information is available on the [Clang web `````````` </details> https://github.com/llvm/llvm-project/pull/211949 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
