[Openmp-commits] [PATCH] D89654: [WIP][libomptarget][NFC] Refactor Libomptarget functionality into a class

Atmn Patel via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Sun Oct 18 11:54:26 PDT 2020


atmnpatel created this revision.
atmnpatel added reviewers: jdoerfert, ABataev, JonChesterfield.
Herald added subscribers: openmp-commits, mgorny.
Herald added a project: OpenMP.
atmnpatel requested review of this revision.
Herald added a subscriber: sstefan1.

Libomptargert currently relies on global variables and this prevents
reusability of the functions for device plugins that may want to offload
themselves. This patch refactors the existing libomptarget code into an ``OffloadingPlugin``
class. The ``OffloadingPlugin`` class just encapsulates the variables containing
all of the devices infomation and runtime plugins information.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D89654

Files:
  openmp/libomptarget/src/CMakeLists.txt
  openmp/libomptarget/src/api.cpp
  openmp/libomptarget/src/device.cpp
  openmp/libomptarget/src/device.h
  openmp/libomptarget/src/interface.cpp
  openmp/libomptarget/src/offloading.cpp
  openmp/libomptarget/src/offloading.h
  openmp/libomptarget/src/omptarget.cpp
  openmp/libomptarget/src/private.h
  openmp/libomptarget/src/rtl.cpp
  openmp/libomptarget/src/rtl.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89654.298894.patch
Type: text/x-patch
Size: 161339 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20201018/717633bc/attachment-0001.bin>


More information about the Openmp-commits mailing list