Index: cfe/trunk/test/AST/ast-dump-openmp-atomic.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-atomic.c +++ cfe/trunk/test/AST/ast-dump-openmp-atomic.c @@ -0,0 +1,18 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test(int i) { +#pragma omp atomic + ++i; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-atomic.c:3:1, line:6:1> line:3:6 test 'void (int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:15 used i 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPAtomicDirective {{.*}} +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | |-UnaryOperator {{.*}} 'int' prefix '++' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'i' 'int' +// CHECK-NEXT: | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-atomic.c:4:9) *const restrict' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'i' 'int' Index: cfe/trunk/test/AST/ast-dump-openmp-barrier.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-barrier.c +++ cfe/trunk/test/AST/ast-dump-openmp-barrier.c @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test() { +#pragma omp barrier +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-barrier.c:3:1, line:5:1> line:3:6 test 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPBarrierDirective {{.*}} Index: cfe/trunk/test/AST/ast-dump-openmp-cancel.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-cancel.c +++ cfe/trunk/test/AST/ast-dump-openmp-cancel.c @@ -0,0 +1,20 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test() { +#pragma omp parallel + { +#pragma omp cancel parallel + } +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-cancel.c:3:1, line:8:1> line:3:6 test 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPParallelDirective {{.*}} +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPCancelDirective {{.*}} +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-cancel.c:4:9) *const restrict' Index: cfe/trunk/test/AST/ast-dump-openmp-cancellation-point.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-cancellation-point.c +++ cfe/trunk/test/AST/ast-dump-openmp-cancellation-point.c @@ -0,0 +1,20 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test() { +#pragma omp parallel + { +#pragma omp cancellation point parallel + } +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-cancellation-point.c:3:1, line:8:1> line:3:6 test 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPParallelDirective {{.*}} +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPCancellationPointDirective {{.*}} +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-cancellation-point.c:4:9) *const restrict' Index: cfe/trunk/test/AST/ast-dump-openmp-critical.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-critical.c +++ cfe/trunk/test/AST/ast-dump-openmp-critical.c @@ -0,0 +1,15 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test() { +#pragma omp critical + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-critical.c:3:1, line:6:1> line:3:6 test 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPCriticalDirective {{.*}} +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> +// CHECK-NEXT: |-NullStmt {{.*}} +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-critical.c:4:9) *const restrict' Index: cfe/trunk/test/AST/ast-dump-openmp-distribute-parallel-for-simd.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-distribute-parallel-for-simd.c +++ cfe/trunk/test/AST/ast-dump-openmp-distribute-parallel-for-simd.c @@ -0,0 +1,262 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp distribute parallel for simd + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp distribute parallel for simd + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp distribute parallel for simd collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp distribute parallel for simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp distribute parallel for simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-distribute-parallel-for-simd.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: cfe/trunk/test/AST/ast-dump-openmp-distribute-parallel-for.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-distribute-parallel-for.c +++ cfe/trunk/test/AST/ast-dump-openmp-distribute-parallel-for.c @@ -0,0 +1,262 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp distribute parallel for + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp distribute parallel for + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp distribute parallel for collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp distribute parallel for collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp distribute parallel for collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-distribute-parallel-for.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPDistributeParallelForDirective {{.*}} +// CHECK-NEXT: |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: cfe/trunk/test/AST/ast-dump-openmp-distribute-simd.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-distribute-simd.c +++ cfe/trunk/test/AST/ast-dump-openmp-distribute-simd.c @@ -0,0 +1,242 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp distribute simd + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp distribute simd + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp distribute simd collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp distribute simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp distribute simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-distribute-simd.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPDistributeSimdDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPDistributeSimdDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPDistributeSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPDistributeSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPDistributeSimdDirective {{.*}} +// CHECK-NEXT: |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: cfe/trunk/test/AST/ast-dump-openmp-distribute.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-distribute.c +++ cfe/trunk/test/AST/ast-dump-openmp-distribute.c @@ -0,0 +1,242 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp distribute + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp distribute + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp distribute collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp distribute collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp distribute collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-distribute.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPDistributeDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPDistributeDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPDistributeDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPDistributeDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPDistributeDirective {{.*}} +// CHECK-NEXT: |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: cfe/trunk/test/AST/ast-dump-openmp-flush.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-flush.c +++ cfe/trunk/test/AST/ast-dump-openmp-flush.c @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test() { +#pragma omp flush +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-flush.c:3:1, line:5:1> line:3:6 test 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPFlushDirective {{.*}} Index: cfe/trunk/test/AST/ast-dump-openmp-for-simd.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-for-simd.c +++ cfe/trunk/test/AST/ast-dump-openmp-for-simd.c @@ -0,0 +1,242 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp for simd + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp for simd + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp for simd collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp for simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp for simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-for-simd.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPForSimdDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPForSimdDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPForSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPForSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPForSimdDirective {{.*}} +// CHECK-NEXT: |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: cfe/trunk/test/AST/ast-dump-openmp-for.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-for.c +++ cfe/trunk/test/AST/ast-dump-openmp-for.c @@ -0,0 +1,242 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp for + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp for + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp for collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp for collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp for collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl 0x{{.*}} <> +// CHECK: |-FunctionDecl 0x{{.*}} <{{.*}}ast-dump-openmp-for.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl 0x{{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt 0x{{.*}} +// CHECK-NEXT: | `-OMPForDirective 0x{{.*}} +// CHECK-NEXT: | `-CapturedStmt 0x{{.*}} +// CHECK-NEXT: | |-CapturedDecl 0x{{.*}} <> +// CHECK-NEXT: | | |-ForStmt 0x{{.*}} +// CHECK-NEXT: | | | |-DeclStmt 0x{{.*}} +// CHECK-NEXT: | | | | `-VarDecl 0x{{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator 0x{{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator 0x{{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt 0x{{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl 0x{{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-for.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl 0x{{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl 0x{{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl 0x{{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl 0x{{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt 0x{{.*}} +// CHECK-NEXT: | `-OMPForDirective 0x{{.*}} +// CHECK-NEXT: | `-CapturedStmt 0x{{.*}} +// CHECK-NEXT: | |-CapturedDecl 0x{{.*}} <> +// CHECK-NEXT: | | |-ForStmt 0x{{.*}} +// CHECK-NEXT: | | | |-DeclStmt 0x{{.*}} +// CHECK-NEXT: | | | | `-VarDecl 0x{{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator 0x{{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator 0x{{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt 0x{{.*}} +// CHECK-NEXT: | | | |-DeclStmt 0x{{.*}} +// CHECK-NEXT: | | | | `-VarDecl 0x{{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator 0x{{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator 0x{{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt 0x{{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl 0x{{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-for.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl 0x{{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl 0x{{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl 0x{{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl 0x{{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl 0x{{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt 0x{{.*}} +// CHECK-NEXT: | `-OMPForDirective 0x{{.*}} +// CHECK-NEXT: | |-OMPCollapseClause 0x{{.*}} +// CHECK-NEXT: | | `-ConstantExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral 0x{{.*}} 'int' 1 +// CHECK-NEXT: | `-CapturedStmt 0x{{.*}} +// CHECK-NEXT: | |-CapturedDecl 0x{{.*}} <> +// CHECK-NEXT: | | |-ForStmt 0x{{.*}} +// CHECK-NEXT: | | | |-DeclStmt 0x{{.*}} +// CHECK-NEXT: | | | | `-VarDecl 0x{{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator 0x{{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator 0x{{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt 0x{{.*}} +// CHECK-NEXT: | | | |-DeclStmt 0x{{.*}} +// CHECK-NEXT: | | | | `-VarDecl 0x{{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator 0x{{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator 0x{{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt 0x{{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl 0x{{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-for.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl 0x{{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl 0x{{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl 0x{{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl 0x{{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl 0x{{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt 0x{{.*}} +// CHECK-NEXT: | `-OMPForDirective 0x{{.*}} +// CHECK-NEXT: | |-OMPCollapseClause 0x{{.*}} +// CHECK-NEXT: | | `-ConstantExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral 0x{{.*}} 'int' 2 +// CHECK-NEXT: | `-CapturedStmt 0x{{.*}} +// CHECK-NEXT: | |-CapturedDecl 0x{{.*}} <> +// CHECK-NEXT: | | |-ForStmt 0x{{.*}} +// CHECK-NEXT: | | | |-DeclStmt 0x{{.*}} +// CHECK-NEXT: | | | | `-VarDecl 0x{{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator 0x{{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator 0x{{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt 0x{{.*}} +// CHECK-NEXT: | | | |-DeclStmt 0x{{.*}} +// CHECK-NEXT: | | | | `-VarDecl 0x{{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator 0x{{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator 0x{{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt 0x{{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl 0x{{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-for.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl 0x{{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl 0x{{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl 0x{{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl 0x{{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl 0x{{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl 0x{{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt 0x{{.*}} +// CHECK-NEXT: `-OMPForDirective 0x{{.*}} +// CHECK-NEXT: |-OMPCollapseClause 0x{{.*}} +// CHECK-NEXT: | `-ConstantExpr 0x{{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral 0x{{.*}} 'int' 2 +// CHECK-NEXT: `-CapturedStmt 0x{{.*}} +// CHECK-NEXT: |-CapturedDecl 0x{{.*}} <> +// CHECK-NEXT: | |-ForStmt 0x{{.*}} +// CHECK-NEXT: | | |-DeclStmt 0x{{.*}} +// CHECK-NEXT: | | | `-VarDecl 0x{{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator 0x{{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator 0x{{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt 0x{{.*}} +// CHECK-NEXT: | | |-DeclStmt 0x{{.*}} +// CHECK-NEXT: | | | `-VarDecl 0x{{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator 0x{{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator 0x{{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt 0x{{.*}} +// CHECK-NEXT: | | |-DeclStmt 0x{{.*}} +// CHECK-NEXT: | | | `-VarDecl 0x{{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator 0x{{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator 0x{{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt 0x{{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl 0x{{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-for.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl 0x{{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl 0x{{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl 0x{{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'z' 'int' Index: cfe/trunk/test/AST/ast-dump-openmp-master.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-master.c +++ cfe/trunk/test/AST/ast-dump-openmp-master.c @@ -0,0 +1,15 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test() { +#pragma omp master + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-master.c:3:1, line:6:1> line:3:6 test 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPMasterDirective {{.*}} +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> +// CHECK-NEXT: |-NullStmt {{.*}} +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-master.c:4:9) *const restrict' Index: cfe/trunk/test/AST/ast-dump-openmp-ordered.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-ordered.c +++ cfe/trunk/test/AST/ast-dump-openmp-ordered.c @@ -0,0 +1,82 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test_one() { +#pragma omp ordered + ; +} + +void test_two(int x) { +#pragma omp for ordered + for (int i = 0; i < x; i++) + ; +} + +void test_three(int x) { +#pragma omp for ordered(1) + for (int i = 0; i < x; i++) { +#pragma omp ordered depend(source) + } +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-ordered.c:3:1, line:6:1> line:3:6 test_one 'void ()' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPOrderedDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> +// CHECK-NEXT: | |-NullStmt {{.*}} +// CHECK-NEXT: | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-ordered.c:4:9) *const restrict' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:8:6 test_two 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPForDirective {{.*}} +// CHECK-NEXT: | |-OMPOrderedClause {{.*}} +// CHECK-NEXT: | | `-<<>> +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-ordered.c:9:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:14:6 test_three 'void (int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPForDirective {{.*}} +// CHECK-NEXT: |-OMPOrderedClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-CompoundStmt {{.*}} +// CHECK-NEXT: | | `-OMPOrderedDirective {{.*}} +// CHECK-NEXT: | | |-OMPDependClause {{.*}} > +// CHECK-NEXT: | | `-<<>> +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-ordered.c:15:9) *const restrict' +// CHECK-NEXT: | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' Index: cfe/trunk/test/AST/ast-dump-openmp-parallel-for-simd.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-parallel-for-simd.c +++ cfe/trunk/test/AST/ast-dump-openmp-parallel-for-simd.c @@ -0,0 +1,252 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp parallel for simd + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp parallel for simd + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp parallel for simd collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp parallel for simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp parallel for simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-parallel-for-simd.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPParallelForSimdDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPParallelForSimdDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPParallelForSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPParallelForSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPParallelForSimdDirective {{.*}} +// CHECK-NEXT: |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: cfe/trunk/test/AST/ast-dump-openmp-parallel-for.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-parallel-for.c +++ cfe/trunk/test/AST/ast-dump-openmp-parallel-for.c @@ -0,0 +1,252 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp parallel for + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp parallel for + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp parallel for collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp parallel for collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp parallel for collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-parallel-for.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPParallelForDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPParallelForDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPParallelForDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPParallelForDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPParallelForDirective {{.*}} +// CHECK-NEXT: |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: cfe/trunk/test/AST/ast-dump-openmp-parallel-master-XFAIL.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-parallel-master-XFAIL.c +++ cfe/trunk/test/AST/ast-dump-openmp-parallel-master-XFAIL.c @@ -0,0 +1,34 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -fopenmp-version=50 -ast-dump %s 2>&1 | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test_zero() { +#pragma omp parallel master + ; +} +// CHECK: {{.*}}ast-dump-openmp-parallel-master-XFAIL.c:4:22: warning: extra tokens at the end of '#pragma omp parallel' are ignored + +void test_one() { +#pragma omp parallel master + { ; } +} +// CHECK: {{.*}}ast-dump-openmp-parallel-master-XFAIL.c:10:22: warning: extra tokens at the end of '#pragma omp parallel' are ignored + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-parallel-master-XFAIL.c:3:1, line:6:1> line:3:6 test_zero 'void ()' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPParallelDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-master-XFAIL.c:4:9) *const restrict' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:9:6 test_one 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPParallelDirective {{.*}} +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-CompoundStmt {{.*}} +// CHECK-NEXT: | `-NullStmt {{.*}} +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-master-XFAIL.c:10:9) *const restrict' Index: cfe/trunk/test/AST/ast-dump-openmp-parallel-sections.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-parallel-sections.c +++ cfe/trunk/test/AST/ast-dump-openmp-parallel-sections.c @@ -0,0 +1,25 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test_zero() { +#pragma omp parallel sections + {} +} + +void test_one() { +#pragma omp parallel sections + { ; } +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-parallel-sections.c:3:1, line:6:1> line:3:6 test_zero 'void ()' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: `-FunctionDecl {{.*}} line:8:6 test_one 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPParallelSectionsDirective {{.*}} +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> +// CHECK-NEXT: |-CompoundStmt {{.*}} +// CHECK-NEXT: | `-NullStmt {{.*}} +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-sections.c:9:9) *const restrict' Index: cfe/trunk/test/AST/ast-dump-openmp-parallel.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-parallel.c +++ cfe/trunk/test/AST/ast-dump-openmp-parallel.c @@ -0,0 +1,17 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test() { +#pragma omp parallel + ; +} + +// CHECK: TranslationUnitDecl 0x{{.*}} <> +// CHECK: `-FunctionDecl 0x{{.*}} <{{.*}}ast-dump-openmp-parallel.c:3:1, line:6:1> line:3:6 test 'void ()' +// CHECK-NEXT: `-CompoundStmt 0x{{.*}} +// CHECK-NEXT: `-OMPParallelDirective 0x{{.*}} +// CHECK-NEXT: `-CapturedStmt 0x{{.*}} +// CHECK-NEXT: `-CapturedDecl 0x{{.*}} <> nothrow +// CHECK-NEXT: |-NullStmt 0x{{.*}} +// CHECK-NEXT: |-ImplicitParamDecl 0x{{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl 0x{{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: `-ImplicitParamDecl 0x{{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel.c:4:9) *const restrict' Index: cfe/trunk/test/AST/ast-dump-openmp-section.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-section.c +++ cfe/trunk/test/AST/ast-dump-openmp-section.c @@ -0,0 +1,28 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test() { +#pragma omp sections + { +#pragma omp section + ; + } +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-section.c:3:1, line:9:1> line:3:6 test 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPSectionsDirective {{.*}} +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> +// CHECK-NEXT: |-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPSectionDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> +// CHECK-NEXT: | |-NullStmt {{.*}} +// CHECK-NEXT: | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-section.c:6:9) *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-section.c:4:9) *const restrict' +// CHECK-NEXT: |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | `-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: `-CapturedDecl {{.*}} <> +// CHECK-NEXT: |-NullStmt {{.*}} +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-section.c:6:9) *const restrict' Index: cfe/trunk/test/AST/ast-dump-openmp-sections.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-sections.c +++ cfe/trunk/test/AST/ast-dump-openmp-sections.c @@ -0,0 +1,23 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test_zero() { +#pragma omp sections + {} +} + +void test_one() { +#pragma omp sections + { ; } +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-sections.c:3:1, line:6:1> line:3:6 test_zero 'void ()' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: `-FunctionDecl {{.*}} line:8:6 test_one 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPSectionsDirective {{.*}} +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> +// CHECK-NEXT: |-CompoundStmt {{.*}} +// CHECK-NEXT: | `-NullStmt {{.*}} +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-sections.c:9:9) *const restrict' Index: cfe/trunk/test/AST/ast-dump-openmp-simd.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-simd.c +++ cfe/trunk/test/AST/ast-dump-openmp-simd.c @@ -0,0 +1,242 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp simd + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp simd + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp simd collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-simd.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPSimdDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPSimdDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPSimdDirective {{.*}} +// CHECK-NEXT: |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: cfe/trunk/test/AST/ast-dump-openmp-single.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-single.c +++ cfe/trunk/test/AST/ast-dump-openmp-single.c @@ -0,0 +1,15 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test() { +#pragma omp single + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-single.c:3:1, line:6:1> line:3:6 test 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPSingleDirective {{.*}} +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> +// CHECK-NEXT: |-NullStmt {{.*}} +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-single.c:4:9) *const restrict' Index: cfe/trunk/test/AST/ast-dump-openmp-target-data.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-target-data.c +++ cfe/trunk/test/AST/ast-dump-openmp-target-data.c @@ -0,0 +1,18 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test(int x) { +#pragma omp target data map(x) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target-data.c:3:1, line:6:1> line:3:6 test 'void (int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:15 used x 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetDataDirective {{.*}} +// CHECK-NEXT: |-OMPMapClause {{.*}} +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> +// CHECK-NEXT: |-NullStmt {{.*}} +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-data.c:4:9) *const restrict' Index: cfe/trunk/test/AST/ast-dump-openmp-target-enter-data.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-target-enter-data.c +++ cfe/trunk/test/AST/ast-dump-openmp-target-enter-data.c @@ -0,0 +1,24 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test(int x) { +#pragma omp target enter data map(to \ + : x) +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target-enter-data.c:3:1, line:6:1> line:3:6 test 'void (int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:15 used x 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetEnterDataDirective {{.*}} +// CHECK-NEXT: |-OMPMapClause {{.*}} +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-CompoundStmt {{.*}} +// CHECK-NEXT: |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-enter-data.c:4:9) *const restrict' Index: cfe/trunk/test/AST/ast-dump-openmp-target-exit-data.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-target-exit-data.c +++ cfe/trunk/test/AST/ast-dump-openmp-target-exit-data.c @@ -0,0 +1,24 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test(int x) { +#pragma omp target exit data map(from \ + : x) +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target-exit-data.c:3:1, line:6:1> line:3:6 test 'void (int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:15 used x 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetExitDataDirective {{.*}} +// CHECK-NEXT: |-OMPMapClause {{.*}} +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-CompoundStmt {{.*}} +// CHECK-NEXT: |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-exit-data.c:4:9) *const restrict' Index: cfe/trunk/test/AST/ast-dump-openmp-target-parallel-for-simd.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-target-parallel-for-simd.c +++ cfe/trunk/test/AST/ast-dump-openmp-target-parallel-for-simd.c @@ -0,0 +1,957 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp target parallel for simd + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp target parallel for simd + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp target parallel for simd collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp target parallel for simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp target parallel for simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target-parallel-for-simd.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetParallelForSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetParallelForSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetParallelForSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetParallelForSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetParallelForSimdDirective {{.*}} +// CHECK-NEXT: |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: cfe/trunk/test/AST/ast-dump-openmp-target-parallel-for.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-target-parallel-for.c +++ cfe/trunk/test/AST/ast-dump-openmp-target-parallel-for.c @@ -0,0 +1,957 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp target parallel for + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp target parallel for + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp target parallel for collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp target parallel for collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp target parallel for collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target-parallel-for.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetParallelForDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetParallelForDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetParallelForDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetParallelForDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetParallelForDirective {{.*}} +// CHECK-NEXT: |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: cfe/trunk/test/AST/ast-dump-openmp-target-parallel.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-target-parallel.c +++ cfe/trunk/test/AST/ast-dump-openmp-target-parallel.c @@ -0,0 +1,53 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test() { +#pragma omp target parallel + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target-parallel.c:3:1, line:6:1> line:3:6 test 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetParallelDirective {{.*}} +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-CapturedStmt {{.*}} +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel.c:4:9) *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel.c:4:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | `-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel.c:4:9) *const restrict' +// CHECK-NEXT: |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel.c:4:9) *const restrict' +// CHECK-NEXT: |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | `-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-CapturedStmt {{.*}} +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel.c:4:9) *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel.c:4:9) *const restrict' +// CHECK-NEXT: |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | `-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-NullStmt {{.*}} +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel.c:4:9) *const restrict' Index: cfe/trunk/test/AST/ast-dump-openmp-target-simd.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-target-simd.c +++ cfe/trunk/test/AST/ast-dump-openmp-target-simd.c @@ -0,0 +1,497 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp target simd + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp target simd + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp target simd collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp target simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp target simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target-simd.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetSimdDirective {{.*}} +// CHECK-NEXT: |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: cfe/trunk/test/AST/ast-dump-openmp-target-teams-distribute-parallel-for-simd.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-target-teams-distribute-parallel-for-simd.c +++ cfe/trunk/test/AST/ast-dump-openmp-target-teams-distribute-parallel-for-simd.c @@ -0,0 +1,1957 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp target teams distribute parallel for simd + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp target teams distribute parallel for simd + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp target teams distribute parallel for simd collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp target teams distribute parallel for simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp target teams distribute parallel for simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetTeamsDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | | `-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetTeamsDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetTeamsDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetTeamsDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetTeamsDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | | |-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: cfe/trunk/test/AST/ast-dump-openmp-target-teams-distribute-parallel-for.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-target-teams-distribute-parallel-for.c +++ cfe/trunk/test/AST/ast-dump-openmp-target-teams-distribute-parallel-for.c @@ -0,0 +1,1957 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp target teams distribute parallel for + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp target teams distribute parallel for + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp target teams distribute parallel for collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp target teams distribute parallel for collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp target teams distribute parallel for collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetTeamsDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | | `-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetTeamsDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetTeamsDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetTeamsDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | | | `-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetTeamsDistributeParallelForDirective {{.*}} +// CHECK-NEXT: |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | | |-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: cfe/trunk/test/AST/ast-dump-openmp-target-teams-distribute-simd.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-target-teams-distribute-simd.c +++ cfe/trunk/test/AST/ast-dump-openmp-target-teams-distribute-simd.c @@ -0,0 +1,957 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp target teams distribute simd + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp target teams distribute simd + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp target teams distribute simd collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp target teams distribute simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp target teams distribute simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target-teams-distribute-simd.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetTeamsDistributeSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetTeamsDistributeSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetTeamsDistributeSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetTeamsDistributeSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetTeamsDistributeSimdDirective {{.*}} +// CHECK-NEXT: |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: cfe/trunk/test/AST/ast-dump-openmp-target-teams-distribute.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-target-teams-distribute.c +++ cfe/trunk/test/AST/ast-dump-openmp-target-teams-distribute.c @@ -0,0 +1,957 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp target teams distribute + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp target teams distribute + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp target teams distribute collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp target teams distribute collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp target teams distribute collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target-teams-distribute.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetTeamsDistributeDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:4:9) *const restrict' +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:4:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:4:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:4:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetTeamsDistributeDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:10:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:10:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:10:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetTeamsDistributeDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:17:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:17:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:17:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetTeamsDistributeDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:24:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:24:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:24:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetTeamsDistributeDirective {{.*}} +// CHECK-NEXT: |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:31:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:31:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:31:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: cfe/trunk/test/AST/ast-dump-openmp-target-teams.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-target-teams.c +++ cfe/trunk/test/AST/ast-dump-openmp-target-teams.c @@ -0,0 +1,53 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test() { +#pragma omp target teams + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target-teams.c:3:1, line:6:1> line:3:6 test 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetTeamsDirective {{.*}} +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-CapturedStmt {{.*}} +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams.c:4:9) *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams.c:4:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | `-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams.c:4:9) *const restrict' +// CHECK-NEXT: |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams.c:4:9) *const restrict' +// CHECK-NEXT: |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | `-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-CapturedStmt {{.*}} +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams.c:4:9) *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams.c:4:9) *const restrict' +// CHECK-NEXT: |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | `-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-NullStmt {{.*}} +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams.c:4:9) *const restrict' Index: cfe/trunk/test/AST/ast-dump-openmp-target-update.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-target-update.c +++ cfe/trunk/test/AST/ast-dump-openmp-target-update.c @@ -0,0 +1,23 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test(int x) { +#pragma omp target update to(x) +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target-update.c:3:1, line:5:1> line:3:6 test 'void (int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:15 used x 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetUpdateDirective {{.*}} +// CHECK-NEXT: |-OMPToClause {{.*}} +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-CompoundStmt {{.*}} +// CHECK-NEXT: |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-update.c:4:9) *const restrict' Index: cfe/trunk/test/AST/ast-dump-openmp-target.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-target.c +++ cfe/trunk/test/AST/ast-dump-openmp-target.c @@ -0,0 +1,29 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test() { +#pragma omp target + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target.c:3:1, line:6:1> line:3:6 test 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetDirective {{.*}} +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-CapturedStmt {{.*}} +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-NullStmt {{.*}} +// CHECK-NEXT: | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target.c:4:9) *const restrict' +// CHECK-NEXT: |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target.c:4:9) *const restrict' +// CHECK-NEXT: |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | `-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-NullStmt {{.*}} +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target.c:4:9) *const restrict' Index: cfe/trunk/test/AST/ast-dump-openmp-task.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-task.c +++ cfe/trunk/test/AST/ast-dump-openmp-task.c @@ -0,0 +1,21 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test() { +#pragma omp task + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-task.c:3:1, line:6:1> line:3:6 test 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTaskDirective {{.*}} +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-NullStmt {{.*}} +// CHECK-NEXT: |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-task.c:4:9) *const restrict' Index: cfe/trunk/test/AST/ast-dump-openmp-taskgroup.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-taskgroup.c +++ cfe/trunk/test/AST/ast-dump-openmp-taskgroup.c @@ -0,0 +1,15 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test() { +#pragma omp taskgroup + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-taskgroup.c:3:1, line:6:1> line:3:6 test 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTaskgroupDirective {{.*}} +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> +// CHECK-NEXT: |-NullStmt {{.*}} +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-taskgroup.c:4:9) *const restrict' Index: cfe/trunk/test/AST/ast-dump-openmp-taskloop-simd.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-taskloop-simd.c +++ cfe/trunk/test/AST/ast-dump-openmp-taskloop-simd.c @@ -0,0 +1,312 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp taskloop simd + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp taskloop simd + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp taskloop simd collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp taskloop simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp taskloop simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-taskloop-simd.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTaskLoopSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .st. 'const long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .liter. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .reductions. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-taskloop-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTaskLoopSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .st. 'const long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .liter. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .reductions. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-taskloop-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTaskLoopSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .st. 'const long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .liter. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .reductions. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-taskloop-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTaskLoopSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .st. 'const long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .liter. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .reductions. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-taskloop-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTaskLoopSimdDirective {{.*}} +// CHECK-NEXT: |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt {{.*}} +// CHECK-NEXT: | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .lb. 'const unsigned long' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .ub. 'const unsigned long' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .st. 'const long' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .liter. 'const int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .reductions. 'void *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-taskloop-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: cfe/trunk/test/AST/ast-dump-openmp-taskloop.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-taskloop.c +++ cfe/trunk/test/AST/ast-dump-openmp-taskloop.c @@ -0,0 +1,312 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp taskloop + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp taskloop + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp taskloop collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp taskloop collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp taskloop collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-taskloop.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTaskLoopDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .st. 'const long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .liter. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .reductions. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-taskloop.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTaskLoopDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .st. 'const long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .liter. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .reductions. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-taskloop.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTaskLoopDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .st. 'const long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .liter. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .reductions. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-taskloop.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTaskLoopDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .st. 'const long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .liter. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .reductions. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-taskloop.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTaskLoopDirective {{.*}} +// CHECK-NEXT: |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt {{.*}} +// CHECK-NEXT: | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .lb. 'const unsigned long' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .ub. 'const unsigned long' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .st. 'const long' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .liter. 'const int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .reductions. 'void *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-taskloop.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: cfe/trunk/test/AST/ast-dump-openmp-taskwait.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-taskwait.c +++ cfe/trunk/test/AST/ast-dump-openmp-taskwait.c @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test() { +#pragma omp taskwait +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-taskwait.c:3:1, line:5:1> line:3:6 test 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTaskwaitDirective {{.*}} Index: cfe/trunk/test/AST/ast-dump-openmp-taskyield.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-taskyield.c +++ cfe/trunk/test/AST/ast-dump-openmp-taskyield.c @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test() { +#pragma omp taskyield +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-taskyield.c:3:1, line:5:1> line:3:6 test 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTaskyieldDirective {{.*}} Index: cfe/trunk/test/AST/ast-dump-openmp-teams-distribute-parallel-for-simd.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-teams-distribute-parallel-for-simd.c +++ cfe/trunk/test/AST/ast-dump-openmp-teams-distribute-parallel-for-simd.c @@ -0,0 +1,2163 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp target +#pragma omp teams distribute parallel for simd + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp target +#pragma omp teams distribute parallel for simd + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp target +#pragma omp teams distribute parallel for simd collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp target +#pragma omp teams distribute parallel for simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp target +#pragma omp teams distribute parallel for simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK:TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:3:1, line:8:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | | `-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | `-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:5:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:5:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:5:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:5:9) *const restrict' +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:10:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:11:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:11:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:12:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:12:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:11:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:12:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:12:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:18:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | | | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:19:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:19:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:20:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:20:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:19:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:20:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:20:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:26:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | | | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:27:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:25 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'long' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} > 'long' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'long' '*' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} <> 'long' +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:27:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:28:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:28:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:27:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:28:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:28:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:25 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'long' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} > 'long' '-' +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'long' '*' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-ImplicitCastExpr {{.*}} <> 'long' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:34:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetDirective {{.*}} +// CHECK-NEXT: |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:36:9) *const restrict' +// CHECK-NEXT: | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:36:9) *const restrict' +// CHECK-NEXT: | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | | |-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | | | `-FieldDecl {{.*}} col:27 implicit 'int &' +// CHECK-NEXT: | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:36:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:35:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:27 implicit 'int &' +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:36:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:36:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:27 implicit 'int &' +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:36:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-OMPCapturedExprDecl {{.*}} col:25 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'long' +// CHECK-NEXT: | | | `-BinaryOperator {{.*}} > 'long' '-' +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'long' '*' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} <> 'long' +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:35:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:36:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:36:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:27 implicit 'int &' +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:36:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:35:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int &' +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:36:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:36:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:27 implicit 'int &' +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:36:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | |-OMPCapturedExprDecl {{.*}} col:25 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'long' +// CHECK-NEXT: | `-BinaryOperator {{.*}} > 'long' '-' +// CHECK-NEXT: | |-BinaryOperator {{.*}} 'long' '*' +// CHECK-NEXT: | | |-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | `-ImplicitCastExpr {{.*}} <> 'long' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: cfe/trunk/test/AST/ast-dump-openmp-teams-distribute-parallel-for.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-teams-distribute-parallel-for.c +++ cfe/trunk/test/AST/ast-dump-openmp-teams-distribute-parallel-for.c @@ -0,0 +1,2163 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp target +#pragma omp teams distribute parallel for + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp target +#pragma omp teams distribute parallel for + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp target +#pragma omp teams distribute parallel for collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp target +#pragma omp teams distribute parallel for collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp target +#pragma omp teams distribute parallel for collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:3:1, line:8:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-OMPTeamsDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | | `-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | `-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-OMPTeamsDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:5:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:5:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:5:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:5:9) *const restrict' +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:10:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-OMPTeamsDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:11:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:11:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-OMPTeamsDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:12:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:12:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:11:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:12:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:12:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:18:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-OMPTeamsDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | | | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:19:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:19:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-OMPTeamsDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:20:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:20:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:19:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:20:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:20:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:26:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-OMPTeamsDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | | | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | | | `-FieldDecl {{.*}} col:5 implicit 'int &' +// CHECK-NEXT: | | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:27:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:5 implicit 'int &' +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | | `-FieldDecl {{.*}} col:5 implicit 'int &' +// CHECK-NEXT: | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:25 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'long' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} > 'long' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'long' '*' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} <> 'long' +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:27:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-OMPTeamsDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:28:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:5 implicit 'int &' +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:28:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:27:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:5 implicit 'int &' +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:28:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:5 implicit 'int &' +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:28:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:25 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'long' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} > 'long' '-' +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'long' '*' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-ImplicitCastExpr {{.*}} <> 'long' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:34:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetDirective {{.*}} +// CHECK-NEXT: |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-OMPTeamsDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:36:9) *const restrict' +// CHECK-NEXT: | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:36:9) *const restrict' +// CHECK-NEXT: | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | | |-FieldDecl {{.*}} col:5 implicit 'int &' +// CHECK-NEXT: | | | | | | `-FieldDecl {{.*}} col:27 implicit 'int &' +// CHECK-NEXT: | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:36:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:35:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:5 implicit 'int &' +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:27 implicit 'int &' +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:36:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:36:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:5 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:27 implicit 'int &' +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:36:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-OMPCapturedExprDecl {{.*}} col:25 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'long' +// CHECK-NEXT: | | | `-BinaryOperator {{.*}} > 'long' '-' +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'long' '*' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} <> 'long' +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:35:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-OMPTeamsDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:36:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:36:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:5 implicit 'int &' +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:27 implicit 'int &' +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:36:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:35:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:5 implicit 'int &' +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int &' +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:36:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:36:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:5 implicit 'int &' +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:27 implicit 'int &' +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:36:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | |-OMPCapturedExprDecl {{.*}} col:25 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'long' +// CHECK-NEXT: | `-BinaryOperator {{.*}} > 'long' '-' +// CHECK-NEXT: | |-BinaryOperator {{.*}} 'long' '*' +// CHECK-NEXT: | | |-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | `-ImplicitCastExpr {{.*}} <> 'long' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: cfe/trunk/test/AST/ast-dump-openmp-teams-distribute-simd.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-teams-distribute-simd.c +++ cfe/trunk/test/AST/ast-dump-openmp-teams-distribute-simd.c @@ -0,0 +1,1203 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp target +#pragma omp teams distribute simd + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp target +#pragma omp teams distribute simd + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp target +#pragma omp teams distribute simd collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp target +#pragma omp teams distribute simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp target +#pragma omp teams distribute simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-teams-distribute-simd.c:3:1, line:8:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-OMPTeamsDistributeSimdDirective {{.*}} +// CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-OMPTeamsDistributeSimdDirective {{.*}} +// CHECK-NEXT: | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:5:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:5:9) *const restrict' +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:10:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-OMPTeamsDistributeSimdDirective {{.*}} +// CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:11:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:11:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-OMPTeamsDistributeSimdDirective {{.*}} +// CHECK-NEXT: | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:12:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:11:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:12:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:18:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-OMPTeamsDistributeSimdDirective {{.*}} +// CHECK-NEXT: | | | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:19:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:19:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-OMPTeamsDistributeSimdDirective {{.*}} +// CHECK-NEXT: | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:20:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:19:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:20:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:26:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-OMPTeamsDistributeSimdDirective {{.*}} +// CHECK-NEXT: | | | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:27:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:25 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'long' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} > 'long' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'long' '*' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} <> 'long' +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:27:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-OMPTeamsDistributeSimdDirective {{.*}} +// CHECK-NEXT: | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:28:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:27:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:28:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:25 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'long' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} > 'long' '-' +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'long' '*' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-ImplicitCastExpr {{.*}} <> 'long' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:34:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetDirective {{.*}} +// CHECK-NEXT: |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-OMPTeamsDistributeSimdDirective {{.*}} +// CHECK-NEXT: | | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:36:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:35:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:27 implicit 'int &' +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:36:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-OMPCapturedExprDecl {{.*}} col:25 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'long' +// CHECK-NEXT: | | | `-BinaryOperator {{.*}} > 'long' '-' +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'long' '*' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} <> 'long' +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:35:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-OMPTeamsDistributeSimdDirective {{.*}} +// CHECK-NEXT: | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:36:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:35:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int &' +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:36:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | |-OMPCapturedExprDecl {{.*}} col:25 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'long' +// CHECK-NEXT: | `-BinaryOperator {{.*}} > 'long' '-' +// CHECK-NEXT: | |-BinaryOperator {{.*}} 'long' '*' +// CHECK-NEXT: | | |-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | `-ImplicitCastExpr {{.*}} <> 'long' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: cfe/trunk/test/AST/ast-dump-openmp-teams-distribute.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-teams-distribute.c +++ cfe/trunk/test/AST/ast-dump-openmp-teams-distribute.c @@ -0,0 +1,1203 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp target +#pragma omp teams distribute + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp target +#pragma omp teams distribute + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp target +#pragma omp teams distribute collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp target +#pragma omp teams distribute collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp target +#pragma omp teams distribute collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-teams-distribute.c:3:1, line:8:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-OMPTeamsDistributeDirective {{.*}} +// CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:4:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-OMPTeamsDistributeDirective {{.*}} +// CHECK-NEXT: | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:5:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:5:9) *const restrict' +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:10:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-OMPTeamsDistributeDirective {{.*}} +// CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:11:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:11:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-OMPTeamsDistributeDirective {{.*}} +// CHECK-NEXT: | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:12:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:11:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:12:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:18:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-OMPTeamsDistributeDirective {{.*}} +// CHECK-NEXT: | | | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:19:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:19:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-OMPTeamsDistributeDirective {{.*}} +// CHECK-NEXT: | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:20:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:19:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:20:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:26:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-OMPTeamsDistributeDirective {{.*}} +// CHECK-NEXT: | | | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:27:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:5 implicit 'int &' +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:25 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'long' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} > 'long' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'long' '*' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} <> 'long' +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:27:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-OMPTeamsDistributeDirective {{.*}} +// CHECK-NEXT: | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:28:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:27:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:5 implicit 'int &' +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:28:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:25 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'long' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} > 'long' '-' +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'long' '*' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-ImplicitCastExpr {{.*}} <> 'long' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:34:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetDirective {{.*}} +// CHECK-NEXT: |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-OMPTeamsDistributeDirective {{.*}} +// CHECK-NEXT: | | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:36:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:35:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:5 implicit 'int &' +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:27 implicit 'int &' +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:36:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-OMPCapturedExprDecl {{.*}} col:25 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'long' +// CHECK-NEXT: | | | `-BinaryOperator {{.*}} > 'long' '-' +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'long' '*' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} <> 'long' +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:35:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 9 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-OMPTeamsDistributeDirective {{.*}} +// CHECK-NEXT: | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:36:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:35:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:5 implicit 'int &' +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int &' +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:36:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | |-OMPCapturedExprDecl {{.*}} col:25 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'long' +// CHECK-NEXT: | `-BinaryOperator {{.*}} > 'long' '-' +// CHECK-NEXT: | |-BinaryOperator {{.*}} 'long' '*' +// CHECK-NEXT: | | |-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | `-ImplicitCastExpr {{.*}} <> 'long' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: cfe/trunk/test/AST/ast-dump-openmp-teams.c =================================================================== --- cfe/trunk/test/AST/ast-dump-openmp-teams.c +++ cfe/trunk/test/AST/ast-dump-openmp-teams.c @@ -0,0 +1,56 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s + +void test() { +#pragma omp target +#pragma omp teams + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-teams.c:3:1, line:7:1> line:3:6 test 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetDirective {{.*}} +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-CapturedStmt {{.*}} +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-OMPTeamsDirective {{.*}} +// CHECK-NEXT: | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams.c:5:9) *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams.c:4:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | `-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams.c:5:9) *const restrict' +// CHECK-NEXT: |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams.c:4:9) *const restrict' +// CHECK-NEXT: |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | `-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-OMPTeamsDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams.c:5:9) *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams.c:4:9) *const restrict' +// CHECK-NEXT: |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | `-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-NullStmt {{.*}} +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams.c:5:9) *const restrict'