@@ -15,13 +15,15 @@ subroutine openmp_sections(x, y)
1515
1616! PARSE-TREE: ExecutionPartConstruct -> ExecutableConstruct -> OpenMPConstruct -> OpenMPSectionsConstruct
1717! PARSE-TREE: | OmpBeginSectionsDirective
18- ! PARSE-TREE: | | OmpSectionsDirective -> llvm::omp::Directive = sections
18+ ! PARSE-TREE: | | OmpDirectiveName -> llvm::omp::Directive = sections
1919! PARSE-TREE: | | OmpClauseList ->
20+ ! PARSE-TREE: | | Flags = None
2021! PARSE-TREE: | OpenMPConstruct -> OpenMPSectionConstruct
2122! PARSE-TREE: | | Block
2223! PARSE-TREE: | OmpEndSectionsDirective
23- ! PARSE-TREE: | | OmpSectionsDirective -> llvm::omp::Directive = sections
24+ ! PARSE-TREE: | | OmpDirectiveName -> llvm::omp::Directive = sections
2425! PARSE-TREE: | | OmpClauseList ->
26+ ! PARSE-TREE: | | Flags = None
2527
2628! ==============================================================================
2729! single section, without `!$omp section`
@@ -35,16 +37,18 @@ subroutine openmp_sections(x, y)
3537
3638! PARSE-TREE: ExecutionPartConstruct -> ExecutableConstruct -> OpenMPConstruct -> OpenMPSectionsConstruct
3739! PARSE-TREE: | OmpBeginSectionsDirective
38- ! PARSE-TREE: | | OmpSectionsDirective -> llvm::omp::Directive = sections
40+ ! PARSE-TREE: | | OmpDirectiveName -> llvm::omp::Directive = sections
3941! PARSE-TREE: | | OmpClauseList ->
42+ ! PARSE-TREE: | | Flags = None
4043! PARSE-TREE: | OpenMPConstruct -> OpenMPSectionConstruct
4144! PARSE-TREE: | | Block
4245! PARSE-TREE: | | | ExecutionPartConstruct -> ExecutableConstruct -> ActionStmt -> CallStmt = 'CALL f1()'
4346! PARSE-TREE: | | | | Call
4447! PARSE-TREE: | | | | | ProcedureDesignator -> Name = 'f1'
4548! PARSE-TREE: | OmpEndSectionsDirective
46- ! PARSE-TREE: | | OmpSectionsDirective -> llvm::omp::Directive = sections
49+ ! PARSE-TREE: | | OmpDirectiveName -> llvm::omp::Directive = sections
4750! PARSE-TREE: | | OmpClauseList ->
51+ ! PARSE-TREE: | | Flags = None
4852
4953! ==============================================================================
5054! single section with `!$omp section`
@@ -60,8 +64,9 @@ subroutine openmp_sections(x, y)
6064
6165! PARSE-TREE: ExecutionPartConstruct -> ExecutableConstruct -> OpenMPConstruct -> OpenMPSectionsConstruct
6266! PARSE-TREE: | OmpBeginSectionsDirective
63- ! PARSE-TREE: | | OmpSectionsDirective -> llvm::omp::Directive = sections
67+ ! PARSE-TREE: | | OmpDirectiveName -> llvm::omp::Directive = sections
6468! PARSE-TREE: | | OmpClauseList ->
69+ ! PARSE-TREE: | | Flags = None
6570! PARSE-TREE: | OpenMPConstruct -> OpenMPSectionConstruct
6671! PARSE-TREE: | | OmpDirectiveSpecification
6772! PARSE-TREE: | | | OmpDirectiveName -> llvm::omp::Directive = section
@@ -72,8 +77,9 @@ subroutine openmp_sections(x, y)
7277! PARSE-TREE: | | | | Call
7378! PARSE-TREE: | | | | | ProcedureDesignator -> Name = 'f1'
7479! PARSE-TREE: | OmpEndSectionsDirective
75- ! PARSE-TREE: | | OmpSectionsDirective -> llvm::omp::Directive = sections
80+ ! PARSE-TREE: | | OmpDirectiveName -> llvm::omp::Directive = sections
7681! PARSE-TREE: | | OmpClauseList ->
82+ ! PARSE-TREE: | | Flags = None
7783
7884! ==============================================================================
7985! multiple sections
@@ -97,8 +103,9 @@ subroutine openmp_sections(x, y)
97103
98104! PARSE-TREE: ExecutionPartConstruct -> ExecutableConstruct -> OpenMPConstruct -> OpenMPSectionsConstruct
99105! PARSE-TREE: | OmpBeginSectionsDirective
100- ! PARSE-TREE: | | OmpSectionsDirective -> llvm::omp::Directive = sections
106+ ! PARSE-TREE: | | OmpDirectiveName -> llvm::omp::Directive = sections
101107! PARSE-TREE: | | OmpClauseList ->
108+ ! PARSE-TREE: | | Flags = None
102109! PARSE-TREE: | OpenMPConstruct -> OpenMPSectionConstruct
103110! PARSE-TREE: | | OmpDirectiveSpecification
104111! PARSE-TREE: | | | OmpDirectiveName -> llvm::omp::Directive = section
@@ -127,8 +134,9 @@ subroutine openmp_sections(x, y)
127134! PARSE-TREE: | | | | Call
128135! PARSE-TREE: | | | | | ProcedureDesignator -> Name = 'f3'
129136! PARSE-TREE: | OmpEndSectionsDirective
130- ! PARSE-TREE: | | OmpSectionsDirective -> llvm::omp::Directive = sections
137+ ! PARSE-TREE: | | OmpDirectiveName -> llvm::omp::Directive = sections
131138! PARSE-TREE: | | OmpClauseList ->
139+ ! PARSE-TREE: | | Flags = None
132140
133141! ==============================================================================
134142! multiple sections with clauses
@@ -152,9 +160,10 @@ subroutine openmp_sections(x, y)
152160
153161! PARSE-TREE: ExecutionPartConstruct -> ExecutableConstruct -> OpenMPConstruct -> OpenMPSectionsConstruct
154162! PARSE-TREE: | OmpBeginSectionsDirective
155- ! PARSE-TREE: | | OmpSectionsDirective -> llvm::omp::Directive = sections
163+ ! PARSE-TREE: | | OmpDirectiveName -> llvm::omp::Directive = sections
156164! PARSE-TREE: | | OmpClauseList -> OmpClause -> Private -> OmpObjectList -> OmpObject -> Designator -> DataRef -> Name = 'x'
157165! PARSE-TREE: | | OmpClause -> Firstprivate -> OmpObjectList -> OmpObject -> Designator -> DataRef -> Name = 'y'
166+ ! PARSE-TREE: | | Flags = None
158167! PARSE-TREE: | OpenMPConstruct -> OpenMPSectionConstruct
159168! PARSE-TREE: | | OmpDirectiveSpecification
160169! PARSE-TREE: | | | OmpDirectiveName -> llvm::omp::Directive = section
@@ -183,7 +192,8 @@ subroutine openmp_sections(x, y)
183192! PARSE-TREE: | | | | Call
184193! PARSE-TREE: | | | | | ProcedureDesignator -> Name = 'f3'
185194! PARSE-TREE: | OmpEndSectionsDirective
186- ! PARSE-TREE: | | OmpSectionsDirective -> llvm::omp::Directive = sections
195+ ! PARSE-TREE: | | OmpDirectiveName -> llvm::omp::Directive = sections
187196! PARSE-TREE: | | OmpClauseList -> OmpClause -> Nowait
197+ ! PARSE-TREE: | | Flags = None
188198
189199END subroutine openmp_sections
0 commit comments