@@ -79,18 +79,18 @@ void foo1()
79
79
80
80
// CHECK: VarDecl{{.*}}v_seven
81
81
// CHECK: IntelFPGAMemoryAttr{{.*}}Implicit
82
- // CHECK: IntelFPGAMaxConcurrencyAttr
82
+ // CHECK: IntelFPGAMaxPrivateCopiesAttr
83
83
// CHECK-NEXT: ConstantExpr
84
84
// CHECK-NEXT: IntegerLiteral{{.*}}4{{$}}
85
- __attribute__ ((max_concurrency (4 )))
85
+ __attribute__ ((max_private_copies (4 )))
86
86
unsigned int v_seven[64 ];
87
87
88
88
// CHECK: VarDecl{{.*}}v_seven2
89
89
// CHECK: IntelFPGAMemoryAttr{{.*}}Implicit
90
- // CHECK: IntelFPGAMaxConcurrencyAttr
90
+ // CHECK: IntelFPGAMaxPrivateCopiesAttr
91
91
// CHECK-NEXT: ConstantExpr
92
92
// CHECK-NEXT: IntegerLiteral{{.*}}8{{$}}
93
- [[intelfpga::max_concurrency (8 )]] unsigned int v_seven2[64 ];
93
+ [[intelfpga::max_private_copies (8 )]] unsigned int v_seven2[64 ];
94
94
95
95
// CHECK: VarDecl{{.*}}v_fourteen
96
96
// CHECK: IntelFPGADoublePumpAttr
@@ -179,7 +179,7 @@ void foo1()
179
179
180
180
// expected-error@+2{{attributes are not compatible}}
181
181
__attribute__ ((__register__))
182
- __attribute__ ((__max_concurrency__ (16 )))
182
+ __attribute__ ((__max_private_copies__ (16 )))
183
183
// expected-note@-2 {{conflicting attribute is here}}
184
184
unsigned int reg_six_two[64 ];
185
185
@@ -241,37 +241,37 @@ void foo1()
241
241
__attribute__ ((__bankwidth__ (0 )))
242
242
unsigned int bw_seven[64 ];
243
243
244
- // max_concurrency
244
+ // max_private_copies_
245
245
// expected-error@+2{{attributes are not compatible}}
246
- __attribute__ ((__max_concurrency__ (16 )))
246
+ __attribute__ ((__max_private_copies__ (16 )))
247
247
__attribute__ ((__register__))
248
248
// expected-note@-2 {{conflicting attribute is here}}
249
249
unsigned int mc_one[64 ];
250
250
251
251
// CHECK: VarDecl{{.*}}mc_two
252
- // CHECK: IntelFPGAMaxConcurrencyAttr
252
+ // CHECK: IntelFPGAMaxPrivateCopiesAttr
253
253
// CHECK-NEXT: ConstantExpr
254
254
// CHECK-NEXT: IntegerLiteral{{.*}}8{{$}}
255
- // CHECK: IntelFPGAMaxConcurrencyAttr
255
+ // CHECK: IntelFPGAMaxPrivateCopiesAttr
256
256
// CHECK-NEXT: ConstantExpr
257
257
// CHECK-NEXT: IntegerLiteral{{.*}}16{{$}}
258
258
// expected-warning@+2{{is already applied}}
259
- __attribute__ ((__max_concurrency__ (8 )))
260
- __attribute__ ((__max_concurrency__ (16 )))
259
+ __attribute__ ((__max_private_copies__ (8 )))
260
+ __attribute__ ((__max_private_copies__ (16 )))
261
261
unsigned int mc_two[64 ];
262
262
263
- // expected-error@+1{{'max_concurrency ' attribute requires integer constant between 0 and 1048576 inclusive}}
264
- __attribute__ ((__max_concurrency__ (-4 )))
263
+ // expected-error@+1{{'max_private_copies ' attribute requires integer constant between 0 and 1048576 inclusive}}
264
+ __attribute__ ((__max_private_copies__ (-4 )))
265
265
unsigned int mc_four[64 ];
266
266
267
- int i_max_concurrency = 32 ; // expected-note {{declared here}}
267
+ int i_max_private_copies = 32 ; // expected-note {{declared here}}
268
268
// expected-error@+1{{expression is not an integral constant expression}}
269
- __attribute__ ((__max_concurrency__ (i_max_concurrency )))
270
- // expected-note@-1{{read of non-const variable 'i_max_concurrency ' is not allowed in a constant expression}}
269
+ __attribute__ ((__max_private_copies__ (i_max_private_copies )))
270
+ // expected-note@-1{{read of non-const variable 'i_max_private_copies ' is not allowed in a constant expression}}
271
271
unsigned int mc_five[64 ];
272
272
273
- // expected-error@+1{{'__max_concurrency__ ' attribute takes one argument}}
274
- __attribute__ ((__max_concurrency__ (4 ,8 )))
273
+ // expected-error@+1{{'__max_private_copies__ ' attribute takes one argument}}
274
+ __attribute__ ((__max_private_copies__ (4 ,8 )))
275
275
unsigned int mc_six[64 ];
276
276
277
277
// numbanks
@@ -317,17 +317,17 @@ void foo1()
317
317
}
318
318
319
319
// expected-error@+1{{attribute only applies to local non-const variables and non-static data members}}
320
- __attribute__ ((__max_concurrency__ (8 )))
320
+ __attribute__ ((__max_private_copies__ (8 )))
321
321
__constant unsigned int ext_two[64] = { 1 , 2 , 3 };
322
322
323
323
void other2 ()
324
324
{
325
325
// expected-error@+1{{attribute only applies to local non-const variables and non-static data members}}
326
- __attribute__ ((__max_concurrency__ (8 ))) const int ext_six[64 ] = { 0 , 1 };
326
+ __attribute__ ((__max_private_copies__ (8 ))) const int ext_six[64 ] = { 0 , 1 };
327
327
}
328
328
329
329
// expected-error@+1{{attribute only applies to local non-const variables and non-static data members}}
330
- void other3 (__attribute__((__max_concurrency__ (8 ))) int pfoo) {}
330
+ void other3 (__attribute__((__max_private_copies__ (8 ))) int pfoo) {}
331
331
332
332
struct foo {
333
333
// CHECK: FieldDecl{{.*}}v_one
@@ -378,10 +378,10 @@ struct foo {
378
378
379
379
// CHECK: FieldDecl{{.*}}v_seven
380
380
// CHECK: IntelFPGAMemoryAttr{{.*}}Implicit
381
- // CHECK: IntelFPGAMaxConcurrencyAttr
381
+ // CHECK: IntelFPGAMaxPrivateCopiesAttr
382
382
// CHECK-NEXT: ConstantExpr
383
383
// CHECK-NEXT: IntegerLiteral{{.*}}4{{$}}
384
- __attribute__ ((__max_concurrency__ (4 ))) unsigned int v_seven[64 ];
384
+ __attribute__ ((__max_private_copies__ (4 ))) unsigned int v_seven[64 ];
385
385
};
386
386
387
387
template <typename name, typename Func>
0 commit comments