@@ -146,7 +146,7 @@ void check_ast()
146
146
[[intel::force_pow2_depth (1 )]] int var_force_p2d;
147
147
[[intel::force_pow2_depth (1 )]] const int const_force_p2d[64 ] = {0 , 1 };
148
148
149
- // Checking of duplicate argument values
149
+ // Checking of duplicate argument values.
150
150
// CHECK: VarDecl{{.*}}var_max_replicates
151
151
// CHECK: IntelFPGAMaxReplicatesAttr
152
152
// CHECK-NEXT: ConstantExpr
@@ -159,7 +159,7 @@ void check_ast()
159
159
[[intel::max_replicates (12 )]]
160
160
[[intel::max_replicates (12 )]] int var_max_replicates; // OK
161
161
162
- // Checking of duplicate argument values
162
+ // Checking of duplicate argument values.
163
163
// CHECK: VarDecl{{.*}}var_private_copies
164
164
// CHECK: IntelFPGAMemoryAttr{{.*}}Implicit
165
165
// CHECK: IntelFPGAPrivateCopiesAttr
@@ -345,12 +345,7 @@ void diagnostics()
345
345
// expected-note@+1 {{did you mean to use 'intel::max_replicates' instead?}}
346
346
[[intelfpga::max_replicates (2 )]] unsigned int max_replicates[64 ];
347
347
348
- // Checking of different argument values
349
- // CHECK: VarDecl{{.*}}max_repl
350
- // CHECK: IntelFPGAMaxReplicatesAttr
351
- // CHECK-NEXT: ConstantExpr
352
- // CHECK-NEXT: value:{{.*}}8
353
- // CHECK-NEXT: IntegerLiteral{{.*}}8{{$}}
348
+ // Checking of different argument values.
354
349
// expected-warning@+2{{attribute 'max_replicates' is already applied with different arguments}}
355
350
[[intel::max_replicates (8 )]] // expected-note{{previous attribute is here}}
356
351
[[intel::max_replicates (16 )]] unsigned int max_repl[64 ];
@@ -360,7 +355,7 @@ void diagnostics()
360
355
// expected-error@+1{{'max_replicates' attribute requires a positive integral compile time constant expression}}
361
356
[[intel::max_replicates (-1 )]] unsigned int maxrepl_negative[64 ];
362
357
363
- // Chcking of incompatible attributes
358
+ // Checking of incompatible attributes.
364
359
// expected-error@+3{{'max_replicates' and 'fpga_register' attributes are not compatible}}
365
360
[[intel::fpga_register]]
366
361
// expected-note@-1 {{conflicting attribute is here}}
@@ -424,19 +419,14 @@ void diagnostics()
424
419
// expected-note@+1 {{did you mean to use 'intel::private_copies' instead?}}
425
420
[[intelfpga::private_copies (8 )]] unsigned int private_copies[64 ];
426
421
427
- // Checking of incompatible attributes
422
+ // Checking of incompatible attributes.
428
423
// expected-error@+2{{attributes are not compatible}}
429
424
[[intel::private_copies (16 )]]
430
425
[[intel::fpga_register]]
431
426
// expected-note@-2 {{conflicting attribute is here}}
432
427
unsigned int pc_reg[64 ];
433
428
434
- // Checking of different argument values
435
- // CHECK: VarDecl{{.*}}pc_pc
436
- // CHECK: IntelFPGAPrivateCopiesAttr
437
- // CHECK-NEXT: ConstantExpr
438
- // CHECK-NEXT: value:{{.*}}8
439
- // CHECK-NEXT: IntegerLiteral{{.*}}8{{$}}
429
+ // Checking of different argument values.
440
430
// expected-warning@+2{{attribute 'private_copies' is already applied with different arguments}}
441
431
[[intel::private_copies (8 )]] // expected-note{{previous attribute is here}}
442
432
[[intel::private_copies (16 )]] unsigned int pc_pc[64 ];
@@ -841,12 +831,12 @@ void check_template_parameters() {
841
831
[[intel::max_replicates (C)]]
842
832
unsigned int max_replicates_duplicate;
843
833
844
- // Test that checks template instantiations for different arg values
834
+ // Test that checks template instantiations for different arg values.
845
835
[[intel::max_replicates (4 )]] // expected-note {{previous attribute is here}}
846
836
// expected-warning@+1 {{attribute 'max_replicates' is already applied with different arguments}}
847
837
[[intel::max_replicates (C)]] unsigned int max_repl_duplicate[64 ];
848
838
849
- // Test that checks template instantiations for different arg values
839
+ // Test that checks template instantiations for different arg values.
850
840
[[intel::private_copies (4 )]] // expected-note {{previous attribute is here}}
851
841
// expected-warning@+1 {{attribute 'private_copies' is already applied with different arguments}}
852
842
[[intel::private_copies (C)]] unsigned int var_private_copies;
0 commit comments