[llvm] [libsycl] Add context to exception's throw. (PR #224668)

Sergey Semenov via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 25 06:08:32 PDT 2026


================
@@ -89,6 +111,20 @@ void callAndThrow(FunctionType &Function, ArgsT &&...Args) {
   checkAndThrow(Err);
 }
 
+/// Calls the API and checks result, attaches the context to the exception.
+///
+/// \param Context context the API call is made for.
+/// \param Function liboffload API function to be called.
+/// \param Args arguments to be passed to the liboffload API function.
----------------
sergey-semenov wrote:

```suggestion
/// Calls the API and checks the result, attaches the context to the exception.
///
/// \param Context the context the API call is made for.
/// \param Function the liboffload API function to be called.
/// \param Args the arguments to be passed to the liboffload API function.
```

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


More information about the llvm-commits mailing list