Skip to content

[OpenMP][NFC] Move OMPT headers into OpenMP/OMPT #73718

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===---- OmptCallback.h - Target independent OMPT callbacks --*- C++ -*---===//
//===-- OpenMP/OMPT/Callback.h - OpenMP Tooling callbacks -------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand All @@ -11,8 +11,8 @@
//
//===----------------------------------------------------------------------===//

#ifndef _OMPTCALLBACK_H
#define _OMPTCALLBACK_H
#ifndef OMPTARGET_OPENMP_OMPT_CALLBACK_H
#define OMPTARGET_OPENMP_OMPT_CALLBACK_H

#ifdef OMPT_SUPPORT

Expand Down Expand Up @@ -102,4 +102,4 @@ extern bool Initialized;
#define performIfOmptInitialized(stmt)
#endif // OMPT_SUPPORT

#endif // _OMPTCALLBACK_H
#endif // OMPTARGET_OPENMP_OMPT_CALLBACK_H
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===- OmptConnector.h - Target independent OpenMP target RTL -- C++ ------===//
//===-- OpenMP/OMPT/Connector.h - OpenMP Tooling lib connector -*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand All @@ -12,8 +12,8 @@
//
//===----------------------------------------------------------------------===//

#ifndef _OMPTCONNECTOR_H
#define _OMPTCONNECTOR_H
#ifndef OMPTARGET_OPENMP_OMPT_CONNECTOR_H
#define OMPTARGET_OPENMP_OMPT_CONNECTOR_H

#ifdef OMPT_SUPPORT

Expand Down Expand Up @@ -106,4 +106,4 @@ class OmptLibraryConnectorTy {

#pragma pop_macro("DEBUG_PREFIX")

#endif // _OMPTCONNECTOR_H
#endif // OMPTARGET_OPENMP_OMPT_CONNECTOR_H
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//===-------- OmptInterface.h - Target independent OpenMP target RTL ------===//
//===-- OpenMP/OMPT/Interface.h - OpenMP Tooling interfaces ----*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// Declarations for OpenMP Tool callback dispatchers
// Declarations for OpenMP Tool callback dispatchers.
//
//===----------------------------------------------------------------------===//

Expand All @@ -18,7 +18,7 @@
#include <functional>
#include <tuple>

#include "OmptCallback.h"
#include "Callback.h"
#include "omp-tools.h"

#include "llvm/Support/ErrorHandling.h"
Expand Down
2 changes: 1 addition & 1 deletion openmp/libomptarget/plugins-nextgen/amdgpu/src/rtl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "Shared/Utils.h"

#include "GlobalHandler.h"
#include "OmptCallback.h"
#include "OpenMP/OMPT/Callback.h"
#include "PluginInterface.h"
#include "UtilitiesRTL.h"
#include "omptarget.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

#include "Shared/Debug.h"

#include "OmptCallback.h"
#include "OmptConnector.h"
#include "OpenMP/OMPT/Callback.h"
#include "OpenMP/OMPT/Connector.h"

using namespace llvm::omp::target::ompt;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "omptargetplugin.h"

#ifdef OMPT_SUPPORT
#include "OmptCallback.h"
#include "OpenMP/OMPT/Callback.h"
#include "omp-tools.h"
#endif

Expand Down
2 changes: 1 addition & 1 deletion openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "Shared/Environment.h"

#include "GlobalHandler.h"
#include "OmptCallback.h"
#include "OpenMP/OMPT/Callback.h"
#include "PluginInterface.h"

#include "llvm/BinaryFormat/ELF.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "Shared/Environment.h"

#include "GlobalHandler.h"
#include "OmptCallback.h"
#include "OpenMP/OMPT/Callback.h"
#include "PluginInterface.h"
#include "omptarget.h"

Expand Down
6 changes: 3 additions & 3 deletions openmp/libomptarget/src/OmptCallback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@

#include "Shared/Debug.h"

#include "OmptCallback.h"
#include "OmptConnector.h"
#include "OmptInterface.h"
#include "OpenMP/OMPT/Callback.h"
#include "OpenMP/OMPT/Connector.h"
#include "OpenMP/OMPT/Interface.h"

#undef DEBUG_PREFIX
#define DEBUG_PREFIX "OMPT"
Expand Down
4 changes: 2 additions & 2 deletions openmp/libomptarget/src/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
//===----------------------------------------------------------------------===//

#include "device.h"
#include "OmptCallback.h"
#include "OmptInterface.h"
#include "OpenMP/OMPT/Callback.h"
#include "OpenMP/OMPT/Interface.h"
#include "omptarget.h"
#include "private.h"
#include "rtl.h"
Expand Down
4 changes: 2 additions & 2 deletions openmp/libomptarget/src/interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
//
//===----------------------------------------------------------------------===//

#include "OmptCallback.h"
#include "OmptInterface.h"
#include "OpenMP/OMPT/Interface.h"
#include "OpenMP/OMPT/Callback.h"
#include "device.h"
#include "omptarget.h"
#include "private.h"
Expand Down
4 changes: 2 additions & 2 deletions openmp/libomptarget/src/omptarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
//===----------------------------------------------------------------------===//

#include "omptarget.h"
#include "OmptCallback.h"
#include "OmptInterface.h"
#include "OpenMP/OMPT/Callback.h"
#include "OpenMP/OMPT/Interface.h"
#include "device.h"
#include "private.h"
#include "rtl.h"
Expand Down
2 changes: 1 addition & 1 deletion openmp/libomptarget/src/rtl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#include "llvm/Object/OffloadBinary.h"

#include "OmptCallback.h"
#include "OpenMP/OMPT/Callback.h"
#include "device.h"
#include "private.h"
#include "rtl.h"
Expand Down