Skip to content

Commit 2c3861b

Browse files
committed
Align with cd2f65b - correct some confused diagnostic terminology
1 parent 016cb2a commit 2c3861b

4 files changed

+6
-6
lines changed

clang/test/SemaSYCL/intel-fpga-no-global-work-offset.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ int main() {
5252

5353
h.single_task<class test_kernel7>(
5454
[]() [[intel::no_global_work_offset(0), // expected-note {{previous attribute is here}}
55-
intel::no_global_work_offset(1)]]{}); // expected-warning{{attribute 'no_global_work_offset' is already applied with different parameters}}
55+
intel::no_global_work_offset(1)]]{}); // expected-warning{{attribute 'no_global_work_offset' is already applied with different arguments}}
5656
});
5757
return 0;
5858
}

clang/test/SemaSYCL/scheduler_target_fmax_mhz.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ func() {}
1010
[[intel::scheduler_target_fmax_mhz(12)]] void bar() {} // OK
1111

1212
[[intel::scheduler_target_fmax_mhz(12)]] void baz(); // expected-note {{previous attribute is here}}
13-
[[intel::scheduler_target_fmax_mhz(100)]] void baz(); // expected-warning {{attribute 'scheduler_target_fmax_mhz' is already applied with different parameters}}
13+
[[intel::scheduler_target_fmax_mhz(100)]] void baz(); // expected-warning {{attribute 'scheduler_target_fmax_mhz' is already applied with different arguments}}
1414

1515
template <int N>
1616
[[intel::scheduler_target_fmax_mhz(N)]] void zoo() {}

clang/test/SemaSYCL/sycl-device-intel-fpga-no-global-work-offset.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ int main() {
4040
[[intel::no_global_work_offset(1)]] void func3() {} // OK
4141

4242
[[intel::no_global_work_offset(0)]] void func4(); // expected-note {{previous attribute is here}}
43-
[[intel::no_global_work_offset]] void func4(); // expected-warning{{attribute 'no_global_work_offset' is already applied with different parameters}}
43+
[[intel::no_global_work_offset]] void func4(); // expected-warning{{attribute 'no_global_work_offset' is already applied with different arguments}}
4444

4545
[[intel::no_global_work_offset(1)]] void func5();
4646
[[intel::no_global_work_offset(1)]] void func5() {} // OK
4747

4848
[[intel::no_global_work_offset(0)]] void func6(); // expected-note {{previous attribute is here}}
49-
[[intel::no_global_work_offset(1)]] void func6(); // expected-warning{{attribute 'no_global_work_offset' is already applied with different parameters}}
49+
[[intel::no_global_work_offset(1)]] void func6(); // expected-warning{{attribute 'no_global_work_offset' is already applied with different arguments}}
5050

5151
// CHECK: ClassTemplateDecl {{.*}} {{.*}} KernelFunctor
5252
// CHECK: ClassTemplateSpecializationDecl {{.*}} {{.*}} class KernelFunctor definition
@@ -65,7 +65,7 @@ template <int N>
6565
template <int N>
6666
[[intel::no_global_work_offset(0)]] void func7(); // expected-note {{previous attribute is here}}
6767
template <int N>
68-
[[intel::no_global_work_offset(N)]] void func7() {} // expected-warning {{attribute 'no_global_work_offset' is already applied with different parameters}}
68+
[[intel::no_global_work_offset(N)]] void func7() {} // expected-warning {{attribute 'no_global_work_offset' is already applied with different arguments}}
6969

7070
int check() {
7171
func6<1>();

clang/test/SemaSYCL/sycl-device-scheduler_target_fmax_mhz-template.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ template <int N>
6363
[[intel::scheduler_target_fmax_mhz(4)]] void func4(); // expected-note {{previous attribute is here}}
6464

6565
template <int N>
66-
[[intel::scheduler_target_fmax_mhz(N)]] void func4() {} // expected-warning {{attribute 'scheduler_target_fmax_mhz' is already applied with different parameters}}
66+
[[intel::scheduler_target_fmax_mhz(N)]] void func4() {} // expected-warning {{attribute 'scheduler_target_fmax_mhz' is already applied with different arguments}}
6767

6868
int check() {
6969
// no error expected

0 commit comments

Comments
 (0)