[all-commits] [llvm/llvm-project] 982417: [OpenMP] Preserve the original address by default ...

Abhinav Gaba via All-commits all-commits at lists.llvm.org
Tue Nov 25 20:05:50 PST 2025


  Branch: refs/heads/users/abhinavgaba/udp-fallback-1
  Home:   https://github.com/llvm/llvm-project
  Commit: 9824170fed25e52ee9a32b90e9d36a5385733b38
      https://github.com/llvm/llvm-project/commit/9824170fed25e52ee9a32b90e9d36a5385733b38
  Author: Abhinav Gaba <abhinav.gaba at intel.com>
  Date:   2025-11-24 (Mon, 24 Nov 2025)

  Changed paths:
    M offload/libomptarget/omptarget.cpp
    M offload/test/mapping/use_device_addr/target_data_use_device_addr_arrsec_fallback.c
    M offload/test/mapping/use_device_addr/target_data_use_device_addr_var_fallback.c
    M offload/test/mapping/use_device_ptr/target_data_use_device_ptr_var_fallback.c

  Log Message:
  -----------
  [OpenMP] Preserve the original address by default on use_device_ptr/addr lookup failure.

As per OpenMP 5.1, we need to assume that when the lookup for
use_device_ptr/addr fails, the incoming pointer was already device
accessible.

Prior to 5.1, a lookup-failure meant a user-error, so we could do anything
in that scenario.


  Commit: 8e007d1380a31124a46a67f96599bf89d7f00c3e
      https://github.com/llvm/llvm-project/commit/8e007d1380a31124a46a67f96599bf89d7f00c3e
  Author: Abhinav Gaba <abhinav.gaba at intel.com>
  Date:   2025-11-24 (Mon, 24 Nov 2025)

  Changed paths:
    M offload/test/mapping/use_device_addr/target_data_use_device_addr_arrsec_not_existing.cpp
    M offload/test/mapping/use_device_addr/target_data_use_device_addr_arrsec_ref_not_existing.cpp
    M offload/test/mapping/use_device_addr/target_data_use_device_addr_var_not_existing.cpp
    M offload/test/mapping/use_device_addr/target_data_use_device_addr_var_ref_not_existing.cpp
    M offload/test/mapping/use_device_addr/target_wrong_use_device_addr.c
    M offload/test/mapping/use_device_ptr/target_data_use_device_ptr_not_existing.cpp
    M offload/test/mapping/use_device_ptr/target_data_use_device_ptr_ref_not_existing.cpp

  Log Message:
  -----------
  Update some tests that were relying on the previous behavior.


  Commit: ef610f43db5f25e2dc1ed8a0471e838f9e006f18
      https://github.com/llvm/llvm-project/commit/ef610f43db5f25e2dc1ed8a0471e838f9e006f18
  Author: Abhinav Gaba <abhinav.gaba at intel.com>
  Date:   2025-11-24 (Mon, 24 Nov 2025)

  Changed paths:
    M offload/libomptarget/omptarget.cpp

  Log Message:
  -----------
  Keep using uint64_t.


  Commit: 1d76e35bf0115a698ab51b2be195610881e1db56
      https://github.com/llvm/llvm-project/commit/1d76e35bf0115a698ab51b2be195610881e1db56
  Author: Abhinav Gaba <abhinav.gaba at intel.com>
  Date:   2025-11-24 (Mon, 24 Nov 2025)

  Changed paths:
    M clang/docs/OpenMPSupport.rst
    M clang/docs/ReleaseNotes.rst

  Log Message:
  -----------
  Update OpenMPSupport.rst, ReleaseNotes.rst.


  Commit: 3fd3927df233e887d8a2e9133c0c22ab07c66487
      https://github.com/llvm/llvm-project/commit/3fd3927df233e887d8a2e9133c0c22ab07c66487
  Author: Abhinav Gaba <abhinav.gaba at intel.com>
  Date:   2025-11-25 (Tue, 25 Nov 2025)

  Changed paths:
    M llvm/include/llvm/Frontend/OpenMP/OMPConstants.h
    M offload/include/omptarget.h
    M offload/libomptarget/omptarget.cpp

  Log Message:
  -----------
  [OpenMP][Offload] Add `FB_NULLIFY` map-type for `use_device_ptr(fb_nullify)`.

This PR adds a new map-type bit to control the fallback behavior when
when a pointer lookup fails.

For now, this is only meaningful with `RETURN_PARAM`, and can be used
for `need_device_ptr` (for which the default is to use `nullptr` as the result
when lookup fails), and OpenMP 6.1's `use_device_ptr(fb_nullify)`.

Eventually, this can be extended to work with assumed-size maps on `target`
constructs, to control what the argument should be set to when lookup
fails (the OpenMP spec does not have a way to control that yet).


  Commit: 31048e5d19add13037811c2de8ae07ea4a198d0d
      https://github.com/llvm/llvm-project/commit/31048e5d19add13037811c2de8ae07ea4a198d0d
  Author: Abhinav Gaba <abhinav.gaba at intel.com>
  Date:   2025-11-25 (Tue, 25 Nov 2025)

  Changed paths:
    M clang/docs/OpenMPSupport.rst
    M clang/docs/ReleaseNotes.rst
    M llvm/include/llvm/Frontend/OpenMP/OMPConstants.h
    M offload/include/omptarget.h
    M offload/libomptarget/omptarget.cpp
    M offload/test/mapping/use_device_addr/target_data_use_device_addr_arrsec_fallback.c
    M offload/test/mapping/use_device_addr/target_data_use_device_addr_arrsec_not_existing.cpp
    M offload/test/mapping/use_device_addr/target_data_use_device_addr_arrsec_ref_not_existing.cpp
    M offload/test/mapping/use_device_addr/target_data_use_device_addr_var_fallback.c
    M offload/test/mapping/use_device_addr/target_data_use_device_addr_var_not_existing.cpp
    M offload/test/mapping/use_device_addr/target_data_use_device_addr_var_ref_not_existing.cpp
    M offload/test/mapping/use_device_addr/target_wrong_use_device_addr.c
    M offload/test/mapping/use_device_ptr/target_data_use_device_ptr_not_existing.cpp
    M offload/test/mapping/use_device_ptr/target_data_use_device_ptr_ref_not_existing.cpp
    M offload/test/mapping/use_device_ptr/target_data_use_device_ptr_var_fallback.c

  Log Message:
  -----------
  Merge branch 'udp-fallback-1-local' into users/abhinavgaba/udp-fallback-1


Compare: https://github.com/llvm/llvm-project/compare/1c034a372403...31048e5d19ad

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list