[Openmp-commits] [PATCH] D138625: [OpenMP][libomptarget] Improve NextGen plugin interface for initialization

Kevin Sala Penadés via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Nov 23 15:47:37 PST 2022


kevinsala created this revision.
kevinsala added reviewers: jdoerfert, jhuber6, tianshilei1992, JonChesterfield, josemonsalve2.
kevinsala added a project: OpenMP.
Herald added subscribers: kosarev, guansong, tpr, yaxunl.
Herald added a project: All.
kevinsala requested review of this revision.
Herald added subscribers: openmp-commits, sstefan1.

This patch modifies the PluginInterface to define functions for initializing
and deinitializing GenericPluginTy instances instead of using the constructor
and destructor. This way, we can return errors from these functions. Also, it
defines some functions that each plugin should implement for creating
plugin-specific objects.

      

This patch prepares the PluginInterface for the new AMDGPU NextGen plugin.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D138625

Files:
  openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.cpp
  openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h
  openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp
  openmp/libomptarget/plugins-nextgen/generic-elf-64bit/src/rtl.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138625.477632.patch
Type: text/x-patch
Size: 18867 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20221123/c5bcaae5/attachment-0001.bin>


More information about the Openmp-commits mailing list