[all-commits] [llvm/llvm-project] 254287: [Libomptarget] Remove handling of old ctor / dtor ...

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Jan 31 09:48:20 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 254287658f4b3e413d47870c1cca422071b398ff
      https://github.com/llvm/llvm-project/commit/254287658f4b3e413d47870c1cca422071b398ff
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2024-01-31 (Wed, 31 Jan 2024)

  Changed paths:
    M openmp/libomptarget/include/OffloadEntry.h
    M openmp/libomptarget/include/PluginManager.h
    M openmp/libomptarget/include/device.h
    M openmp/libomptarget/include/omptarget.h
    M openmp/libomptarget/src/PluginManager.cpp
    M openmp/libomptarget/src/device.cpp
    M openmp/libomptarget/src/omptarget.cpp
    M openmp/libomptarget/test/offloading/ctor_dtor.cpp

  Log Message:
  -----------
  [Libomptarget] Remove handling of old ctor / dtor entries (#80153)

Summary:
A previous patch removed creating these entries in clang in favor of the
backend emitting a callable kernel and having the runtime call that if
present. The support for the old style was kept around in LLVM 18.0 but
now that we have forked to 19.0 we should remove the support.

The effect of this would be that an application linking against a newer
libomptarget that still had the old constructors will no longer be
called. In that case, they can either recompile or use the
`libomptarget.so.18` that comes with the previous release.




More information about the All-commits mailing list