Debian Codegraph @

flang/test/Parser/OpenMP/unroll.f90

raw
1 ! RUN: %flang_fc1 -fdebug-unparse-no-sema -fopenmp %s | FileCheck --ignore-case %s
2 ! RUN: %flang_fc1 -fdebug-dump-parse-tree -fopenmp %s | FileCheck --check-prefix="PARSE-TREE" %s
3
4 subroutine openmp_parse_unroll(x)
5
6 integer, intent(inout)::x
7
8 !CHECK: !$omp unroll partial(3)
9 !$omp unroll partial(3)
10 !CHECK: do
11 do x = 1, 100
12 call F1()
13 !CHECK: end do
14 end do
15 !CHECK: !$omp end unroll
16 !$omp end unroll
17
18 !PARSE-TREE: OpenMPConstruct -> OpenMPLoopConstruct
19 !PARSE-TREE: OmpBeginLoopDirective
20 !PARSE-TREE: OmpLoopDirective -> llvm::omp::Directive = unroll
21 !PARSE-TREE: OmpClauseList -> OmpClause -> Partial -> Scalar -> Integer -> Constant -> Expr = '3_4'
22 !PARSE-TREE: LiteralConstant -> IntLiteralConstant = '3'
23
24 END subroutine openmp_parse_unroll