Skip to content

Commit e2299e8

Browse files
authored
[OpenMP][NFC] Move OMPT headers into OpenMP/OMPT (#73718)
1 parent 859338a commit e2299e8

File tree

13 files changed

+27
-27
lines changed

13 files changed

+27
-27
lines changed

openmp/libomptarget/include/OmptCallback.h renamed to openmp/libomptarget/include/OpenMP/OMPT/Callback.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===---- OmptCallback.h - Target independent OMPT callbacks --*- C++ -*---===//
1+
//===-- OpenMP/OMPT/Callback.h - OpenMP Tooling callbacks -------*- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -11,8 +11,8 @@
1111
//
1212
//===----------------------------------------------------------------------===//
1313

14-
#ifndef _OMPTCALLBACK_H
15-
#define _OMPTCALLBACK_H
14+
#ifndef OMPTARGET_OPENMP_OMPT_CALLBACK_H
15+
#define OMPTARGET_OPENMP_OMPT_CALLBACK_H
1616

1717
#ifdef OMPT_SUPPORT
1818

@@ -102,4 +102,4 @@ extern bool Initialized;
102102
#define performIfOmptInitialized(stmt)
103103
#endif // OMPT_SUPPORT
104104

105-
#endif // _OMPTCALLBACK_H
105+
#endif // OMPTARGET_OPENMP_OMPT_CALLBACK_H

openmp/libomptarget/include/OmptConnector.h renamed to openmp/libomptarget/include/OpenMP/OMPT/Connector.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===- OmptConnector.h - Target independent OpenMP target RTL -- C++ ------===//
1+
//===-- OpenMP/OMPT/Connector.h - OpenMP Tooling lib connector -*- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -12,8 +12,8 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
#ifndef _OMPTCONNECTOR_H
16-
#define _OMPTCONNECTOR_H
15+
#ifndef OMPTARGET_OPENMP_OMPT_CONNECTOR_H
16+
#define OMPTARGET_OPENMP_OMPT_CONNECTOR_H
1717

1818
#ifdef OMPT_SUPPORT
1919

@@ -106,4 +106,4 @@ class OmptLibraryConnectorTy {
106106

107107
#pragma pop_macro("DEBUG_PREFIX")
108108

109-
#endif // _OMPTCONNECTOR_H
109+
#endif // OMPTARGET_OPENMP_OMPT_CONNECTOR_H

openmp/libomptarget/src/OmptInterface.h renamed to openmp/libomptarget/include/OpenMP/OMPT/Interface.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
//===-------- OmptInterface.h - Target independent OpenMP target RTL ------===//
1+
//===-- OpenMP/OMPT/Interface.h - OpenMP Tooling interfaces ----*- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
88
//
9-
// Declarations for OpenMP Tool callback dispatchers
9+
// Declarations for OpenMP Tool callback dispatchers.
1010
//
1111
//===----------------------------------------------------------------------===//
1212

@@ -18,7 +18,7 @@
1818
#include <functional>
1919
#include <tuple>
2020

21-
#include "OmptCallback.h"
21+
#include "Callback.h"
2222
#include "omp-tools.h"
2323

2424
#include "llvm/Support/ErrorHandling.h"

openmp/libomptarget/plugins-nextgen/amdgpu/src/rtl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include "Shared/Utils.h"
2626

2727
#include "GlobalHandler.h"
28-
#include "OmptCallback.h"
28+
#include "OpenMP/OMPT/Callback.h"
2929
#include "PluginInterface.h"
3030
#include "UtilitiesRTL.h"
3131
#include "omptarget.h"

openmp/libomptarget/plugins-nextgen/common/OMPT/OmptCallback.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
#include "Shared/Debug.h"
2222

23-
#include "OmptCallback.h"
24-
#include "OmptConnector.h"
23+
#include "OpenMP/OMPT/Callback.h"
24+
#include "OpenMP/OMPT/Connector.h"
2525

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

openmp/libomptarget/plugins-nextgen/common/src/PluginInterface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "omptargetplugin.h"
2121

2222
#ifdef OMPT_SUPPORT
23-
#include "OmptCallback.h"
23+
#include "OpenMP/OMPT/Callback.h"
2424
#include "omp-tools.h"
2525
#endif
2626

openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "Shared/Environment.h"
2121

2222
#include "GlobalHandler.h"
23-
#include "OmptCallback.h"
23+
#include "OpenMP/OMPT/Callback.h"
2424
#include "PluginInterface.h"
2525

2626
#include "llvm/BinaryFormat/ELF.h"

openmp/libomptarget/plugins-nextgen/generic-elf-64bit/src/rtl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "Shared/Environment.h"
2121

2222
#include "GlobalHandler.h"
23-
#include "OmptCallback.h"
23+
#include "OpenMP/OMPT/Callback.h"
2424
#include "PluginInterface.h"
2525
#include "omptarget.h"
2626

openmp/libomptarget/src/OmptCallback.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020

2121
#include "Shared/Debug.h"
2222

23-
#include "OmptCallback.h"
24-
#include "OmptConnector.h"
25-
#include "OmptInterface.h"
23+
#include "OpenMP/OMPT/Callback.h"
24+
#include "OpenMP/OMPT/Connector.h"
25+
#include "OpenMP/OMPT/Interface.h"
2626

2727
#undef DEBUG_PREFIX
2828
#define DEBUG_PREFIX "OMPT"

openmp/libomptarget/src/device.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
#include "device.h"
14-
#include "OmptCallback.h"
15-
#include "OmptInterface.h"
14+
#include "OpenMP/OMPT/Callback.h"
15+
#include "OpenMP/OMPT/Interface.h"
1616
#include "omptarget.h"
1717
#include "private.h"
1818
#include "rtl.h"

openmp/libomptarget/src/interface.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
//
1212
//===----------------------------------------------------------------------===//
1313

14-
#include "OmptCallback.h"
15-
#include "OmptInterface.h"
14+
#include "OpenMP/OMPT/Interface.h"
15+
#include "OpenMP/OMPT/Callback.h"
1616
#include "device.h"
1717
#include "omptarget.h"
1818
#include "private.h"

openmp/libomptarget/src/omptarget.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
//===----------------------------------------------------------------------===//
1313

1414
#include "omptarget.h"
15-
#include "OmptCallback.h"
16-
#include "OmptInterface.h"
15+
#include "OpenMP/OMPT/Callback.h"
16+
#include "OpenMP/OMPT/Interface.h"
1717
#include "device.h"
1818
#include "private.h"
1919
#include "rtl.h"

openmp/libomptarget/src/rtl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
#include "llvm/Object/OffloadBinary.h"
1414

15-
#include "OmptCallback.h"
15+
#include "OpenMP/OMPT/Callback.h"
1616
#include "device.h"
1717
#include "private.h"
1818
#include "rtl.h"

0 commit comments

Comments
 (0)