File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -2926,6 +2926,8 @@ class UnparseVisitor {
2926
2926
Walk (std::get<OmpBeginLoopDirective>(x.t ));
2927
2927
Put (" \n " );
2928
2928
EndOpenMP ();
2929
+ Walk (
2930
+ std::get<std::optional<common::Indirection<OpenMPLoopConstruct>>>(x.t ));
2929
2931
Walk (std::get<std::optional<DoConstruct>>(x.t ));
2930
2932
Walk (std::get<std::optional<OmpEndLoopDirective>>(x.t ));
2931
2933
}
Original file line number Diff line number Diff line change
1
+ ! RUN: %flang_fc1 -fdebug-unparse -fopenmp -fopenmp-version=51 %s | FileCheck --ignore-case %s
2
+ ! RUN: %flang_fc1 -fdebug-dump-parse-tree -fopenmp -fopenmp-version=51 %s | FileCheck --check-prefix="PARSE-TREE" %s
3
+
4
+ subroutine openmp_do_tiles (x )
5
+
6
+ integer , intent (inout ):: x
7
+
8
+
9
+ ! CHECK: !$omp do
10
+ ! CHECK: !$omp tile sizes
11
+ ! $omp do
12
+ ! $omp tile sizes(2)
13
+ ! CHECK: do
14
+ do x = 1 , 100
15
+ call F1()
16
+ ! CHECK: end do
17
+ end do
18
+ ! CHECK: !$omp end tile
19
+ ! $omp end tile
20
+ ! $omp end do
21
+
22
+ ! PARSE-TREE:| | ExecutionPartConstruct -> ExecutableConstruct -> OpenMPConstruct -> OpenMPLoopConstruct
23
+ ! PARSE-TREE:| | | OmpBeginLoopDirective
24
+ ! PARSE-TREE:| | | OpenMPLoopConstruct
25
+ ! PARSE-TREE:| | | | OmpBeginLoopDirective
26
+ ! PARSE-TREE:| | | | | OmpLoopDirective -> llvm::omp::Directive = tile
27
+ ! PARSE-TREE:| | | | | OmpClauseList -> OmpClause -> Sizes -> Scalar -> Integer -> Expr = '2_4'
28
+ ! PARSE-TREE: | | | | DoConstruct
29
+ END subroutine openmp_do_tiles
You can’t perform that action at this time.
0 commit comments