@@ -74,11 +74,11 @@ EXTERN void __tgt_unregister_lib(__tgt_bin_desc *Desc) {
74
74
75
75
template <typename TargetAsyncInfoTy>
76
76
static inline void
77
- targetDataMapper (ident_t *Loc, int64_t DeviceId, int32_t ArgNum,
78
- void **ArgsBase, void **Args , int64_t *ArgSizes ,
79
- int64_t *ArgTypes, map_var_info_t *ArgNames, void **ArgMappers,
80
- TargetDataFuncPtrTy TargetDataFunction ,
81
- const char *RegionTypeMsg, const char *RegionName) {
77
+ targetData (ident_t *Loc, int64_t DeviceId, int32_t ArgNum, void **ArgsBase ,
78
+ void **Args, int64_t *ArgSizes , int64_t *ArgTypes ,
79
+ map_var_info_t *ArgNames, void **ArgMappers,
80
+ TargetDataFuncPtrTy TargetDataFunction, const char *RegionTypeMsg ,
81
+ const char *RegionName) {
82
82
static_assert (std::is_convertible_v<TargetAsyncInfoTy, AsyncInfoTy>,
83
83
" TargetAsyncInfoTy must be convertible to AsyncInfoTy." );
84
84
@@ -113,7 +113,7 @@ targetDataMapper(ident_t *Loc, int64_t DeviceId, int32_t ArgNum,
113
113
TargetDataFunction == targetDataEnd ||
114
114
TargetDataFunction == targetDataUpdate) &&
115
115
" Encountered unexpected TargetDataFunction during "
116
- " execution of targetDataMapper " );
116
+ " execution of targetData " );
117
117
auto CallbackFunctions =
118
118
(TargetDataFunction == targetDataBegin)
119
119
? RegionInterface.getCallbacks <ompt_target_enter_data>()
@@ -144,10 +144,10 @@ EXTERN void __tgt_target_data_begin_mapper(ident_t *Loc, int64_t DeviceId,
144
144
map_var_info_t *ArgNames,
145
145
void **ArgMappers) {
146
146
147
- targetDataMapper <AsyncInfoTy>(Loc, DeviceId, ArgNum, ArgsBase, Args, ArgSizes,
148
- ArgTypes, ArgNames, ArgMappers, targetDataBegin,
149
- " Entering OpenMP data region with being_mapper" ,
150
- " begin" );
147
+ targetData <AsyncInfoTy>(Loc, DeviceId, ArgNum, ArgsBase, Args, ArgSizes,
148
+ ArgTypes, ArgNames, ArgMappers, targetDataBegin,
149
+ " Entering OpenMP data region with being_mapper" ,
150
+ " begin" );
151
151
}
152
152
153
153
EXTERN void __tgt_target_data_begin_nowait_mapper (
@@ -156,7 +156,7 @@ EXTERN void __tgt_target_data_begin_nowait_mapper(
156
156
void **ArgMappers, int32_t DepNum, void *DepList, int32_t NoAliasDepNum,
157
157
void *NoAliasDepList) {
158
158
159
- targetDataMapper <TaskAsyncInfoWrapperTy>(
159
+ targetData <TaskAsyncInfoWrapperTy>(
160
160
Loc, DeviceId, ArgNum, ArgsBase, Args, ArgSizes, ArgTypes, ArgNames,
161
161
ArgMappers, targetDataBegin,
162
162
" Entering OpenMP data region with being_nowait_mapper" , " begin" );
@@ -172,10 +172,9 @@ EXTERN void __tgt_target_data_end_mapper(ident_t *Loc, int64_t DeviceId,
172
172
map_var_info_t *ArgNames,
173
173
void **ArgMappers) {
174
174
175
- targetDataMapper<AsyncInfoTy>(Loc, DeviceId, ArgNum, ArgsBase, Args, ArgSizes,
176
- ArgTypes, ArgNames, ArgMappers, targetDataEnd,
177
- " Exiting OpenMP data region with end_mapper" ,
178
- " end" );
175
+ targetData<AsyncInfoTy>(Loc, DeviceId, ArgNum, ArgsBase, Args, ArgSizes,
176
+ ArgTypes, ArgNames, ArgMappers, targetDataEnd,
177
+ " Exiting OpenMP data region with end_mapper" , " end" );
179
178
}
180
179
181
180
EXTERN void __tgt_target_data_end_nowait_mapper (
@@ -184,7 +183,7 @@ EXTERN void __tgt_target_data_end_nowait_mapper(
184
183
void **ArgMappers, int32_t DepNum, void *DepList, int32_t NoAliasDepNum,
185
184
void *NoAliasDepList) {
186
185
187
- targetDataMapper <TaskAsyncInfoWrapperTy>(
186
+ targetData <TaskAsyncInfoWrapperTy>(
188
187
Loc, DeviceId, ArgNum, ArgsBase, Args, ArgSizes, ArgTypes, ArgNames,
189
188
ArgMappers, targetDataEnd,
190
189
" Exiting OpenMP data region with end_nowait_mapper" , " end" );
@@ -197,7 +196,7 @@ EXTERN void __tgt_target_data_update_mapper(ident_t *Loc, int64_t DeviceId,
197
196
map_var_info_t *ArgNames,
198
197
void **ArgMappers) {
199
198
200
- targetDataMapper <AsyncInfoTy>(
199
+ targetData <AsyncInfoTy>(
201
200
Loc, DeviceId, ArgNum, ArgsBase, Args, ArgSizes, ArgTypes, ArgNames,
202
201
ArgMappers, targetDataUpdate,
203
202
" Updating data within the OpenMP data region with update_mapper" ,
@@ -209,7 +208,7 @@ EXTERN void __tgt_target_data_update_nowait_mapper(
209
208
void **Args, int64_t *ArgSizes, int64_t *ArgTypes, map_var_info_t *ArgNames,
210
209
void **ArgMappers, int32_t DepNum, void *DepList, int32_t NoAliasDepNum,
211
210
void *NoAliasDepList) {
212
- targetDataMapper <TaskAsyncInfoWrapperTy>(
211
+ targetData <TaskAsyncInfoWrapperTy>(
213
212
Loc, DeviceId, ArgNum, ArgsBase, Args, ArgSizes, ArgTypes, ArgNames,
214
213
ArgMappers, targetDataUpdate,
215
214
" Updating data within the OpenMP data region with update_nowait_mapper" ,
0 commit comments