@@ -16,16 +16,16 @@ __SYCL_INLINE_NAMESPACE(cl) {
16
16
namespace sycl {
17
17
namespace INTEL {
18
18
19
- template <class name , class dataT , int32_t min_capacity = 0 > class pipe {
19
+ template <class _name , class _dataT , int32_t _min_capacity = 0 > class pipe {
20
20
public:
21
21
// Non-blocking pipes
22
22
// Reading from pipe is lowered to SPIR-V instruction OpReadPipe via SPIR-V
23
23
// friendly LLVM IR.
24
- static dataT read (bool &Success) {
24
+ static _dataT read (bool &Success) {
25
25
#ifdef __SYCL_DEVICE_ONLY__
26
- RPipeTy<dataT > RPipe =
27
- __spirv_CreatePipeFromPipeStorage_read<dataT >(&m_Storage);
28
- dataT TempData;
26
+ RPipeTy<_dataT > RPipe =
27
+ __spirv_CreatePipeFromPipeStorage_read<_dataT >(&m_Storage);
28
+ _dataT TempData;
29
29
Success = !static_cast <bool >(
30
30
__spirv_ReadPipe (RPipe, &TempData, m_Size, m_Alignment));
31
31
return TempData;
@@ -37,10 +37,10 @@ template <class name, class dataT, int32_t min_capacity = 0> class pipe {
37
37
38
38
// Writing to pipe is lowered to SPIR-V instruction OpWritePipe via SPIR-V
39
39
// friendly LLVM IR.
40
- static void write (const dataT &Data, bool &Success) {
40
+ static void write (const _dataT &Data, bool &Success) {
41
41
#ifdef __SYCL_DEVICE_ONLY__
42
- WPipeTy<dataT > WPipe =
43
- __spirv_CreatePipeFromPipeStorage_write<dataT >(&m_Storage);
42
+ WPipeTy<_dataT > WPipe =
43
+ __spirv_CreatePipeFromPipeStorage_write<_dataT >(&m_Storage);
44
44
Success = !static_cast <bool >(
45
45
__spirv_WritePipe (WPipe, &Data, m_Size, m_Alignment));
46
46
#else
@@ -53,11 +53,11 @@ template <class name, class dataT, int32_t min_capacity = 0> class pipe {
53
53
// Blocking pipes
54
54
// Reading from pipe is lowered to SPIR-V instruction OpReadPipe via SPIR-V
55
55
// friendly LLVM IR.
56
- static dataT read () {
56
+ static _dataT read () {
57
57
#ifdef __SYCL_DEVICE_ONLY__
58
- RPipeTy<dataT > RPipe =
59
- __spirv_CreatePipeFromPipeStorage_read<dataT >(&m_Storage);
60
- dataT TempData;
58
+ RPipeTy<_dataT > RPipe =
59
+ __spirv_CreatePipeFromPipeStorage_read<_dataT >(&m_Storage);
60
+ _dataT TempData;
61
61
__spirv_ReadPipeBlockingINTEL (RPipe, &TempData, m_Size, m_Alignment);
62
62
return TempData;
63
63
#else
@@ -67,10 +67,10 @@ template <class name, class dataT, int32_t min_capacity = 0> class pipe {
67
67
68
68
// Writing to pipe is lowered to SPIR-V instruction OpWritePipe via SPIR-V
69
69
// friendly LLVM IR.
70
- static void write (const dataT &Data) {
70
+ static void write (const _dataT &Data) {
71
71
#ifdef __SYCL_DEVICE_ONLY__
72
- WPipeTy<dataT > WPipe =
73
- __spirv_CreatePipeFromPipeStorage_write<dataT >(&m_Storage);
72
+ WPipeTy<_dataT > WPipe =
73
+ __spirv_CreatePipeFromPipeStorage_write<_dataT >(&m_Storage);
74
74
__spirv_WritePipeBlockingINTEL (WPipe, &Data, m_Size, m_Alignment);
75
75
#else
76
76
(void )Data;
@@ -79,9 +79,9 @@ template <class name, class dataT, int32_t min_capacity = 0> class pipe {
79
79
}
80
80
81
81
private:
82
- static constexpr int32_t m_Size = sizeof (dataT );
83
- static constexpr int32_t m_Alignment = alignof (dataT );
84
- static constexpr int32_t m_Capacity = min_capacity ;
82
+ static constexpr int32_t m_Size = sizeof (_dataT );
83
+ static constexpr int32_t m_Alignment = alignof (_dataT );
84
+ static constexpr int32_t m_Capacity = _min_capacity ;
85
85
#ifdef __SYCL_DEVICE_ONLY__
86
86
static constexpr struct ConstantPipeStorage m_Storage = {m_Size, m_Alignment,
87
87
m_Capacity};
@@ -99,26 +99,26 @@ struct ethernet_pipe_id {
99
99
static constexpr int32_t id = ID;
100
100
};
101
101
102
- template <class dataT , size_t min_capacity >
102
+ template <class _dataT , size_t _min_capacity >
103
103
using ethernet_read_pipe =
104
- kernel_readable_io_pipe<ethernet_pipe_id<0>, dataT, min_capacity >;
104
+ kernel_readable_io_pipe<ethernet_pipe_id<0>, _dataT, _min_capacity >;
105
105
106
- template <class dataT , size_t min_capacity >
106
+ template <class _dataT , size_t _min_capacity >
107
107
using ethernet_write_pipe =
108
- kernel_writeable_io_pipe<ethernet_pipe_id<1>, dataT, min_capacity >;
108
+ kernel_writeable_io_pipe<ethernet_pipe_id<1>, _dataT, _min_capacity >;
109
109
} // namespace intelfpga */
110
110
111
- template <class name , class dataT , size_t min_capacity = 0 >
111
+ template <class _name , class _dataT , size_t _min_capacity = 0 >
112
112
class kernel_readable_io_pipe {
113
113
public:
114
114
// Non-blocking pipes
115
115
// Reading from pipe is lowered to SPIR-V instruction OpReadPipe via SPIR-V
116
116
// friendly LLVM IR.
117
- static dataT read (bool &Success) {
117
+ static _dataT read (bool &Success) {
118
118
#ifdef __SYCL_DEVICE_ONLY__
119
- RPipeTy<dataT > RPipe =
120
- __spirv_CreatePipeFromPipeStorage_read<dataT >(&m_Storage);
121
- dataT TempData;
119
+ RPipeTy<_dataT > RPipe =
120
+ __spirv_CreatePipeFromPipeStorage_read<_dataT >(&m_Storage);
121
+ _dataT TempData;
122
122
Success = !static_cast <bool >(
123
123
__spirv_ReadPipe (RPipe, &TempData, m_Size, m_Alignment));
124
124
return TempData;
@@ -131,11 +131,11 @@ class kernel_readable_io_pipe {
131
131
// Blocking pipes
132
132
// Reading from pipe is lowered to SPIR-V instruction OpReadPipe via SPIR-V
133
133
// friendly LLVM IR.
134
- static dataT read () {
134
+ static _dataT read () {
135
135
#ifdef __SYCL_DEVICE_ONLY__
136
- RPipeTy<dataT > RPipe =
137
- __spirv_CreatePipeFromPipeStorage_read<dataT >(&m_Storage);
138
- dataT TempData;
136
+ RPipeTy<_dataT > RPipe =
137
+ __spirv_CreatePipeFromPipeStorage_read<_dataT >(&m_Storage);
138
+ _dataT TempData;
139
139
__spirv_ReadPipeBlockingINTEL (RPipe, &TempData, m_Size, m_Alignment);
140
140
return TempData;
141
141
#else
@@ -144,26 +144,26 @@ class kernel_readable_io_pipe {
144
144
}
145
145
146
146
private:
147
- static constexpr int32_t m_Size = sizeof (dataT );
148
- static constexpr int32_t m_Alignment = alignof (dataT );
149
- static constexpr int32_t m_Capacity = min_capacity ;
150
- static constexpr int32_t ID = name ::id;
147
+ static constexpr int32_t m_Size = sizeof (_dataT );
148
+ static constexpr int32_t m_Alignment = alignof (_dataT );
149
+ static constexpr int32_t m_Capacity = _min_capacity ;
150
+ static constexpr int32_t ID = _name ::id;
151
151
#ifdef __SYCL_DEVICE_ONLY__
152
152
static constexpr struct ConstantPipeStorage m_Storage
153
153
__attribute__ ((io_pipe_id(ID))) = {m_Size, m_Alignment, m_Capacity};
154
154
#endif // __SYCL_DEVICE_ONLY__
155
155
};
156
156
157
- template <class name , class dataT , size_t min_capacity = 0 >
157
+ template <class _name , class _dataT , size_t _min_capacity = 0 >
158
158
class kernel_writeable_io_pipe {
159
159
public:
160
160
// Non-blocking pipes
161
161
// Writing to pipe is lowered to SPIR-V instruction OpWritePipe via SPIR-V
162
162
// friendly LLVM IR.
163
- static void write (const dataT &Data, bool &Success) {
163
+ static void write (const _dataT &Data, bool &Success) {
164
164
#ifdef __SYCL_DEVICE_ONLY__
165
- WPipeTy<dataT > WPipe =
166
- __spirv_CreatePipeFromPipeStorage_write<dataT >(&m_Storage);
165
+ WPipeTy<_dataT > WPipe =
166
+ __spirv_CreatePipeFromPipeStorage_write<_dataT >(&m_Storage);
167
167
Success = !static_cast <bool >(
168
168
__spirv_WritePipe (WPipe, &Data, m_Size, m_Alignment));
169
169
#else
@@ -176,10 +176,10 @@ class kernel_writeable_io_pipe {
176
176
// Blocking pipes
177
177
// Writing to pipe is lowered to SPIR-V instruction OpWritePipe via SPIR-V
178
178
// friendly LLVM IR.
179
- static void write (const dataT &Data) {
179
+ static void write (const _dataT &Data) {
180
180
#ifdef __SYCL_DEVICE_ONLY__
181
- WPipeTy<dataT > WPipe =
182
- __spirv_CreatePipeFromPipeStorage_write<dataT >(&m_Storage);
181
+ WPipeTy<_dataT > WPipe =
182
+ __spirv_CreatePipeFromPipeStorage_write<_dataT >(&m_Storage);
183
183
__spirv_WritePipeBlockingINTEL (WPipe, &Data, m_Size, m_Alignment);
184
184
#else
185
185
(void )Data;
@@ -188,10 +188,10 @@ class kernel_writeable_io_pipe {
188
188
}
189
189
190
190
private:
191
- static constexpr int32_t m_Size = sizeof (dataT );
192
- static constexpr int32_t m_Alignment = alignof (dataT );
193
- static constexpr int32_t m_Capacity = min_capacity ;
194
- static constexpr int32_t ID = name ::id;
191
+ static constexpr int32_t m_Size = sizeof (_dataT );
192
+ static constexpr int32_t m_Alignment = alignof (_dataT );
193
+ static constexpr int32_t m_Capacity = _min_capacity ;
194
+ static constexpr int32_t ID = _name ::id;
195
195
#ifdef __SYCL_DEVICE_ONLY__
196
196
static constexpr struct ConstantPipeStorage m_Storage
197
197
__attribute__ ((io_pipe_id(ID))) = {m_Size, m_Alignment, m_Capacity};
0 commit comments