File tree Expand file tree Collapse file tree 16 files changed +32
-26
lines changed Expand file tree Collapse file tree 16 files changed +32
-26
lines changed Original file line number Diff line number Diff line change 13
13
#ifndef OMPTARGET_CONFIGURATION_H
14
14
#define OMPTARGET_CONFIGURATION_H
15
15
16
- #include " Environment.h"
16
+ #include " Shared/Environment.h"
17
+
17
18
#include " Types.h"
18
19
19
20
namespace ompx {
Original file line number Diff line number Diff line change 12
12
#ifndef OMPTARGET_DEVICERTL_INTERFACE_H
13
13
#define OMPTARGET_DEVICERTL_INTERFACE_H
14
14
15
- #include "Environment.h"
15
+ #include "Shared/Environment.h"
16
+
16
17
#include "Types.h"
17
18
18
19
/// External API
Original file line number Diff line number Diff line change 12
12
#ifndef OMPTARGET_STATE_H
13
13
#define OMPTARGET_STATE_H
14
14
15
+ #include " Shared/Environment.h"
16
+
15
17
#include " Debug.h"
16
- #include " Environment.h"
17
18
#include " Mapping.h"
18
19
#include " Types.h"
19
20
#include " Utils.h"
Original file line number Diff line number Diff line change 8
8
//
9
9
// ===----------------------------------------------------------------------===//
10
10
11
+ #include " Shared/Environment.h"
12
+
11
13
#include " Allocator.h"
12
14
#include " Configuration.h"
13
- #include " Environment.h"
14
15
#include " Mapping.h"
15
16
#include " Synchronization.h"
16
17
#include " Types.h"
Original file line number Diff line number Diff line change 10
10
//
11
11
// ===----------------------------------------------------------------------===//
12
12
13
- #include " Debug.h"
13
+ #include " Shared/Environment.h"
14
+
14
15
#include " Configuration.h"
15
- #include " Environment .h"
16
+ #include " Debug .h"
16
17
#include " Interface.h"
17
18
#include " Mapping.h"
18
19
#include " State.h"
Original file line number Diff line number Diff line change 10
10
//
11
11
// ===----------------------------------------------------------------------===//
12
12
13
+ #include " Shared/Environment.h"
14
+
13
15
#include " Allocator.h"
14
16
#include " Debug.h"
15
- #include " Environment.h"
16
17
#include " Interface.h"
17
18
#include " Mapping.h"
18
19
#include " State.h"
Original file line number Diff line number Diff line change 8
8
//
9
9
// ===----------------------------------------------------------------------===//
10
10
11
- #include " State.h"
11
+ #include " Shared/Environment.h"
12
+
12
13
#include " Allocator.h"
13
14
#include " Configuration.h"
14
15
#include " Debug.h"
15
- #include " Environment.h"
16
16
#include " Interface.h"
17
17
#include " LibC.h"
18
18
#include " Mapping.h"
19
+ #include " State.h"
19
20
#include " Synchronization.h"
20
21
#include " Types.h"
21
22
#include " Utils.h"
Original file line number Diff line number Diff line change 1
- // ===------------ Environment.h - OpenMP GPU environments --------- C++ -*-===//
1
+ // ===-- Shared/ Environment.h - OpenMP GPU environments --- --------- C++ -*-===//
2
2
//
3
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
4
// See https://llvm.org/LICENSE.txt for license information.
10
10
//
11
11
// ===----------------------------------------------------------------------===//
12
12
13
- #ifndef _OMPTARGET_ENVIRONMENT_H_
14
- #define _OMPTARGET_ENVIRONMENT_H_
13
+ #ifndef OMPTARGET_SHARED_ENVIRONMENT_H
14
+ #define OMPTARGET_SHARED_ENVIRONMENT_H
15
15
16
16
#ifdef OMPTARGET_DEVICE_RUNTIME
17
17
#include " Types.h"
@@ -105,4 +105,4 @@ struct KernelLaunchEnvironmentTy {
105
105
void *ReductionBuffer = nullptr ;
106
106
};
107
107
108
- #endif // _OMPTARGET_ENVIRONMENT_H_
108
+ #endif // OMPTARGET_SHARED_ENVIRONMENT_H
Original file line number Diff line number Diff line change 1
- // ===------- SourceInfo .h - Target independent OpenMP target RTL - - C++ -*-===//
1
+ // ===-- SharedSourceInfo .h - Target independent OpenMP target RTL - C++ -*-===//
2
2
//
3
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
4
// See https://llvm.org/LICENSE.txt for license information.
10
10
//
11
11
// ===----------------------------------------------------------------------===//
12
12
13
- #ifndef _SOURCE_INFO_H_
14
- #define _SOURCE_INFO_H_
13
+ #ifndef OMPTARGET_SHARED_SOURCE_INFO_H
14
+ #define OMPTARGET_SHARED_SOURCE_INFO_H
15
15
16
16
#include < string>
17
17
@@ -110,4 +110,4 @@ static inline std::string getNameFromMapping(const map_var_info_t Name) {
110
110
return NameStr.substr (Begin + 1 , End - Begin - 1 );
111
111
}
112
112
113
- #endif
113
+ #endif // OMPTARGET_SHARED_SOURCE_INFO_H
Original file line number Diff line number Diff line change 14
14
#ifndef _OMPTARGET_H_
15
15
#define _OMPTARGET_H_
16
16
17
- #include " Environment.h"
17
+ #include " Shared/Environment.h"
18
+ #include " Shared/SourceInfo.h"
18
19
19
20
#include < cstdint>
20
21
#include < deque>
23
24
#include < stdint.h>
24
25
#include < type_traits>
25
26
26
- #include < SourceInfo.h>
27
-
28
27
#include " llvm/ADT/SmallVector.h"
29
28
30
29
#define OFFLOAD_SUCCESS (0 )
Original file line number Diff line number Diff line change 21
21
#include < unordered_map>
22
22
23
23
#include " Shared/Debug.h"
24
+ #include " Shared/Environment.h"
24
25
#include " Shared/Utils.h"
25
26
26
- #include " Environment.h"
27
27
#include " GlobalHandler.h"
28
28
#include " OmptCallback.h"
29
29
#include " PluginInterface.h"
Original file line number Diff line number Diff line change 11
11
#include " PluginInterface.h"
12
12
13
13
#include " Shared/Debug.h"
14
+ #include " Shared/Environment.h"
14
15
15
- #include " Environment.h"
16
16
#include " GlobalHandler.h"
17
17
#include " JIT.h"
18
18
#include " Utils/ELF.h"
Original file line number Diff line number Diff line change 20
20
#include < vector>
21
21
22
22
#include " Shared/Debug.h"
23
+ #include " Shared/Environment.h"
23
24
#include " Shared/Utils.h"
24
25
25
- #include " Environment.h"
26
26
#include " GlobalHandler.h"
27
27
#include " JIT.h"
28
28
#include " MemoryManager.h"
Original file line number Diff line number Diff line change 17
17
#include < unordered_map>
18
18
19
19
#include " Shared/Debug.h"
20
+ #include " Shared/Environment.h"
20
21
21
- #include " Environment.h"
22
22
#include " GlobalHandler.h"
23
23
#include " OmptCallback.h"
24
24
#include " PluginInterface.h"
Original file line number Diff line number Diff line change 17
17
#include < unordered_map>
18
18
19
19
#include " Shared/Debug.h"
20
+ #include " Shared/Environment.h"
20
21
21
- #include " Environment.h"
22
22
#include " GlobalHandler.h"
23
23
#include " OmptCallback.h"
24
24
#include " PluginInterface.h"
Original file line number Diff line number Diff line change 14
14
#define _OMPTARGET_PRIVATE_H
15
15
16
16
#include " Shared/Debug.h"
17
+ #include " Shared/SourceInfo.h"
17
18
18
- #include " SourceInfo.h"
19
19
#include " device.h"
20
20
#include " omptarget.h"
21
21
You can’t perform that action at this time.
0 commit comments