[Openmp-commits] [PATCH] D90519: [Libomptarget][NFC] Encapsulate Global Libomptarget State

Atmn Patel via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Oct 30 21:12:13 PDT 2020


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

Presently, there a number of global variables in libomptarget (devices,
RTLs, tables, mutexes, etc.), that are not encapsulated. This patch
encapsulates them into a struct ``PluginManager``. All of the functions
that act on this data remain free.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D90519

Files:
  openmp/libomptarget/src/api.cpp
  openmp/libomptarget/src/device.cpp
  openmp/libomptarget/src/device.h
  openmp/libomptarget/src/interface.cpp
  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: D90519.302061.patch
Type: text/x-patch
Size: 28630 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20201031/c19f7385/attachment-0001.bin>


More information about the Openmp-commits mailing list