[llvm] [OpenMP][clang] Register vtables on device for indirect calls runtime (PR #167011)

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 24 08:58:42 PST 2025


================
@@ -443,7 +444,9 @@ static int loadImagesOntoDevice(DeviceTy &Device) {
           // the device to point to the memory on the host.
           if ((PM->getRequirements() & OMP_REQ_UNIFIED_SHARED_MEMORY) ||
               (PM->getRequirements() & OMPX_REQ_AUTO_ZERO_COPY)) {
-            if (Device.RTL->data_submit(DeviceId, DeviceEntry.Address,
+            if (!(Entry.Flags & OMP_DECLARE_TARGET_INDIRECT_VTABLE) &&
+                !(Entry.Flags & OMP_DECLARE_TARGET_INDIRECT) &&
----------------
jhuber6 wrote:

Why is the condition here? This is the condition for error checking

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


More information about the llvm-commits mailing list