diff --git a/openmp/libomptarget/src/CMakeLists.txt b/openmp/libomptarget/src/CMakeLists.txt index 42674e2d9daa7..1a0e26f104be6 100644 --- a/openmp/libomptarget/src/CMakeLists.txt +++ b/openmp/libomptarget/src/CMakeLists.txt @@ -18,7 +18,7 @@ add_llvm_library(omptarget device.cpp interface.cpp omptarget.cpp - rtl.cpp + OffloadRTL.cpp LegacyAPI.cpp PluginManager.cpp DeviceImage.cpp diff --git a/openmp/libomptarget/src/rtl.cpp b/openmp/libomptarget/src/OffloadRTL.cpp similarity index 62% rename from openmp/libomptarget/src/rtl.cpp rename to openmp/libomptarget/src/OffloadRTL.cpp index 5eb1c553df491..061b053c68cc8 100644 --- a/openmp/libomptarget/src/rtl.cpp +++ b/openmp/libomptarget/src/OffloadRTL.cpp @@ -6,46 +6,28 @@ // //===----------------------------------------------------------------------===// // -// Functionality for handling RTL plugins. +// Initialization and tear down of the offload runtime. // //===----------------------------------------------------------------------===// -#include "llvm/Object/OffloadBinary.h" - -#include "DeviceImage.h" #include "OpenMP/OMPT/Callback.h" #include "PluginManager.h" -#include "device.h" -#include "private.h" -#include "rtl.h" #include "Shared/Debug.h" #include "Shared/Profile.h" -#include "Shared/Utils.h" - -#include -#include -#include -#include -#include -#include - -using namespace llvm; -using namespace llvm::sys; -using namespace llvm::omp::target; #ifdef OMPT_SUPPORT -extern void ompt::connectLibrary(); +extern void llvm::omp::target::ompt::connectLibrary(); #endif __attribute__((constructor(101))) void init() { - DP("Init target library!\n"); + DP("Init offload library!\n"); PM = new PluginManager(); #ifdef OMPT_SUPPORT // Initialize OMPT first - ompt::connectLibrary(); + llvm::omp::target::ompt::connectLibrary(); #endif PM->init(); @@ -55,6 +37,6 @@ __attribute__((constructor(101))) void init() { } __attribute__((destructor(101))) void deinit() { - DP("Deinit target library!\n"); + DP("Deinit offload library!\n"); delete PM; }