[llvm] [Offload][Lang] Add internal StreamTy (PR #216374)

Sophia Herrmann via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 21 11:26:29 PDT 2026


================
@@ -27,6 +28,15 @@ using namespace offload;
 // Weak so another runtime object can override the default stream mode.
 __attribute__((weak)) uint32_t PerThreadQueue = 0;
 
+static constexpr ol_error_struct_t InvalidNullPointerError = {
+    OL_ERRC_INVALID_NULL_POINTER, "invalid null stream pointer"};
+
+static constexpr ol_error_struct_t InvalidDeviceError = {OL_ERRC_INVALID_DEVICE,
----------------
jellytabby wrote:

Moved into a new header `OffloadErrors.h`

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


More information about the llvm-commits mailing list