[llvm] [OFFLOAD] Restore interop functionality (PR #161429)

Kevin Sala Penades via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 1 11:35:39 PDT 2025


================
@@ -359,6 +359,36 @@ EXTERN int ompx_interop_add_completion_callback(omp_interop_val_t *Interop,
   return omp_irc_success;
 }
 
+// Backwards compatibility wrappers
+void __tgt_interop_init(ident_t *LocRef, int32_t Gtid,
+                        omp_interop_val_t *&InteropPtr,
+                        int32_t InteropType, int32_t DeviceId,
+                        int32_t Ndeps, kmp_depend_info_t *DepList,
+                        int32_t HaveNowait) {
+  interop_ctx_t Ctx = {0, {false, (bool)HaveNowait, 0}, Gtid};
+  dep_pack_t Deps = {Ndeps, 0, DepList, nullptr};
+  InteropPtr = __tgt_interop_get(LocRef, InteropType == 2 ? 1 : 0, DeviceId, 0,
----------------
kevinsala wrote:

Could we avoid using hardcoded type numbers?

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


More information about the llvm-commits mailing list