@@ -121,7 +121,7 @@ func @compute3(%a: memref<10x10xf32>, %b: memref<10x10xf32>, %c: memref<10xf32>,
121
121
%numGangs = constant 10 : i64
122
122
%numWorkers = constant 10 : i64
123
123
124
- acc.data present (%a: memref <10 x10 xf32 >, %b: memref <10 x10 xf32 >, %c: memref <10 xf32 >, %d: memref <10 xf32 >) {
124
+ acc.data present (%a , %b , %c , %d : memref <10 x10 xf32 >, memref <10 x10 xf32 >, memref <10 xf32 >, memref <10 xf32 >) {
125
125
acc.parallel num_gangs (%numGangs: i64 ) num_workers (%numWorkers: i64 ) private (%c : memref <10 xf32 >) {
126
126
acc.loop gang {
127
127
scf.for %x = %lb to %c10 step %st {
@@ -163,7 +163,7 @@ func @compute3(%a: memref<10x10xf32>, %b: memref<10x10xf32>, %c: memref<10xf32>,
163
163
// CHECK-NEXT: [[C10:%.*]] = constant 10 : index
164
164
// CHECK-NEXT: [[NUMGANG:%.*]] = constant 10 : i64
165
165
// CHECK-NEXT: [[NUMWORKERS:%.*]] = constant 10 : i64
166
- // CHECK-NEXT: acc.data present(%{{.*}}: memref<10x10xf32> , %{{.*}}: memref<10x10xf32> , %{{.*}}: memref<10xf32> , %{{.*}}: memref<10xf32>) {
166
+ // CHECK-NEXT: acc.data present(%{{.*}}, %{{.*}}, %{{.*}}, %{{.*}} : memref<10x10xf32>, memref<10x10xf32>, memref<10xf32>, memref<10xf32>) {
167
167
// CHECK-NEXT: acc.parallel num_gangs([[NUMGANG]]: i64) num_workers([[NUMWORKERS]]: i64) private([[ARG2]]: memref<10xf32>) {
168
168
// CHECK-NEXT: acc.loop gang {
169
169
// CHECK-NEXT: scf.for %{{.*}} = [[C0]] to [[C10]] step [[C1]] {
@@ -454,51 +454,51 @@ func @testparallelop(%a: memref<10xf32>, %b: memref<10xf32>, %c: memref<10x10xf3
454
454
// -----
455
455
456
456
func @testdataop (%a: memref <10 xf32 >, %b: memref <10 xf32 >, %c: memref <10 x10 xf32 >) -> () {
457
- acc.data present (%a: memref <10 xf32 >, %b: memref <10 xf32 >, %c: memref <10 x10 xf32 >) {
457
+ acc.data present (%a , %b , %c : memref <10 xf32 >, memref <10 xf32 >, memref <10 x10 xf32 >) {
458
458
}
459
- acc.data copy (%a: memref <10 xf32 >, %b: memref <10 xf32 >, %c: memref <10 x10 xf32 >) {
459
+ acc.data copy (%a , %b , %c : memref <10 xf32 >, memref <10 xf32 >, memref <10 x10 xf32 >) {
460
460
}
461
- acc.data copyin (%a: memref <10 xf32 >, %b: memref <10 xf32 >, %c: memref <10 x10 xf32 >) {
461
+ acc.data copyin (%a , %b , %c : memref <10 xf32 >, memref <10 xf32 >, memref <10 x10 xf32 >) {
462
462
}
463
- acc.data copyin_readonly (%a: memref <10 xf32 >, %b: memref <10 xf32 >, %c: memref <10 x10 xf32 >) {
463
+ acc.data copyin_readonly (%a , %b , %c : memref <10 xf32 >, memref <10 xf32 >, memref <10 x10 xf32 >) {
464
464
}
465
- acc.data copyout (%a: memref <10 xf32 >, %b: memref <10 xf32 >, %c: memref <10 x10 xf32 >) {
465
+ acc.data copyout (%a , %b , %c : memref <10 xf32 >, memref <10 xf32 >, memref <10 x10 xf32 >) {
466
466
}
467
- acc.data copyout_zero (%a: memref <10 xf32 >, %b: memref <10 xf32 >, %c: memref <10 x10 xf32 >) {
467
+ acc.data copyout_zero (%a , %b , %c : memref <10 xf32 >, memref <10 xf32 >, memref <10 x10 xf32 >) {
468
468
}
469
- acc.data create (%a: memref <10 xf32 >, %b: memref <10 xf32 >, %c: memref <10 x10 xf32 >) {
469
+ acc.data create (%a , %b , %c : memref <10 xf32 >, memref <10 xf32 >, memref <10 x10 xf32 >) {
470
470
}
471
- acc.data create_zero (%a: memref <10 xf32 >, %b: memref <10 xf32 >, %c: memref <10 x10 xf32 >) {
471
+ acc.data create_zero (%a , %b , %c : memref <10 xf32 >, memref <10 xf32 >, memref <10 x10 xf32 >) {
472
472
}
473
- acc.data no_create (%a: memref <10 xf32 >, %b: memref <10 xf32 >, %c: memref <10 x10 xf32 >) {
473
+ acc.data no_create (%a , %b , %c : memref <10 xf32 >, memref <10 xf32 >, memref <10 x10 xf32 >) {
474
474
}
475
- acc.data attach (%a: memref <10 xf32 >, %b: memref <10 xf32 >, %c: memref <10 x10 xf32 >) {
475
+ acc.data attach (%a , %b , %c : memref <10 xf32 >, memref <10 xf32 >, memref <10 x10 xf32 >) {
476
476
}
477
- acc.data present ( %a : memref <10 xf32 >) copyin ( %b : memref <10 x f32 >) copyout ( %c : memref <10 x 10 x f32 >) {
477
+ acc.data copyin ( %b : memref <10 xf32 >) copyout ( %c : memref <10 x 10 x f32 >) present ( %a : memref <10 x f32 >) {
478
478
}
479
479
return
480
480
}
481
481
482
482
// CHECK: func @testdataop([[ARGA:%.*]]: memref<10xf32>, [[ARGB:%.*]]: memref<10xf32>, [[ARGC:%.*]]: memref<10x10xf32>) {
483
- // CHECK: acc.data present([[ARGA]]: memref<10xf32> , [[ARGB]]: memref<10xf32> , [[ARGC]]: memref<10x10xf32>) {
483
+ // CHECK: acc.data present([[ARGA]], [[ARGB]], [[ARGC]] : memref<10xf32>, memref<10xf32>, memref<10x10xf32>) {
484
484
// CHECK-NEXT: }
485
- // CHECK: acc.data copy([[ARGA]]: memref<10xf32> , [[ARGB]]: memref<10xf32> , [[ARGC]]: memref<10x10xf32>) {
485
+ // CHECK: acc.data copy([[ARGA]], [[ARGB]], [[ARGC]] : memref<10xf32>, memref<10xf32>, memref<10x10xf32>) {
486
486
// CHECK-NEXT: }
487
- // CHECK: acc.data copyin([[ARGA]]: memref<10xf32> , [[ARGB]]: memref<10xf32> , [[ARGC]]: memref<10x10xf32>) {
487
+ // CHECK: acc.data copyin([[ARGA]], [[ARGB]], [[ARGC]] : memref<10xf32>, memref<10xf32>, memref<10x10xf32>) {
488
488
// CHECK-NEXT: }
489
- // CHECK: acc.data copyin_readonly([[ARGA]]: memref<10xf32> , [[ARGB]]: memref<10xf32> , [[ARGC]]: memref<10x10xf32>) {
489
+ // CHECK: acc.data copyin_readonly([[ARGA]], [[ARGB]], [[ARGC]] : memref<10xf32>, memref<10xf32>, memref<10x10xf32>) {
490
490
// CHECK-NEXT: }
491
- // CHECK: acc.data copyout([[ARGA]]: memref<10xf32> , [[ARGB]]: memref<10xf32> , [[ARGC]]: memref<10x10xf32>) {
491
+ // CHECK: acc.data copyout([[ARGA]], [[ARGB]], [[ARGC]] : memref<10xf32>, memref<10xf32>, memref<10x10xf32>) {
492
492
// CHECK-NEXT: }
493
- // CHECK: acc.data copyout_zero([[ARGA]]: memref<10xf32> , [[ARGB]]: memref<10xf32> , [[ARGC]]: memref<10x10xf32>) {
493
+ // CHECK: acc.data copyout_zero([[ARGA]], [[ARGB]], [[ARGC]] : memref<10xf32>, memref<10xf32>, memref<10x10xf32>) {
494
494
// CHECK-NEXT: }
495
- // CHECK: acc.data create([[ARGA]]: memref<10xf32> , [[ARGB]]: memref<10xf32> , [[ARGC]]: memref<10x10xf32>) {
495
+ // CHECK: acc.data create([[ARGA]], [[ARGB]], [[ARGC]] : memref<10xf32>, memref<10xf32>, memref<10x10xf32>) {
496
496
// CHECK-NEXT: }
497
- // CHECK: acc.data create_zero([[ARGA]]: memref<10xf32> , [[ARGB]]: memref<10xf32> , [[ARGC]]: memref<10x10xf32>) {
497
+ // CHECK: acc.data create_zero([[ARGA]], [[ARGB]], [[ARGC]] : memref<10xf32>, memref<10xf32>, memref<10x10xf32>) {
498
498
// CHECK-NEXT: }
499
- // CHECK: acc.data no_create([[ARGA]]: memref<10xf32> , [[ARGB]]: memref<10xf32> , [[ARGC]]: memref<10x10xf32>) {
499
+ // CHECK: acc.data no_create([[ARGA]], [[ARGB]], [[ARGC]] : memref<10xf32>, memref<10xf32>, memref<10x10xf32>) {
500
500
// CHECK-NEXT: }
501
- // CHECK: acc.data attach([[ARGA]]: memref<10xf32> , [[ARGB]]: memref<10xf32> , [[ARGC]]: memref<10x10xf32>) {
501
+ // CHECK: acc.data attach([[ARGA]], [[ARGB]], [[ARGC]] : memref<10xf32>, memref<10xf32>, memref<10x10xf32>) {
502
502
// CHECK-NEXT: }
503
- // CHECK: acc.data present ([[ARGA]] : memref<10xf32>) copyin ([[ARGB]] : memref<10xf32 >) copyout ([[ARGC]] : memref<10x10xf32 >) {
503
+ // CHECK: acc.data copyin ([[ARGB]] : memref<10xf32>) copyout ([[ARGC]] : memref<10x10xf32 >) present ([[ARGA]] : memref<10xf32 >) {
504
504
// CHECK-NEXT: }
0 commit comments