[all-commits] [llvm/llvm-project] 2cb83c: [OpenMP][libomptarget] Improve NextGen plugin inte...

Kevin Sala Penadés via All-commits all-commits at lists.llvm.org
Sat Dec 3 13:26:26 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2cb83cd288fd6543bb22713ff3eba50faadc20e0
      https://github.com/llvm/llvm-project/commit/2cb83cd288fd6543bb22713ff3eba50faadc20e0
  Author: Kevin Sala <kevin.sala at bsc.es>
  Date:   2022-12-03 (Sat, 03 Dec 2022)

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

  Log Message:
  -----------
  [OpenMP][libomptarget] Improve NextGen plugin interface for initialization

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.

Differential Revision: https://reviews.llvm.org/D138625




More information about the All-commits mailing list