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
378 lines
14 KiB
Fortran
378 lines
14 KiB
Fortran
!RUN: %flang_fc1 -fdebug-unparse -fopenmp -fopenmp-version=52 %s | FileCheck --ignore-case --check-prefix="UNPARSE" %s
|
|
!RUN: %flang_fc1 -fdebug-dump-parse-tree -fopenmp -fopenmp-version=52 %s | FileCheck --check-prefix="PARSE-TREE" %s
|
|
|
|
subroutine f00(x)
|
|
integer :: x
|
|
!$omp target map(ompx_hold, always, present, close, to: x)
|
|
x = x + 1
|
|
!$omp end target
|
|
end
|
|
|
|
!UNPARSE: SUBROUTINE f00 (x)
|
|
!UNPARSE: INTEGER x
|
|
!UNPARSE: !$OMP TARGET MAP(OMPX_HOLD, ALWAYS, PRESENT, CLOSE, TO: x)
|
|
!UNPARSE: x=x+1_4
|
|
!UNPARSE: !$OMP END TARGET
|
|
!UNPARSE: END SUBROUTINE
|
|
|
|
!PARSE-TREE: OmpBeginDirective
|
|
!PARSE-TREE: | OmpDirectiveName -> llvm::omp::Directive = target
|
|
!PARSE-TREE: | OmpClauseList -> OmpClause -> Map -> OmpMapClause
|
|
!PARSE-TREE: | | Modifier -> OmpMapTypeModifier -> Value = Ompx_Hold
|
|
!PARSE-TREE: | | Modifier -> OmpMapTypeModifier -> Value = Always
|
|
!PARSE-TREE: | | Modifier -> OmpMapTypeModifier -> Value = Present
|
|
!PARSE-TREE: | | Modifier -> OmpMapTypeModifier -> Value = Close
|
|
!PARSE-TREE: | | Modifier -> OmpMapType -> Value = To
|
|
!PARSE-TREE: | | OmpObjectList -> OmpObject -> Designator -> DataRef -> Name = 'x'
|
|
!PARSE-TREE: | | bool = 'true'
|
|
|
|
subroutine f01(x)
|
|
integer :: x
|
|
!$omp target map(ompx_hold, always, present, close: x)
|
|
x = x + 1
|
|
!$omp end target
|
|
end
|
|
|
|
!UNPARSE: SUBROUTINE f01 (x)
|
|
!UNPARSE: INTEGER x
|
|
!UNPARSE: !$OMP TARGET MAP(OMPX_HOLD, ALWAYS, PRESENT, CLOSE: x)
|
|
!UNPARSE: x=x+1_4
|
|
!UNPARSE: !$OMP END TARGET
|
|
!UNPARSE: END SUBROUTINE
|
|
|
|
!PARSE-TREE: OmpBeginDirective
|
|
!PARSE-TREE: | OmpDirectiveName -> llvm::omp::Directive = target
|
|
!PARSE-TREE: | OmpClauseList -> OmpClause -> Map -> OmpMapClause
|
|
!PARSE-TREE: | | Modifier -> OmpMapTypeModifier -> Value = Ompx_Hold
|
|
!PARSE-TREE: | | Modifier -> OmpMapTypeModifier -> Value = Always
|
|
!PARSE-TREE: | | Modifier -> OmpMapTypeModifier -> Value = Present
|
|
!PARSE-TREE: | | Modifier -> OmpMapTypeModifier -> Value = Close
|
|
!PARSE-TREE: | | OmpObjectList -> OmpObject -> Designator -> DataRef -> Name = 'x'
|
|
!PARSE-TREE: | | bool = 'true'
|
|
|
|
subroutine f02(x)
|
|
integer :: x
|
|
!$omp target map(from: x)
|
|
x = x + 1
|
|
!$omp end target
|
|
end
|
|
|
|
!UNPARSE: SUBROUTINE f02 (x)
|
|
!UNPARSE: INTEGER x
|
|
!UNPARSE: !$OMP TARGET MAP(FROM: x)
|
|
!UNPARSE: x=x+1_4
|
|
!UNPARSE: !$OMP END TARGET
|
|
!UNPARSE: END SUBROUTINE
|
|
|
|
!PARSE-TREE: OmpBeginDirective
|
|
!PARSE-TREE: | OmpDirectiveName -> llvm::omp::Directive = target
|
|
!PARSE-TREE: | OmpClauseList -> OmpClause -> Map -> OmpMapClause
|
|
!PARSE-TREE: | | Modifier -> OmpMapType -> Value = From
|
|
!PARSE-TREE: | | OmpObjectList -> OmpObject -> Designator -> DataRef -> Name = 'x'
|
|
!PARSE-TREE: | | bool = 'true'
|
|
|
|
subroutine f03(x)
|
|
integer :: x
|
|
!$omp target map(x)
|
|
x = x + 1
|
|
!$omp end target
|
|
end
|
|
|
|
!UNPARSE: SUBROUTINE f03 (x)
|
|
!UNPARSE: INTEGER x
|
|
!UNPARSE: !$OMP TARGET MAP(x)
|
|
!UNPARSE: x=x+1_4
|
|
!UNPARSE: !$OMP END TARGET
|
|
!UNPARSE: END SUBROUTINE
|
|
|
|
!PARSE-TREE: OmpBeginDirective
|
|
!PARSE-TREE: | OmpDirectiveName -> llvm::omp::Directive = target
|
|
!PARSE-TREE: | OmpClauseList -> OmpClause -> Map -> OmpMapClause
|
|
!PARSE-TREE: | | OmpObjectList -> OmpObject -> Designator -> DataRef -> Name = 'x'
|
|
!PARSE-TREE: | | bool = 'true'
|
|
|
|
subroutine f04(x)
|
|
integer :: x
|
|
!$omp target map(ompx_hold always, present, close, to: x)
|
|
x = x + 1
|
|
!$omp end target
|
|
end
|
|
|
|
!UNPARSE: SUBROUTINE f04 (x)
|
|
!UNPARSE: INTEGER x
|
|
!UNPARSE: !$OMP TARGET MAP(OMPX_HOLD, ALWAYS, PRESENT, CLOSE, TO: x)
|
|
!UNPARSE: x=x+1_4
|
|
!UNPARSE: !$OMP END TARGET
|
|
!UNPARSE: END SUBROUTINE
|
|
|
|
!PARSE-TREE: OmpBeginDirective
|
|
!PARSE-TREE: | OmpDirectiveName -> llvm::omp::Directive = target
|
|
!PARSE-TREE: | OmpClauseList -> OmpClause -> Map -> OmpMapClause
|
|
!PARSE-TREE: | | Modifier -> OmpMapTypeModifier -> Value = Ompx_Hold
|
|
!PARSE-TREE: | | Modifier -> OmpMapTypeModifier -> Value = Always
|
|
!PARSE-TREE: | | Modifier -> OmpMapTypeModifier -> Value = Present
|
|
!PARSE-TREE: | | Modifier -> OmpMapTypeModifier -> Value = Close
|
|
!PARSE-TREE: | | Modifier -> OmpMapType -> Value = To
|
|
!PARSE-TREE: | | OmpObjectList -> OmpObject -> Designator -> DataRef -> Name = 'x'
|
|
!PARSE-TREE: | | bool = 'false'
|
|
|
|
subroutine f05(x)
|
|
integer :: x
|
|
!$omp target map(ompx_hold, always, present, close: x)
|
|
x = x + 1
|
|
!$omp end target
|
|
end
|
|
|
|
!UNPARSE: SUBROUTINE f05 (x)
|
|
!UNPARSE: INTEGER x
|
|
!UNPARSE: !$OMP TARGET MAP(OMPX_HOLD, ALWAYS, PRESENT, CLOSE: x)
|
|
!UNPARSE: x=x+1_4
|
|
!UNPARSE: !$OMP END TARGET
|
|
!UNPARSE: END SUBROUTINE
|
|
|
|
!PARSE-TREE: OmpBeginDirective
|
|
!PARSE-TREE: | OmpDirectiveName -> llvm::omp::Directive = target
|
|
!PARSE-TREE: | OmpClauseList -> OmpClause -> Map -> OmpMapClause
|
|
!PARSE-TREE: | | Modifier -> OmpMapTypeModifier -> Value = Ompx_Hold
|
|
!PARSE-TREE: | | Modifier -> OmpMapTypeModifier -> Value = Always
|
|
!PARSE-TREE: | | Modifier -> OmpMapTypeModifier -> Value = Present
|
|
!PARSE-TREE: | | Modifier -> OmpMapTypeModifier -> Value = Close
|
|
!PARSE-TREE: | | OmpObjectList -> OmpObject -> Designator -> DataRef -> Name = 'x'
|
|
|
|
!PARSE-TREE: | | bool = 'true'
|
|
|
|
subroutine f10(x)
|
|
integer :: x(10)
|
|
!$omp target map(present, iterator(integer :: i = 1:10), to: x(i))
|
|
x = x + 1
|
|
!$omp end target
|
|
end
|
|
|
|
!UNPARSE: SUBROUTINE f10 (x)
|
|
!UNPARSE: INTEGER x(10_4)
|
|
!UNPARSE: !$OMP TARGET MAP(PRESENT, ITERATOR(INTEGER i = 1_4:10_4), TO: x(i))
|
|
!UNPARSE: x=x+1_4
|
|
!UNPARSE: !$OMP END TARGET
|
|
!UNPARSE: END SUBROUTINE
|
|
|
|
!PARSE-TREE: OmpBeginDirective
|
|
!PARSE-TREE: | OmpDirectiveName -> llvm::omp::Directive = target
|
|
!PARSE-TREE: | OmpClauseList -> OmpClause -> Map -> OmpMapClause
|
|
!PARSE-TREE: | | Modifier -> OmpMapTypeModifier -> Value = Present
|
|
!PARSE-TREE: | | Modifier -> OmpIterator -> OmpIteratorSpecifier
|
|
!PARSE-TREE: | | | TypeDeclarationStmt
|
|
!PARSE-TREE: | | | | DeclarationTypeSpec -> IntrinsicTypeSpec -> IntegerTypeSpec ->
|
|
!PARSE-TREE: | | | | EntityDecl
|
|
!PARSE-TREE: | | | | | Name = 'i'
|
|
!PARSE-TREE: | | | SubscriptTriplet
|
|
!PARSE-TREE: | | | | Scalar -> Integer -> Expr = '1_4'
|
|
!PARSE-TREE: | | | | | LiteralConstant -> IntLiteralConstant = '1'
|
|
!PARSE-TREE: | | | | Scalar -> Integer -> Expr = '10_4'
|
|
!PARSE-TREE: | | | | | LiteralConstant -> IntLiteralConstant = '10'
|
|
!PARSE-TREE: | | Modifier -> OmpMapType -> Value = To
|
|
!PARSE-TREE: | | OmpObjectList -> OmpObject -> Designator -> DataRef -> ArrayElement
|
|
!PARSE-TREE: | | | DataRef -> Name = 'x'
|
|
!PARSE-TREE: | | | SectionSubscript -> Integer -> Expr = 'i'
|
|
!PARSE-TREE: | | | | Designator -> DataRef -> Name = 'i'
|
|
!PARSE-TREE: | | bool = 'true'
|
|
|
|
subroutine f11(x)
|
|
integer :: x(10)
|
|
!$omp target map(present, iterator(i = 1:10), to: x(i))
|
|
x = x + 1
|
|
!$omp end target
|
|
end
|
|
|
|
!UNPARSE: SUBROUTINE f11 (x)
|
|
!UNPARSE: INTEGER x(10_4)
|
|
!UNPARSE: !$OMP TARGET MAP(PRESENT, ITERATOR(INTEGER i = 1_4:10_4), TO: x(i))
|
|
!UNPARSE: x=x+1_4
|
|
!UNPARSE: !$OMP END TARGET
|
|
!UNPARSE: END SUBROUTINE
|
|
|
|
!PARSE-TREE: OmpBeginDirective
|
|
!PARSE-TREE: | OmpDirectiveName -> llvm::omp::Directive = target
|
|
!PARSE-TREE: | OmpClauseList -> OmpClause -> Map -> OmpMapClause
|
|
!PARSE-TREE: | | Modifier -> OmpMapTypeModifier -> Value = Present
|
|
!PARSE-TREE: | | Modifier -> OmpIterator -> OmpIteratorSpecifier
|
|
!PARSE-TREE: | | | TypeDeclarationStmt
|
|
!PARSE-TREE: | | | | DeclarationTypeSpec -> IntrinsicTypeSpec -> IntegerTypeSpec ->
|
|
!PARSE-TREE: | | | | EntityDecl
|
|
!PARSE-TREE: | | | | | Name = 'i'
|
|
!PARSE-TREE: | | | SubscriptTriplet
|
|
!PARSE-TREE: | | | | Scalar -> Integer -> Expr = '1_4'
|
|
!PARSE-TREE: | | | | | LiteralConstant -> IntLiteralConstant = '1'
|
|
!PARSE-TREE: | | | | Scalar -> Integer -> Expr = '10_4'
|
|
!PARSE-TREE: | | | | | LiteralConstant -> IntLiteralConstant = '10'
|
|
!PARSE-TREE: | | Modifier -> OmpMapType -> Value = To
|
|
!PARSE-TREE: | | OmpObjectList -> OmpObject -> Designator -> DataRef -> ArrayElement
|
|
!PARSE-TREE: | | | DataRef -> Name = 'x'
|
|
!PARSE-TREE: | | | SectionSubscript -> Integer -> Expr = 'i'
|
|
!PARSE-TREE: | | | | Designator -> DataRef -> Name = 'i'
|
|
!PARSE-TREE: | | bool = 'true'
|
|
|
|
subroutine f12(x)
|
|
integer :: x(10)
|
|
!$omp target map(present, iterator(i = 1:10, integer :: j = 1:10), to: x((i + j) / 2))
|
|
x = x + 1
|
|
!$omp end target
|
|
end
|
|
|
|
!UNPARSE: SUBROUTINE f12 (x)
|
|
!UNPARSE: INTEGER x(10_4)
|
|
!UNPARSE: !$OMP TARGET MAP(PRESENT, ITERATOR(INTEGER i = 1_4:10_4, INTEGER j = 1_4:10_4), TO: x((i+j)/2_4))
|
|
!UNPARSE: x=x+1_4
|
|
!UNPARSE: !$OMP END TARGET
|
|
!UNPARSE: END SUBROUTINE
|
|
|
|
!PARSE-TREE: OmpBeginDirective
|
|
!PARSE-TREE: | OmpDirectiveName -> llvm::omp::Directive = target
|
|
!PARSE-TREE: | OmpClauseList -> OmpClause -> Map -> OmpMapClause
|
|
!PARSE-TREE: | | Modifier -> OmpMapTypeModifier -> Value = Present
|
|
!PARSE-TREE: | | Modifier -> OmpIterator -> OmpIteratorSpecifier
|
|
!PARSE-TREE: | | | TypeDeclarationStmt
|
|
!PARSE-TREE: | | | | DeclarationTypeSpec -> IntrinsicTypeSpec -> IntegerTypeSpec ->
|
|
!PARSE-TREE: | | | | EntityDecl
|
|
!PARSE-TREE: | | | | | Name = 'i'
|
|
!PARSE-TREE: | | | SubscriptTriplet
|
|
!PARSE-TREE: | | | | Scalar -> Integer -> Expr = '1_4'
|
|
!PARSE-TREE: | | | | | LiteralConstant -> IntLiteralConstant = '1'
|
|
!PARSE-TREE: | | | | Scalar -> Integer -> Expr = '10_4'
|
|
!PARSE-TREE: | | | | | LiteralConstant -> IntLiteralConstant = '10'
|
|
!PARSE-TREE: | | | OmpIteratorSpecifier
|
|
!PARSE-TREE: | | | | TypeDeclarationStmt
|
|
!PARSE-TREE: | | | | | DeclarationTypeSpec -> IntrinsicTypeSpec -> IntegerTypeSpec ->
|
|
!PARSE-TREE: | | | | | EntityDecl
|
|
!PARSE-TREE: | | | | | | Name = 'j'
|
|
!PARSE-TREE: | | | | SubscriptTriplet
|
|
!PARSE-TREE: | | | | | Scalar -> Integer -> Expr = '1_4'
|
|
!PARSE-TREE: | | | | | | LiteralConstant -> IntLiteralConstant = '1'
|
|
!PARSE-TREE: | | | | | Scalar -> Integer -> Expr = '10_4'
|
|
!PARSE-TREE: | | | | | | LiteralConstant -> IntLiteralConstant = '10'
|
|
!PARSE-TREE: | | Modifier -> OmpMapType -> Value = To
|
|
!PARSE-TREE: | | OmpObjectList -> OmpObject -> Designator -> DataRef -> ArrayElement
|
|
!PARSE-TREE: | | | DataRef -> Name = 'x'
|
|
!PARSE-TREE: | | | SectionSubscript -> Integer -> Expr = '(i+j)/2_4'
|
|
!PARSE-TREE: | | | | Divide
|
|
!PARSE-TREE: | | | | | Expr = '(i+j)'
|
|
!PARSE-TREE: | | | | | | Parentheses -> Expr = 'i+j'
|
|
!PARSE-TREE: | | | | | | | Add
|
|
!PARSE-TREE: | | | | | | | | Expr = 'i'
|
|
!PARSE-TREE: | | | | | | | | | Designator -> DataRef -> Name = 'i'
|
|
!PARSE-TREE: | | | | | | | | Expr = 'j'
|
|
!PARSE-TREE: | | | | | | | | | Designator -> DataRef -> Name = 'j'
|
|
!PARSE-TREE: | | | | | Expr = '2_4'
|
|
!PARSE-TREE: | | | | | | LiteralConstant -> IntLiteralConstant = '2'
|
|
!PARSE-TREE: | | bool = 'true'
|
|
|
|
subroutine f20(x, y)
|
|
integer :: x(10)
|
|
integer :: y
|
|
integer, parameter :: p = 23
|
|
!$omp target map(present, iterator(i, j = y:p, k = i:j), to: x(k))
|
|
x = x + 1
|
|
!$omp end target
|
|
end
|
|
|
|
!UNPARSE: SUBROUTINE f20 (x, y)
|
|
!UNPARSE: INTEGER x(10_4)
|
|
!UNPARSE: INTEGER y
|
|
!UNPARSE: INTEGER, PARAMETER :: p = 23_4
|
|
!UNPARSE: !$OMP TARGET MAP(PRESENT, ITERATOR(INTEGER i, j = y:23_4, INTEGER k = i:j), TO: x(k))
|
|
!UNPARSE: x=x+1_4
|
|
!UNPARSE: !$OMP END TARGET
|
|
!UNPARSE: END SUBROUTINE
|
|
|
|
!PARSE-TREE: OmpBeginDirective
|
|
!PARSE-TREE: | OmpDirectiveName -> llvm::omp::Directive = target
|
|
!PARSE-TREE: | OmpClauseList -> OmpClause -> Map -> OmpMapClause
|
|
!PARSE-TREE: | | Modifier -> OmpMapTypeModifier -> Value = Present
|
|
!PARSE-TREE: | | Modifier -> OmpIterator -> OmpIteratorSpecifier
|
|
!PARSE-TREE: | | | TypeDeclarationStmt
|
|
!PARSE-TREE: | | | | DeclarationTypeSpec -> IntrinsicTypeSpec -> IntegerTypeSpec ->
|
|
!PARSE-TREE: | | | | EntityDecl
|
|
!PARSE-TREE: | | | | | Name = 'i'
|
|
!PARSE-TREE: | | | | EntityDecl
|
|
!PARSE-TREE: | | | | | Name = 'j'
|
|
!PARSE-TREE: | | | SubscriptTriplet
|
|
!PARSE-TREE: | | | | Scalar -> Integer -> Expr = 'y'
|
|
!PARSE-TREE: | | | | | Designator -> DataRef -> Name = 'y'
|
|
!PARSE-TREE: | | | | Scalar -> Integer -> Expr = '23_4'
|
|
!PARSE-TREE: | | | | | Designator -> DataRef -> Name = 'p'
|
|
!PARSE-TREE: | | | OmpIteratorSpecifier
|
|
!PARSE-TREE: | | | | TypeDeclarationStmt
|
|
!PARSE-TREE: | | | | | DeclarationTypeSpec -> IntrinsicTypeSpec -> IntegerTypeSpec ->
|
|
!PARSE-TREE: | | | | | EntityDecl
|
|
!PARSE-TREE: | | | | | | Name = 'k'
|
|
!PARSE-TREE: | | | | SubscriptTriplet
|
|
!PARSE-TREE: | | | | | Scalar -> Integer -> Expr = 'i'
|
|
!PARSE-TREE: | | | | | | Designator -> DataRef -> Name = 'i'
|
|
!PARSE-TREE: | | | | | Scalar -> Integer -> Expr = 'j'
|
|
!PARSE-TREE: | | | | | | Designator -> DataRef -> Name = 'j'
|
|
!PARSE-TREE: | | Modifier -> OmpMapType -> Value = To
|
|
!PARSE-TREE: | | OmpObjectList -> OmpObject -> Designator -> DataRef -> ArrayElement
|
|
!PARSE-TREE: | | | DataRef -> Name = 'x'
|
|
!PARSE-TREE: | | | SectionSubscript -> Integer -> Expr = 'k'
|
|
!PARSE-TREE: | | | | Designator -> DataRef -> Name = 'k'
|
|
!PARSE-TREE: | | bool = 'true'
|
|
|
|
subroutine f21(x, y)
|
|
integer :: x(10)
|
|
integer :: y
|
|
integer, parameter :: p = 23
|
|
!$omp target map(mapper(default), from: x)
|
|
x = x + 1
|
|
!$omp end target
|
|
end
|
|
|
|
!UNPARSE: SUBROUTINE f21 (x, y)
|
|
!UNPARSE: INTEGER x(10_4)
|
|
!UNPARSE: INTEGER y
|
|
!UNPARSE: INTEGER, PARAMETER :: p = 23_4
|
|
!UNPARSE: !$OMP TARGET MAP(MAPPER(DEFAULT), FROM: X)
|
|
!UNPARSE: x=x+1_4
|
|
!UNPARSE: !$OMP END TARGET
|
|
!UNPARSE: END SUBROUTINE
|
|
|
|
!PARSE-TREE: OmpBeginDirective
|
|
!PARSE-TREE: | OmpDirectiveName -> llvm::omp::Directive = target
|
|
!PARSE-TREE: | OmpClauseList -> OmpClause -> Map -> OmpMapClause
|
|
!PARSE-TREE: | | Modifier -> OmpMapper -> Name = 'default'
|
|
!PARSE-TREE: | | Modifier -> OmpMapType -> Value = From
|
|
!PARSE-TREE: | | OmpObjectList -> OmpObject -> Designator -> DataRef -> Name = 'x'
|
|
|
|
subroutine f22(x)
|
|
integer :: x(10)
|
|
!$omp target map(present, iterator(i = 1:10), always, from: x(i))
|
|
x = x + 1
|
|
!$omp end target
|
|
end
|
|
|
|
!UNPARSE: SUBROUTINE f22 (x)
|
|
!UNPARSE: INTEGER x(10_4)
|
|
!UNPARSE: !$OMP TARGET MAP(PRESENT, ITERATOR(INTEGER i = 1_4:10_4), ALWAYS, FROM: x(i))
|
|
!UNPARSE: x=x+1_4
|
|
!UNPARSE: !$OMP END TARGET
|
|
!UNPARSE: END SUBROUTINE
|
|
|
|
!PARSE-TREE: OmpDirectiveName -> llvm::omp::Directive = target
|
|
!PARSE-TREE: OmpClauseList -> OmpClause -> Map -> OmpMapClause
|
|
!PARSE-TREE: | Modifier -> OmpMapTypeModifier -> Value = Present
|
|
!PARSE-TREE: | Modifier -> OmpIterator -> OmpIteratorSpecifier
|
|
!PARSE-TREE: | | TypeDeclarationStmt
|
|
!PARSE-TREE: | | | DeclarationTypeSpec -> IntrinsicTypeSpec -> IntegerTypeSpec ->
|
|
!PARSE-TREE: | | | EntityDecl
|
|
!PARSE-TREE: | | | | Name = 'i'
|
|
!PARSE-TREE: | | SubscriptTriplet
|
|
!PARSE-TREE: | | | Scalar -> Integer -> Expr = '1_4'
|
|
!PARSE-TREE: | | | | LiteralConstant -> IntLiteralConstant = '1'
|
|
!PARSE-TREE: | | | Scalar -> Integer -> Expr = '10_4'
|
|
!PARSE-TREE: | | | | LiteralConstant -> IntLiteralConstant = '10'
|
|
!PARSE-TREE: | Modifier -> OmpMapTypeModifier -> Value = Always
|
|
!PARSE-TREE: | Modifier -> OmpMapType -> Value = From
|
|
!PARSE-TREE: | OmpObjectList -> OmpObject -> Designator -> DataRef -> ArrayElement
|
|
!PARSE-TREE: | | DataRef -> Name = 'x'
|
|
!PARSE-TREE: | | SectionSubscript -> Integer -> Expr = 'i'
|
|
!PARSE-TREE: | | | Designator -> DataRef -> Name = 'i'
|
|
!PARSE-TREE: | bool = 'true'
|