@@ -21,11 +21,11 @@ subroutine f00
2121! PARSE-TREE: | | | llvm::omp::Directive = nothing
2222! PARSE-TREE: | | | OmpClauseList ->
2323
24- subroutine f10
24+ subroutine f01
2525 ! $omp metadirective when(device={kind(host), device_num(1)}: nothing)
2626end
2727
28- ! UNPARSE: SUBROUTINE f10
28+ ! UNPARSE: SUBROUTINE f01
2929! UNPARSE: !$OMP METADIRECTIVE WHEN(DEVICE={KIND(host), DEVICE_NUM(1_4)}: NOTHING)
3030! UNPARSE: END SUBROUTINE
3131
@@ -46,11 +46,11 @@ subroutine f10
4646! PARSE-TREE: | | | llvm::omp::Directive = nothing
4747! PARSE-TREE: | | | OmpClauseList ->
4848
49- subroutine f20
49+ subroutine f02
5050 ! $omp metadirective when(target_device={kind(any), device_num(7)}: nothing)
5151end
5252
53- ! UNPARSE: SUBROUTINE f20
53+ ! UNPARSE: SUBROUTINE f02
5454! UNPARSE: !$OMP METADIRECTIVE WHEN(TARGET_DEVICE={KIND(any), DEVICE_NUM(7_4)}: NOTHING)
5555! UNPARSE: END SUBROUTINE
5656
@@ -71,12 +71,12 @@ subroutine f20
7171! PARSE-TREE: | | | llvm::omp::Directive = nothing
7272! PARSE-TREE: | | | OmpClauseList ->
7373
74- subroutine f30
74+ subroutine f03
7575 ! $omp metadirective &
76- ! $omp when(implementation={atomic_default_mem_order(acq_rel)}: nothing)
76+ ! $omp & when(implementation={atomic_default_mem_order(acq_rel)}: nothing)
7777end
7878
79- ! UNPARSE: SUBROUTINE f30
79+ ! UNPARSE: SUBROUTINE f03
8080! UNPARSE: !$OMP METADIRECTIVE WHEN(IMPLEMENTATION={ATOMIC_DEFAULT_MEM_ORDER(ACQ_REL)}: &
8181! UNPARSE: !$OMP&NOTHING)
8282! UNPARSE: END SUBROUTINE
@@ -93,12 +93,12 @@ subroutine f30
9393! PARSE-TREE: | | | llvm::omp::Directive = nothing
9494! PARSE-TREE: | | | OmpClauseList ->
9595
96- subroutine f31
96+ subroutine f04
9797 ! $omp metadirective &
98- ! $omp when(implementation={extension(haha(1), foo(baz, "bar"(1)))}: nothing)
98+ ! $omp & when(implementation={extension(haha(1), foo(baz, "bar"(1)))}: nothing)
9999end
100100
101- ! UNPARSE: SUBROUTINE f31
101+ ! UNPARSE: SUBROUTINE f04
102102! UNPARSE: !$OMP METADIRECTIVE WHEN(IMPLEMENTATION={EXTENSION(haha(1_4), foo(baz,bar(1_4)))}: &
103103! UNPARSE: !$OMP&NOTHING)
104104! UNPARSE: END SUBROUTINE
@@ -125,17 +125,17 @@ subroutine f31
125125! PARSE-TREE: | | | llvm::omp::Directive = nothing
126126! PARSE-TREE: | | | OmpClauseList ->
127127
128- subroutine f40 (x )
128+ subroutine f05 (x )
129129 integer :: x
130130 ! $omp metadirective &
131- ! $omp when(user={condition(score(100): .true.)}: &
132- ! $omp parallel do reduction(+: x)) &
133- ! $omp otherwise(nothing)
131+ ! $omp & when(user={condition(score(100): .true.)}: &
132+ ! $omp & parallel do reduction(+: x)) &
133+ ! $omp & otherwise(nothing)
134134 do i = 1 , 10
135135 enddo
136136end
137137
138- ! UNPARSE: SUBROUTINE f40 (x)
138+ ! UNPARSE: SUBROUTINE f05 (x)
139139! UNPARSE: INTEGER x
140140! UNPARSE: !$OMP METADIRECTIVE WHEN(USER={CONDITION(SCORE(100_4): .true._4)}: PARALLEL DO REDUCTION(+&
141141! UNPARSE: !$OMP&: x)) OTHERWISE(NOTHING)
@@ -164,13 +164,14 @@ subroutine f40(x)
164164! PARSE-TREE: | | llvm::omp::Directive = nothing
165165! PARSE-TREE: | | OmpClauseList ->
166166
167- subroutine f41
167+ subroutine f06
168168 ! Two trait set selectors
169169 ! $omp metadirective &
170- ! $omp when(implementation={vendor("amd")}, user={condition(.true.)}: nothing)
170+ ! $omp & when(implementation={vendor("amd")}, &
171+ ! $omp & user={condition(.true.)}: nothing)
171172end
172173
173- ! UNPARSE: SUBROUTINE f41
174+ ! UNPARSE: SUBROUTINE f06
174175! UNPARSE: !$OMP METADIRECTIVE WHEN(IMPLEMENTATION={VENDOR(amd)}, USER={CONDITION(.true._4)}: NO&
175176! UNPARSE: !$OMP&THING)
176177! UNPARSE: END SUBROUTINE
@@ -194,3 +195,4 @@ subroutine f41
194195! PARSE-TREE: | | OmpDirectiveSpecification
195196! PARSE-TREE: | | | llvm::omp::Directive = nothing
196197! PARSE-TREE: | | | OmpClauseList ->
198+
0 commit comments