[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
Tue Jan 9 11:08:00 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 could change it to `uintptr_t`. My thinking is that we pretty much assert that this thing is 64-bit currently and the type being `uint64_t` reflects that. I don't use `void *` because it's supposed to be opaque so the user shouldn't be concerned with the fact  that it's a pointer.

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


More information about the Openmp-commits mailing list