[llvm] [libsycl] add sycl::exception ctors with context (PR #220551)

Kseniya Tikhomirova via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 8 06:51:02 PDT 2026


================
@@ -84,6 +86,34 @@ class _LIBSYCL_EXPORT context {
   friend sycl::detail::ImplUtils;
 }; // class context
 
+// To avoid cross-dependency issues between sycl::context and sycl::exception,
+// definition of ctors that require a context parameter are moved to
+// context.hpp.
----------------
KseniyaTikhomirova wrote:

first, I am trying to minimize SYCL RT exported symbols at this stage.
second, I would like to avoid STL objects in ABI as much as possible. Especially std::string due to _GLIBCXX_USE_CXX11_ABI. We don't have a decision if we will support both modes for upstream but I want to be very cautious about this.

https://github.com/llvm/llvm-project/pull/220551


More information about the llvm-commits mailing list