CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
200 lines
8.0 KiB
Fortran
200 lines
8.0 KiB
Fortran
! RUN: %flang_fc1 -fdebug-unparse -fopenmp %s | FileCheck --ignore-case %s
|
|
! RUN: %flang_fc1 -fdebug-dump-parse-tree -fopenmp %s | FileCheck --check-prefix="PARSE-TREE" %s
|
|
|
|
subroutine openmp_sections(x, y)
|
|
|
|
integer, intent(inout)::x, y
|
|
|
|
!==============================================================================
|
|
! empty construct
|
|
!==============================================================================
|
|
!CHECK: !$omp sections
|
|
!$omp sections
|
|
!CHECK: !$omp end sections
|
|
!$omp end sections
|
|
|
|
!PARSE-TREE: ExecutionPartConstruct -> ExecutableConstruct -> OpenMPConstruct -> OpenMPSectionsConstruct
|
|
!PARSE-TREE: | OmpBeginSectionsDirective
|
|
!PARSE-TREE: | | OmpDirectiveName -> llvm::omp::Directive = sections
|
|
!PARSE-TREE: | | OmpClauseList ->
|
|
!PARSE-TREE: | | Flags = {}
|
|
!PARSE-TREE: | OpenMPConstruct -> OmpSectionDirective
|
|
!PARSE-TREE: | | Block
|
|
!PARSE-TREE: | OmpEndSectionsDirective
|
|
!PARSE-TREE: | | OmpDirectiveName -> llvm::omp::Directive = sections
|
|
!PARSE-TREE: | | OmpClauseList ->
|
|
!PARSE-TREE: | | Flags = {}
|
|
|
|
!==============================================================================
|
|
! single section, without `!$omp section`
|
|
!==============================================================================
|
|
!CHECK: !$omp sections
|
|
!$omp sections
|
|
!CHECK: CALL
|
|
call F1()
|
|
!CHECK: !$omp end sections
|
|
!$omp end sections
|
|
|
|
!PARSE-TREE: ExecutionPartConstruct -> ExecutableConstruct -> OpenMPConstruct -> OpenMPSectionsConstruct
|
|
!PARSE-TREE: | OmpBeginSectionsDirective
|
|
!PARSE-TREE: | | OmpDirectiveName -> llvm::omp::Directive = sections
|
|
!PARSE-TREE: | | OmpClauseList ->
|
|
!PARSE-TREE: | | Flags = {}
|
|
!PARSE-TREE: | OpenMPConstruct -> OmpSectionDirective
|
|
!PARSE-TREE: | | Block
|
|
!PARSE-TREE: | | | ExecutionPartConstruct -> ExecutableConstruct -> ActionStmt -> CallStmt = 'CALL f1()'
|
|
!PARSE-TREE: | | | | Call
|
|
!PARSE-TREE: | | | | | ProcedureDesignator -> Name = 'f1'
|
|
!PARSE-TREE: | OmpEndSectionsDirective
|
|
!PARSE-TREE: | | OmpDirectiveName -> llvm::omp::Directive = sections
|
|
!PARSE-TREE: | | OmpClauseList ->
|
|
!PARSE-TREE: | | Flags = {}
|
|
|
|
!==============================================================================
|
|
! single section with `!$omp section`
|
|
!==============================================================================
|
|
!CHECK: !$omp sections
|
|
!$omp sections
|
|
!CHECK: !$omp section
|
|
!$omp section
|
|
!CHECK: CALL F1
|
|
call F1
|
|
!CHECK: !$omp end sections
|
|
!$omp end sections
|
|
|
|
!PARSE-TREE: ExecutionPartConstruct -> ExecutableConstruct -> OpenMPConstruct -> OpenMPSectionsConstruct
|
|
!PARSE-TREE: | OmpBeginSectionsDirective
|
|
!PARSE-TREE: | | OmpDirectiveName -> llvm::omp::Directive = sections
|
|
!PARSE-TREE: | | OmpClauseList ->
|
|
!PARSE-TREE: | | Flags = {}
|
|
!PARSE-TREE: | OpenMPConstruct -> OmpSectionDirective
|
|
!PARSE-TREE: | | OmpDirectiveSpecification
|
|
!PARSE-TREE: | | | OmpDirectiveName -> llvm::omp::Directive = section
|
|
!PARSE-TREE: | | | OmpClauseList ->
|
|
!PARSE-TREE: | | | Flags = {}
|
|
!PARSE-TREE: | | Block
|
|
!PARSE-TREE: | | | ExecutionPartConstruct -> ExecutableConstruct -> ActionStmt -> CallStmt = 'CALL f1()'
|
|
!PARSE-TREE: | | | | Call
|
|
!PARSE-TREE: | | | | | ProcedureDesignator -> Name = 'f1'
|
|
!PARSE-TREE: | OmpEndSectionsDirective
|
|
!PARSE-TREE: | | OmpDirectiveName -> llvm::omp::Directive = sections
|
|
!PARSE-TREE: | | OmpClauseList ->
|
|
!PARSE-TREE: | | Flags = {}
|
|
|
|
!==============================================================================
|
|
! multiple sections
|
|
!==============================================================================
|
|
!CHECK: !$omp sections
|
|
!$omp sections
|
|
!CHECK: !$omp section
|
|
!$omp section
|
|
!CHECK: CALL F1
|
|
call F1
|
|
!CHECK: !$omp section
|
|
!$omp section
|
|
!CHECK: CALL F2
|
|
call F2
|
|
!CHECK: !$omp section
|
|
!$omp section
|
|
!CHECK: CALL F3
|
|
call F3
|
|
!CHECK: !$omp end sections
|
|
!$omp end sections
|
|
|
|
!PARSE-TREE: ExecutionPartConstruct -> ExecutableConstruct -> OpenMPConstruct -> OpenMPSectionsConstruct
|
|
!PARSE-TREE: | OmpBeginSectionsDirective
|
|
!PARSE-TREE: | | OmpDirectiveName -> llvm::omp::Directive = sections
|
|
!PARSE-TREE: | | OmpClauseList ->
|
|
!PARSE-TREE: | | Flags = {}
|
|
!PARSE-TREE: | OpenMPConstruct -> OmpSectionDirective
|
|
!PARSE-TREE: | | OmpDirectiveSpecification
|
|
!PARSE-TREE: | | | OmpDirectiveName -> llvm::omp::Directive = section
|
|
!PARSE-TREE: | | | OmpClauseList ->
|
|
!PARSE-TREE: | | | Flags = {}
|
|
!PARSE-TREE: | | Block
|
|
!PARSE-TREE: | | | ExecutionPartConstruct -> ExecutableConstruct -> ActionStmt -> CallStmt = 'CALL f1()'
|
|
!PARSE-TREE: | | | | Call
|
|
!PARSE-TREE: | | | | | ProcedureDesignator -> Name = 'f1'
|
|
!PARSE-TREE: | OpenMPConstruct -> OmpSectionDirective
|
|
!PARSE-TREE: | | OmpDirectiveSpecification
|
|
!PARSE-TREE: | | | OmpDirectiveName -> llvm::omp::Directive = section
|
|
!PARSE-TREE: | | | OmpClauseList ->
|
|
!PARSE-TREE: | | | Flags = {}
|
|
!PARSE-TREE: | | Block
|
|
!PARSE-TREE: | | | ExecutionPartConstruct -> ExecutableConstruct -> ActionStmt -> CallStmt = 'CALL f2()'
|
|
!PARSE-TREE: | | | | Call
|
|
!PARSE-TREE: | | | | | ProcedureDesignator -> Name = 'f2'
|
|
!PARSE-TREE: | OpenMPConstruct -> OmpSectionDirective
|
|
!PARSE-TREE: | | OmpDirectiveSpecification
|
|
!PARSE-TREE: | | | OmpDirectiveName -> llvm::omp::Directive = section
|
|
!PARSE-TREE: | | | OmpClauseList ->
|
|
!PARSE-TREE: | | | Flags = {}
|
|
!PARSE-TREE: | | Block
|
|
!PARSE-TREE: | | | ExecutionPartConstruct -> ExecutableConstruct -> ActionStmt -> CallStmt = 'CALL f3()'
|
|
!PARSE-TREE: | | | | Call
|
|
!PARSE-TREE: | | | | | ProcedureDesignator -> Name = 'f3'
|
|
!PARSE-TREE: | OmpEndSectionsDirective
|
|
!PARSE-TREE: | | OmpDirectiveName -> llvm::omp::Directive = sections
|
|
!PARSE-TREE: | | OmpClauseList ->
|
|
!PARSE-TREE: | | Flags = {}
|
|
|
|
!==============================================================================
|
|
! multiple sections with clauses
|
|
!==============================================================================
|
|
!CHECK: !$omp sections PRIVATE(x) FIRSTPRIVATE(y)
|
|
!$omp sections PRIVATE(x) FIRSTPRIVATE(y)
|
|
!CHECK: !$omp section
|
|
!$omp section
|
|
!CHECK: CALL F1
|
|
call F1
|
|
!CHECK: !$omp section
|
|
!$omp section
|
|
!CHECK: CALL F2
|
|
call F2
|
|
!CHECK: !$omp section
|
|
!$omp section
|
|
!CHECK: CALL F3
|
|
call F3
|
|
!CHECK: !$omp end sections NOWAIT
|
|
!$omp end sections NOWAIT
|
|
|
|
!PARSE-TREE: ExecutionPartConstruct -> ExecutableConstruct -> OpenMPConstruct -> OpenMPSectionsConstruct
|
|
!PARSE-TREE: | OmpBeginSectionsDirective
|
|
!PARSE-TREE: | | OmpDirectiveName -> llvm::omp::Directive = sections
|
|
!PARSE-TREE: | | OmpClauseList -> OmpClause -> Private -> OmpObjectList -> OmpObject -> Designator -> DataRef -> Name = 'x'
|
|
!PARSE-TREE: | | OmpClause -> Firstprivate -> OmpObjectList -> OmpObject -> Designator -> DataRef -> Name = 'y'
|
|
!PARSE-TREE: | | Flags = {}
|
|
!PARSE-TREE: | OpenMPConstruct -> OmpSectionDirective
|
|
!PARSE-TREE: | | OmpDirectiveSpecification
|
|
!PARSE-TREE: | | | OmpDirectiveName -> llvm::omp::Directive = section
|
|
!PARSE-TREE: | | | OmpClauseList ->
|
|
!PARSE-TREE: | | | Flags = {}
|
|
!PARSE-TREE: | | Block
|
|
!PARSE-TREE: | | | ExecutionPartConstruct -> ExecutableConstruct -> ActionStmt -> CallStmt = 'CALL f1()'
|
|
!PARSE-TREE: | | | | Call
|
|
!PARSE-TREE: | | | | | ProcedureDesignator -> Name = 'f1'
|
|
!PARSE-TREE: | OpenMPConstruct -> OmpSectionDirective
|
|
!PARSE-TREE: | | OmpDirectiveSpecification
|
|
!PARSE-TREE: | | | OmpDirectiveName -> llvm::omp::Directive = section
|
|
!PARSE-TREE: | | | OmpClauseList ->
|
|
!PARSE-TREE: | | | Flags = {}
|
|
!PARSE-TREE: | | Block
|
|
!PARSE-TREE: | | | ExecutionPartConstruct -> ExecutableConstruct -> ActionStmt -> CallStmt = 'CALL f2()'
|
|
!PARSE-TREE: | | | | Call
|
|
!PARSE-TREE: | | | | | ProcedureDesignator -> Name = 'f2'
|
|
!PARSE-TREE: | OpenMPConstruct -> OmpSectionDirective
|
|
!PARSE-TREE: | | OmpDirectiveSpecification
|
|
!PARSE-TREE: | | | OmpDirectiveName -> llvm::omp::Directive = section
|
|
!PARSE-TREE: | | | OmpClauseList ->
|
|
!PARSE-TREE: | | | Flags = {}
|
|
!PARSE-TREE: | | Block
|
|
!PARSE-TREE: | | | ExecutionPartConstruct -> ExecutableConstruct -> ActionStmt -> CallStmt = 'CALL f3()'
|
|
!PARSE-TREE: | | | | Call
|
|
!PARSE-TREE: | | | | | ProcedureDesignator -> Name = 'f3'
|
|
!PARSE-TREE: | OmpEndSectionsDirective
|
|
!PARSE-TREE: | | OmpDirectiveName -> llvm::omp::Directive = sections
|
|
!PARSE-TREE: | | OmpClauseList -> OmpClause -> Nowait
|
|
!PARSE-TREE: | | Flags = {}
|
|
|
|
END subroutine openmp_sections
|