[Openmp-commits] [openmp] [Libomptarget] Move target table handling out of the plugins (PR #77150)

Joseph Huber via Openmp-commits openmp-commits at lists.llvm.org
Fri Jan 12 08:59:59 PST 2024


================
@@ -62,6 +62,11 @@ struct __tgt_target_table {
       *EntriesEnd; // End of the table with all the entries (non inclusive)
 };
 
+/// This struct contains a handle to a loaded binary in the plugin device.
+struct __tgt_device_binary {
+  uint64_t handle;
----------------
jhuber6 wrote:

I think `uintptr_t` is fine, it's a common method to just hide opaque handles this way and the user doesn't need to think of it as a pointer.

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


More information about the Openmp-commits mailing list