@@ -30,7 +30,7 @@ subroutine omp_target_enter_depend
30
30
! $omp end task
31
31
! CHECK: %[[BOUNDS:.*]] = omp.map.bounds lower_bound({{.*}}) upper_bound({{.*}}) extent({{.*}}) stride({{.*}}) start_idx({{.*}})
32
32
! CHECK: %[[MAP:.*]] = omp.map.info var_ptr({{.*}}) map_clauses(to) capture(ByRef) bounds(%[[BOUNDS]]) -> !fir.ref<!fir.array<1024xi32>> {name = "a"}
33
- ! CHECK: omp.target_enter_data map_entries( %[[MAP]] : !fir.ref<!fir.array<1024xi32>>) depend(taskdependin -> %[[A]]#1 : !fir.ref<!fir.array<1024xi32>>)
33
+ ! CHECK: omp.target_enter_data depend(taskdependin -> %[[A]]#1 : !fir.ref<!fir.array<1024xi32>>) map_entries( %[[MAP]] : !fir.ref<!fir.array<1024xi32>>)
34
34
! $omp target enter data map(to: a) depend(in: a)
35
35
return
36
36
end subroutine omp_target_enter_depend
@@ -84,7 +84,7 @@ subroutine omp_target_enter_if
84
84
! CHECK: %[[VAL_5:.*]] = arith.cmpi slt, %[[VAL_3]], %[[VAL_4]] : i32
85
85
! CHECK: %[[BOUNDS:.*]] = omp.map.bounds lower_bound({{.*}}) upper_bound({{.*}}) extent({{.*}}) stride({{.*}}) start_idx({{.*}})
86
86
! CHECK: %[[MAP:.*]] = omp.map.info var_ptr({{.*}}) map_clauses(to) capture(ByRef) bounds(%[[BOUNDS]]) -> !fir.ref<!fir.array<1024xi32>> {name = "a"}
87
- ! CHECK: omp.target_enter_data if(%[[VAL_5]] : i1 ) map_entries(%[[MAP]] : !fir.ref<!fir.array<1024xi32>>)
87
+ ! CHECK: omp.target_enter_data if(%[[VAL_5]]) map_entries(%[[MAP]] : !fir.ref<!fir.array<1024xi32>>)
88
88
! $omp target enter data if(i<10) map(to: a)
89
89
end subroutine omp_target_enter_if
90
90
@@ -169,7 +169,7 @@ subroutine omp_target_exit_depend
169
169
! $omp end task
170
170
! CHECK: %[[BOUNDS:.*]] = omp.map.bounds lower_bound({{.*}}) upper_bound({{.*}}) extent({{.*}}) stride({{.*}}) start_idx({{.*}})
171
171
! CHECK: %[[MAP:.*]] = omp.map.info var_ptr({{.*}}) map_clauses(from) capture(ByRef) bounds(%[[BOUNDS]]) -> !fir.ref<!fir.array<1024xi32>> {name = "a"}
172
- ! CHECK: omp.target_exit_data map_entries( %[[MAP]] : !fir.ref<!fir.array<1024xi32>>) depend(taskdependout -> %[[A]]#1 : !fir.ref<!fir.array<1024xi32>>)
172
+ ! CHECK: omp.target_exit_data depend(taskdependout -> %[[A]]#1 : !fir.ref<!fir.array<1024xi32>>) map_entries( %[[MAP]] : !fir.ref<!fir.array<1024xi32>>)
173
173
! $omp target exit data map(from: a) depend(out: a)
174
174
end subroutine omp_target_exit_depend
175
175
@@ -190,7 +190,7 @@ subroutine omp_target_update_depend
190
190
191
191
! CHECK: %[[BOUNDS:.*]] = omp.map.bounds
192
192
! CHECK: %[[MAP:.*]] = omp.map.info var_ptr(%[[A]]#0 : !fir.ref<!fir.array<1024xi32>>, !fir.array<1024xi32>) map_clauses(to) capture(ByRef) bounds(%[[BOUNDS]]) -> !fir.ref<!fir.array<1024xi32>> {name = "a"}
193
- ! CHECK: omp.target_update motion_entries( %[[MAP]] : !fir.ref<!fir.array<1024xi32>>) depend(taskdependin -> %[[A]]#1 : !fir.ref<!fir.array<1024xi32>>)
193
+ ! CHECK: omp.target_update depend(taskdependin -> %[[A]]#1 : !fir.ref<!fir.array<1024xi32>>) map_entries( %[[MAP]] : !fir.ref<!fir.array<1024xi32>>)
194
194
! $omp target update to(a) depend(in:a)
195
195
end subroutine omp_target_update_depend
196
196
@@ -209,7 +209,7 @@ subroutine omp_target_update_to
209
209
! CHECK-SAME: map_clauses(to) capture(ByRef)
210
210
! CHECK-SAME: bounds(%[[BOUNDS]]) -> !fir.ref<!fir.array<1024xi32>> {name = "a"}
211
211
212
- ! CHECK: omp.target_update motion_entries (%[[TO_MAP]] : !fir.ref<!fir.array<1024xi32>>)
212
+ ! CHECK: omp.target_update map_entries (%[[TO_MAP]] : !fir.ref<!fir.array<1024xi32>>)
213
213
! $omp target update to(a)
214
214
end subroutine omp_target_update_to
215
215
@@ -228,7 +228,7 @@ subroutine omp_target_update_from
228
228
! CHECK-SAME: map_clauses(from) capture(ByRef)
229
229
! CHECK-SAME: bounds(%[[BOUNDS]]) -> !fir.ref<!fir.array<1024xi32>> {name = "a"}
230
230
231
- ! CHECK: omp.target_update motion_entries (%[[FROM_MAP]] : !fir.ref<!fir.array<1024xi32>>)
231
+ ! CHECK: omp.target_update map_entries (%[[FROM_MAP]] : !fir.ref<!fir.array<1024xi32>>)
232
232
! $omp target update from(a)
233
233
end subroutine omp_target_update_from
234
234
@@ -245,7 +245,7 @@ subroutine omp_target_update_if
245
245
! CHECK-DAG: %[[BOUNDS:.*]] = omp.map.bounds
246
246
! CHECK-DAG: %[[COND:.*]] = fir.convert %{{.*}} : (!fir.logical<4>) -> i1
247
247
248
- ! CHECK: omp.target_update if(%[[COND]] : i1) motion_entries
248
+ ! CHECK: omp.target_update if(%[[COND]]) map_entries
249
249
! $omp target update from(a) if(i)
250
250
end subroutine omp_target_update_if
251
251
@@ -262,7 +262,7 @@ subroutine omp_target_update_device
262
262
! CHECK-DAG: %[[BOUNDS:.*]] = omp.map.bounds
263
263
! CHECK-DAG: %[[DEVICE:.*]] = arith.constant 1 : i32
264
264
265
- ! CHECK: omp.target_update device(%[[DEVICE]] : i32) motion_entries
265
+ ! CHECK: omp.target_update device(%[[DEVICE]] : i32) map_entries
266
266
! $omp target update from(a) device(1)
267
267
end subroutine omp_target_update_device
268
268
@@ -278,7 +278,7 @@ subroutine omp_target_update_nowait
278
278
! CHECK-DAG: %[[A_DECL:.*]]:2 = hlfir.declare %{{.*}}(%{{.*}})
279
279
! CHECK-DAG: %[[BOUNDS:.*]] = omp.map.bounds
280
280
281
- ! CHECK: omp.target_update nowait motion_entries
281
+ ! CHECK: omp.target_update nowait map_entries
282
282
! $omp target update from(a) nowait
283
283
end subroutine omp_target_update_nowait
284
284
@@ -373,7 +373,7 @@ subroutine omp_target_depend
373
373
! CHECK: %[[UBOUND_A:.*]] = arith.subi %c1024, %c1 : index
374
374
! CHECK: %[[BOUNDS_A:.*]] = omp.map.bounds lower_bound(%[[LBOUND_A]] : index) upper_bound(%[[UBOUND_A]] : index) extent(%[[EXTENT_A]] : index) stride(%[[STRIDE_A]] : index) start_idx(%[[STRIDE_A]] : index)
375
375
! CHECK: %[[MAP_A:.*]] = omp.map.info var_ptr(%[[A]]#0 : !fir.ref<!fir.array<1024xi32>>, !fir.array<1024xi32>) map_clauses(tofrom) capture(ByRef) bounds(%[[BOUNDS_A]]) -> !fir.ref<!fir.array<1024xi32>> {name = "a"}
376
- ! CHECK: omp.target map_entries(%[[MAP_A]] -> %[[BB0_ARG:.*]] : !fir.ref<!fir.array<1024xi32>>) depend(taskdependin -> %[[A]]#1 : !fir.ref<!fir.array<1024xi32>>) {
376
+ ! CHECK: omp.target depend(taskdependin -> %[[A]]#1 : !fir.ref<!fir.array<1024xi32>>) map_entries(%[[MAP_A]] -> %[[BB0_ARG:.*]] : !fir.ref<!fir.array<1024xi32>>) {
377
377
! $omp target map(tofrom: a) depend(in: a)
378
378
a(1 ) = 10
379
379
! CHECK: omp.terminator
@@ -512,7 +512,7 @@ subroutine omp_target_device_ptr
512
512
type (c_ptr) :: a
513
513
integer , target :: b
514
514
! CHECK: %[[MAP:.*]] = omp.map.info var_ptr({{.*}}) map_clauses(tofrom) capture(ByRef) -> {{.*}} {name = "a"}
515
- ! CHECK: omp.target_data map_entries(%[[MAP]]{{.*}}
515
+ ! CHECK: omp.target_data use_device_ptr({{.*}}) map_entries(%[[MAP]]{{.*}}
516
516
! $omp target data map(tofrom: a) use_device_ptr(a)
517
517
! CHECK: ^bb0(%[[VAL_1:.*]]: !fir.ref<!fir.type<_QM__fortran_builtinsT__builtin_c_ptr{__address:i64}>>):
518
518
! CHECK: {{.*}} = fir.coordinate_of %[[VAL_1:.*]], {{.*}} : (!fir.ref<!fir.type<_QM__fortran_builtinsT__builtin_c_ptr{__address:i64}>>, !fir.field) -> !fir.ref<i64>
@@ -533,7 +533,7 @@ subroutine omp_target_device_addr
533
533
! CHECK: %[[VAL_0_DECL:.*]]:2 = hlfir.declare %0 {fortran_attrs = #fir.var_attrs<pointer>, uniq_name = "_QFomp_target_device_addrEa"} : (!fir.ref<!fir.box<!fir.ptr<i32>>>) -> (!fir.ref<!fir.box<!fir.ptr<i32>>>, !fir.ref<!fir.box<!fir.ptr<i32>>>)
534
534
! CHECK: %[[MAP_MEMBERS:.*]] = omp.map.info var_ptr({{.*}} : !fir.ref<!fir.box<!fir.ptr<i32>>>, i32) var_ptr_ptr({{.*}} : !fir.llvm_ptr<!fir.ref<i32>>) map_clauses(tofrom) capture(ByRef) -> !fir.llvm_ptr<!fir.ref<i32>> {name = ""}
535
535
! CHECK: %[[MAP:.*]] = omp.map.info var_ptr({{.*}} : !fir.ref<!fir.box<!fir.ptr<i32>>>, !fir.box<!fir.ptr<i32>>) map_clauses(tofrom) capture(ByRef) members(%[[MAP_MEMBERS]] : [0] : !fir.llvm_ptr<!fir.ref<i32>>) -> !fir.ref<!fir.box<!fir.ptr<i32>>> {name = "a"}
536
- ! CHECK: omp.target_data map_entries(%[[MAP_MEMBERS]], %[[MAP]] : {{.*}}) use_device_addr(%[[VAL_0_DECL]]#1 : !fir.ref<!fir.box<!fir.ptr<i32>>>) {
536
+ ! CHECK: omp.target_data use_device_addr(%[[VAL_0_DECL]]#1 : !fir.ref<!fir.box<!fir.ptr<i32>>>) map_entries(%[[MAP_MEMBERS]], %[[MAP]] : {{.*}} ) {
537
537
! $omp target data map(tofrom: a) use_device_addr(a)
538
538
! CHECK: ^bb0(%[[VAL_1:.*]]: !fir.ref<!fir.box<!fir.ptr<i32>>>):
539
539
! CHECK: %[[VAL_1_DECL:.*]]:2 = hlfir.declare %[[VAL_1]] {fortran_attrs = #fir.var_attrs<pointer>, uniq_name = "_QFomp_target_device_addrEa"} : (!fir.ref<!fir.box<!fir.ptr<i32>>>) -> (!fir.ref<!fir.box<!fir.ptr<i32>>>, !fir.ref<!fir.box<!fir.ptr<i32>>>)
0 commit comments