You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This patch adds unique idenfitiers to the existing OpenMP remarks. This makes
it easier to identify the corresponding documentation for each remark that will
be hosted in the OpenMP webpage.
Depends on D105898
Reviewed By: jdoerfert
Differential Revision: https://reviews.llvm.org/D105939
// safe-remark@#0 {{Parallel region is used in unknown ways. Will not attempt to rewrite the state machine.}}
11
+
// safe-remark@#0 {{Parallel region is used in unknown ways. Will not attempt to rewrite the state machine. [OMP101]}}
12
12
{
13
13
}
14
14
}
15
15
voidbar2(void) {
16
16
#pragma omp parallel // #1
17
-
// safe-remark@#1 {{Parallel region is used in unknown ways. Will not attempt to rewrite the state machine.}}
17
+
// safe-remark@#1 {{Parallel region is used in unknown ways. Will not attempt to rewrite the state machine. [OMP101]}}
18
18
{
19
19
}
20
20
}
21
21
22
22
voidfoo1(void) {
23
23
#pragma omp target teams // #2
24
-
// all-remark@#2 {{Rewriting generic-mode kernel with a customized state machine.}}
24
+
// all-remark@#2 {{Rewriting generic-mode kernel with a customized state machine. [OMP131]}}
25
25
26
26
{
27
-
baz(); // all-remark {{Value has potential side effects preventing SPMD-mode execution. Add `__attribute__((assume("ompx_spmd_amenable")))` to the called function to override.}}
27
+
baz(); // all-remark {{Value has potential side effects preventing SPMD-mode execution. Add `__attribute__((assume("ompx_spmd_amenable")))` to the called function to override. [OMP121]}}
28
28
#pragma omp parallel // #3
29
29
{
30
30
}
@@ -37,9 +37,9 @@ void foo1(void) {
37
37
38
38
voidfoo2(void) {
39
39
#pragma omp target teams // #5
40
-
// all-remark@#5 {{Rewriting generic-mode kernel with a customized state machine.}}
40
+
// all-remark@#5 {{Rewriting generic-mode kernel with a customized state machine. [OMP131]}}
41
41
{
42
-
baz(); // all-remark {{Value has potential side effects preventing SPMD-mode execution. Add `__attribute__((assume("ompx_spmd_amenable")))` to the called function to override.}}
42
+
baz(); // all-remark {{Value has potential side effects preventing SPMD-mode execution. Add `__attribute__((assume("ompx_spmd_amenable")))` to the called function to override. [OMP121]}}
43
43
#pragma omp parallel // #6
44
44
{
45
45
}
@@ -55,9 +55,9 @@ void foo2(void) {
55
55
56
56
voidfoo3(void) {
57
57
#pragma omp target teams // #8
58
-
// all-remark@#8 {{Rewriting generic-mode kernel with a customized state machine.}}
58
+
// all-remark@#8 {{Rewriting generic-mode kernel with a customized state machine. [OMP131]}}
59
59
{
60
-
baz(); // all-remark {{Value has potential side effects preventing SPMD-mode execution. Add `__attribute__((assume("ompx_spmd_amenable")))` to the called function to override.}}
60
+
baz(); // all-remark {{Value has potential side effects preventing SPMD-mode execution. Add `__attribute__((assume("ompx_spmd_amenable")))` to the called function to override. [OMP121]}}
// expected-remark@#1 {{Parallel region is used in unknown ways. Will not attempt to rewrite the state machine.}}
11
+
// expected-remark@#1 {{Parallel region is used in unknown ways. Will not attempt to rewrite the state machine. [OMP101]}}
12
12
{
13
13
}
14
14
}
15
15
16
16
voidfoo(void) {
17
17
#pragma omp target teams // #2
18
-
// expected-remark@#2 {{Rewriting generic-mode kernel with a customized state machine.}}
18
+
// expected-remark@#2 {{Rewriting generic-mode kernel with a customized state machine. [OMP131]}}
19
19
{
20
-
baz(); // expected-remark {{Value has potential side effects preventing SPMD-mode execution. Add `__attribute__((assume("ompx_spmd_amenable")))` to the called function to override.}}
20
+
baz(); // expected-remark {{Value has potential side effects preventing SPMD-mode execution. Add `__attribute__((assume("ompx_spmd_amenable")))` to the called function to override. [OMP121]}}
0 commit comments