annotate clang/test/AST/ast-dump-openmp-target-simd.c @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 0572611fdcc8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 void test_one(int x) {
anatofuz
parents:
diff changeset
4 #pragma omp target simd
anatofuz
parents:
diff changeset
5 for (int i = 0; i < x; i++)
anatofuz
parents:
diff changeset
6 ;
anatofuz
parents:
diff changeset
7 }
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 void test_two(int x, int y) {
anatofuz
parents:
diff changeset
10 #pragma omp target simd
anatofuz
parents:
diff changeset
11 for (int i = 0; i < x; i++)
anatofuz
parents:
diff changeset
12 for (int i = 0; i < y; i++)
anatofuz
parents:
diff changeset
13 ;
anatofuz
parents:
diff changeset
14 }
anatofuz
parents:
diff changeset
15
anatofuz
parents:
diff changeset
16 void test_three(int x, int y) {
anatofuz
parents:
diff changeset
17 #pragma omp target simd collapse(1)
anatofuz
parents:
diff changeset
18 for (int i = 0; i < x; i++)
anatofuz
parents:
diff changeset
19 for (int i = 0; i < y; i++)
anatofuz
parents:
diff changeset
20 ;
anatofuz
parents:
diff changeset
21 }
anatofuz
parents:
diff changeset
22
anatofuz
parents:
diff changeset
23 void test_four(int x, int y) {
anatofuz
parents:
diff changeset
24 #pragma omp target simd collapse(2)
anatofuz
parents:
diff changeset
25 for (int i = 0; i < x; i++)
anatofuz
parents:
diff changeset
26 for (int i = 0; i < y; i++)
anatofuz
parents:
diff changeset
27 ;
anatofuz
parents:
diff changeset
28 }
anatofuz
parents:
diff changeset
29
anatofuz
parents:
diff changeset
30 void test_five(int x, int y, int z) {
anatofuz
parents:
diff changeset
31 #pragma omp target simd collapse(2)
anatofuz
parents:
diff changeset
32 for (int i = 0; i < x; i++)
anatofuz
parents:
diff changeset
33 for (int i = 0; i < y; i++)
anatofuz
parents:
diff changeset
34 for (int i = 0; i < z; i++)
anatofuz
parents:
diff changeset
35 ;
anatofuz
parents:
diff changeset
36 }
anatofuz
parents:
diff changeset
37
anatofuz
parents:
diff changeset
38 // CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
anatofuz
parents:
diff changeset
39 // CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target-simd.c:3:1, line:7:1> line:3:6 test_one 'void (int)'
anatofuz
parents:
diff changeset
40 // CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
anatofuz
parents:
diff changeset
41 // CHECK-NEXT: | `-CompoundStmt {{.*}} <col:22, line:7:1>
anatofuz
parents:
diff changeset
42 // CHECK-NEXT: | `-OMPTargetSimdDirective {{.*}} <line:4:1, col:24>
anatofuz
parents:
diff changeset
43 // CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <<invalid sloc>> <implicit>
anatofuz
parents:
diff changeset
44 // CHECK-NEXT: | | `-DeclRefExpr {{.*}} <line:5:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
anatofuz
parents:
diff changeset
45 // CHECK-NEXT: | `-CapturedStmt {{.*}} <col:3, line:6:5>
anatofuz
parents:
diff changeset
46 // CHECK-NEXT: | |-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow
anatofuz
parents:
diff changeset
47 // CHECK-NEXT: | | |-CapturedStmt {{.*}} <line:5:3, line:6:5>
anatofuz
parents:
diff changeset
48 // CHECK-NEXT: | | | |-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow
anatofuz
parents:
diff changeset
49 // CHECK-NEXT: | | | | |-ForStmt {{.*}} <line:5:3, line:6:5>
anatofuz
parents:
diff changeset
50 // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} <line:5:8, col:17>
anatofuz
parents:
diff changeset
51 // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used i 'int' cinit
anatofuz
parents:
diff changeset
52 // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
anatofuz
parents:
diff changeset
53 // CHECK-NEXT: | | | | | |-<<<NULL>>>
anatofuz
parents:
diff changeset
54 // CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} <col:19, col:23> 'int' '<'
anatofuz
parents:
diff changeset
55 // CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} <col:19> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
56 // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue Var {{.*}} 'i' 'int'
anatofuz
parents:
diff changeset
57 // CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} <col:23> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
58 // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} <col:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
anatofuz
parents:
diff changeset
59 // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} <col:26, col:27> 'int' postfix '++'
anatofuz
parents:
diff changeset
60 // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue Var {{.*}} 'i' 'int'
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
61 // CHECK-NEXT: | | | | | `-NullStmt {{.*}} <line:6:5>
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
62 // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} <line:4:1> col:1 implicit __context 'struct (unnamed at {{.*}}ast-dump-openmp-target-simd.c:4:1) *const restrict'
150
anatofuz
parents:
diff changeset
63 // CHECK-NEXT: | | | | `-VarDecl {{.*}} <line:5:8, col:16> col:12 used i 'int' cinit
anatofuz
parents:
diff changeset
64 // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
anatofuz
parents:
diff changeset
65 // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} <col:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
anatofuz
parents:
diff changeset
66 // CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <<invalid sloc>> Implicit __forceinline
anatofuz
parents:
diff changeset
67 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <line:4:1> col:1 implicit .global_tid. 'const int'
anatofuz
parents:
diff changeset
68 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .part_id. 'const int *const restrict'
anatofuz
parents:
diff changeset
69 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .privates. 'void *const restrict'
anatofuz
parents:
diff changeset
70 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
anatofuz
parents:
diff changeset
71 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .task_t. 'void *const'
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
72 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit __context 'struct (unnamed at {{.*}}ast-dump-openmp-target-simd.c:4:1) *const restrict'
150
anatofuz
parents:
diff changeset
73 // CHECK-NEXT: | | |-RecordDecl {{.*}} <col:1> col:1 implicit struct definition
anatofuz
parents:
diff changeset
74 // CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <<invalid sloc>> Implicit
anatofuz
parents:
diff changeset
75 // CHECK-NEXT: | | | `-FieldDecl {{.*}} <line:5:23> col:23 implicit 'int'
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
76 // CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>> Implicit {{.*}}
150
anatofuz
parents:
diff changeset
77 // CHECK-NEXT: | | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow
anatofuz
parents:
diff changeset
78 // CHECK-NEXT: | | |-ForStmt {{.*}} <col:3, line:6:5>
anatofuz
parents:
diff changeset
79 // CHECK-NEXT: | | | |-DeclStmt {{.*}} <line:5:8, col:17>
anatofuz
parents:
diff changeset
80 // CHECK-NEXT: | | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used i 'int' cinit
anatofuz
parents:
diff changeset
81 // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
anatofuz
parents:
diff changeset
82 // CHECK-NEXT: | | | |-<<<NULL>>>
anatofuz
parents:
diff changeset
83 // CHECK-NEXT: | | | |-BinaryOperator {{.*}} <col:19, col:23> 'int' '<'
anatofuz
parents:
diff changeset
84 // CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} <col:19> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
85 // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue Var {{.*}} 'i' 'int'
anatofuz
parents:
diff changeset
86 // CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} <col:23> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
87 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
anatofuz
parents:
diff changeset
88 // CHECK-NEXT: | | | |-UnaryOperator {{.*}} <col:26, col:27> 'int' postfix '++'
anatofuz
parents:
diff changeset
89 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue Var {{.*}} 'i' 'int'
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
90 // CHECK-NEXT: | | | `-NullStmt {{.*}} <line:6:5>
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
91 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <line:4:1> col:1 implicit __context 'struct (unnamed at {{.*}}ast-dump-openmp-target-simd.c:4:1) *const restrict'
150
anatofuz
parents:
diff changeset
92 // CHECK-NEXT: | | `-VarDecl {{.*}} <line:5:8, col:16> col:12 used i 'int' cinit
anatofuz
parents:
diff changeset
93 // CHECK-NEXT: | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
anatofuz
parents:
diff changeset
94 // CHECK-NEXT: | `-DeclRefExpr {{.*}} <col:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
anatofuz
parents:
diff changeset
95 // CHECK-NEXT: |-FunctionDecl {{.*}} <line:9:1, line:14:1> line:9:6 test_two 'void (int, int)'
anatofuz
parents:
diff changeset
96 // CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
anatofuz
parents:
diff changeset
97 // CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:22, col:26> col:26 used y 'int'
anatofuz
parents:
diff changeset
98 // CHECK-NEXT: | `-CompoundStmt {{.*}} <col:29, line:14:1>
anatofuz
parents:
diff changeset
99 // CHECK-NEXT: | `-OMPTargetSimdDirective {{.*}} <line:10:1, col:24>
anatofuz
parents:
diff changeset
100 // CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <<invalid sloc>> <implicit>
anatofuz
parents:
diff changeset
101 // CHECK-NEXT: | | |-DeclRefExpr {{.*}} <line:11:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
anatofuz
parents:
diff changeset
102 // CHECK-NEXT: | | `-DeclRefExpr {{.*}} <line:12:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
anatofuz
parents:
diff changeset
103 // CHECK-NEXT: | `-CapturedStmt {{.*}} <line:11:3, line:13:7>
anatofuz
parents:
diff changeset
104 // CHECK-NEXT: | |-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow
anatofuz
parents:
diff changeset
105 // CHECK-NEXT: | | |-CapturedStmt {{.*}} <line:11:3, line:13:7>
anatofuz
parents:
diff changeset
106 // CHECK-NEXT: | | | |-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow
anatofuz
parents:
diff changeset
107 // CHECK-NEXT: | | | | |-ForStmt {{.*}} <line:11:3, line:13:7>
anatofuz
parents:
diff changeset
108 // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} <line:11:8, col:17>
anatofuz
parents:
diff changeset
109 // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used i 'int' cinit
anatofuz
parents:
diff changeset
110 // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
anatofuz
parents:
diff changeset
111 // CHECK-NEXT: | | | | | |-<<<NULL>>>
anatofuz
parents:
diff changeset
112 // CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} <col:19, col:23> 'int' '<'
anatofuz
parents:
diff changeset
113 // CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} <col:19> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
114 // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue Var {{.*}} 'i' 'int'
anatofuz
parents:
diff changeset
115 // CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} <col:23> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
116 // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} <col:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
anatofuz
parents:
diff changeset
117 // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} <col:26, col:27> 'int' postfix '++'
anatofuz
parents:
diff changeset
118 // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue Var {{.*}} 'i' 'int'
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
119 // CHECK-NEXT: | | | | | `-ForStmt {{.*}} <line:12:5, line:13:7>
150
anatofuz
parents:
diff changeset
120 // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} <line:12:10, col:19>
anatofuz
parents:
diff changeset
121 // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} <col:10, col:18> col:14 used i 'int' cinit
anatofuz
parents:
diff changeset
122 // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
anatofuz
parents:
diff changeset
123 // CHECK-NEXT: | | | | | |-<<<NULL>>>
anatofuz
parents:
diff changeset
124 // CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} <col:21, col:25> 'int' '<'
anatofuz
parents:
diff changeset
125 // CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} <col:21> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
126 // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} <col:21> 'int' lvalue Var {{.*}} 'i' 'int'
anatofuz
parents:
diff changeset
127 // CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} <col:25> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
128 // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} <col:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
anatofuz
parents:
diff changeset
129 // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} <col:28, col:29> 'int' postfix '++'
anatofuz
parents:
diff changeset
130 // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue Var {{.*}} 'i' 'int'
anatofuz
parents:
diff changeset
131 // CHECK-NEXT: | | | | | `-NullStmt {{.*}} <line:13:7>
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
132 // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} <line:10:1> col:1 implicit __context 'struct (unnamed at {{.*}}ast-dump-openmp-target-simd.c:10:1) *const restrict'
150
anatofuz
parents:
diff changeset
133 // CHECK-NEXT: | | | | |-VarDecl {{.*}} <line:11:8, col:16> col:12 used i 'int' cinit
anatofuz
parents:
diff changeset
134 // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
anatofuz
parents:
diff changeset
135 // CHECK-NEXT: | | | | `-VarDecl {{.*}} <line:12:10, col:18> col:14 used i 'int' cinit
anatofuz
parents:
diff changeset
136 // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
anatofuz
parents:
diff changeset
137 // CHECK-NEXT: | | | |-DeclRefExpr {{.*}} <line:11:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
anatofuz
parents:
diff changeset
138 // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} <line:12:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
anatofuz
parents:
diff changeset
139 // CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <<invalid sloc>> Implicit __forceinline
anatofuz
parents:
diff changeset
140 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <line:10:1> col:1 implicit .global_tid. 'const int'
anatofuz
parents:
diff changeset
141 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .part_id. 'const int *const restrict'
anatofuz
parents:
diff changeset
142 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .privates. 'void *const restrict'
anatofuz
parents:
diff changeset
143 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
anatofuz
parents:
diff changeset
144 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .task_t. 'void *const'
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
145 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit __context 'struct (unnamed at {{.*}}ast-dump-openmp-target-simd.c:10:1) *const restrict'
150
anatofuz
parents:
diff changeset
146 // CHECK-NEXT: | | |-RecordDecl {{.*}} <col:1> col:1 implicit struct definition
anatofuz
parents:
diff changeset
147 // CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <<invalid sloc>> Implicit
anatofuz
parents:
diff changeset
148 // CHECK-NEXT: | | | |-FieldDecl {{.*}} <line:11:23> col:23 implicit 'int'
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
149 // CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>> Implicit {{.*}}
150
anatofuz
parents:
diff changeset
150 // CHECK-NEXT: | | | `-FieldDecl {{.*}} <line:12:25> col:25 implicit 'int'
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
151 // CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>> Implicit {{.*}}
150
anatofuz
parents:
diff changeset
152 // CHECK-NEXT: | | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow
anatofuz
parents:
diff changeset
153 // CHECK-NEXT: | | |-ForStmt {{.*}} <line:11:3, line:13:7>
anatofuz
parents:
diff changeset
154 // CHECK-NEXT: | | | |-DeclStmt {{.*}} <line:11:8, col:17>
anatofuz
parents:
diff changeset
155 // CHECK-NEXT: | | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used i 'int' cinit
anatofuz
parents:
diff changeset
156 // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
anatofuz
parents:
diff changeset
157 // CHECK-NEXT: | | | |-<<<NULL>>>
anatofuz
parents:
diff changeset
158 // CHECK-NEXT: | | | |-BinaryOperator {{.*}} <col:19, col:23> 'int' '<'
anatofuz
parents:
diff changeset
159 // CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} <col:19> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
160 // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue Var {{.*}} 'i' 'int'
anatofuz
parents:
diff changeset
161 // CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} <col:23> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
162 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
anatofuz
parents:
diff changeset
163 // CHECK-NEXT: | | | |-UnaryOperator {{.*}} <col:26, col:27> 'int' postfix '++'
anatofuz
parents:
diff changeset
164 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue Var {{.*}} 'i' 'int'
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
165 // CHECK-NEXT: | | | `-ForStmt {{.*}} <line:12:5, line:13:7>
150
anatofuz
parents:
diff changeset
166 // CHECK-NEXT: | | | |-DeclStmt {{.*}} <line:12:10, col:19>
anatofuz
parents:
diff changeset
167 // CHECK-NEXT: | | | | `-VarDecl {{.*}} <col:10, col:18> col:14 used i 'int' cinit
anatofuz
parents:
diff changeset
168 // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
anatofuz
parents:
diff changeset
169 // CHECK-NEXT: | | | |-<<<NULL>>>
anatofuz
parents:
diff changeset
170 // CHECK-NEXT: | | | |-BinaryOperator {{.*}} <col:21, col:25> 'int' '<'
anatofuz
parents:
diff changeset
171 // CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} <col:21> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
172 // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} <col:21> 'int' lvalue Var {{.*}} 'i' 'int'
anatofuz
parents:
diff changeset
173 // CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} <col:25> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
174 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
anatofuz
parents:
diff changeset
175 // CHECK-NEXT: | | | |-UnaryOperator {{.*}} <col:28, col:29> 'int' postfix '++'
anatofuz
parents:
diff changeset
176 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue Var {{.*}} 'i' 'int'
anatofuz
parents:
diff changeset
177 // CHECK-NEXT: | | | `-NullStmt {{.*}} <line:13:7>
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
178 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <line:10:1> col:1 implicit __context 'struct (unnamed at {{.*}}ast-dump-openmp-target-simd.c:10:1) *const restrict'
150
anatofuz
parents:
diff changeset
179 // CHECK-NEXT: | | |-VarDecl {{.*}} <line:11:8, col:16> col:12 used i 'int' cinit
anatofuz
parents:
diff changeset
180 // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
anatofuz
parents:
diff changeset
181 // CHECK-NEXT: | | `-VarDecl {{.*}} <line:12:10, col:18> col:14 used i 'int' cinit
anatofuz
parents:
diff changeset
182 // CHECK-NEXT: | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
anatofuz
parents:
diff changeset
183 // CHECK-NEXT: | |-DeclRefExpr {{.*}} <line:11:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
anatofuz
parents:
diff changeset
184 // CHECK-NEXT: | `-DeclRefExpr {{.*}} <line:12:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
anatofuz
parents:
diff changeset
185 // CHECK-NEXT: |-FunctionDecl {{.*}} <line:16:1, line:21:1> line:16:6 test_three 'void (int, int)'
anatofuz
parents:
diff changeset
186 // CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:17, col:21> col:21 used x 'int'
anatofuz
parents:
diff changeset
187 // CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:24, col:28> col:28 used y 'int'
anatofuz
parents:
diff changeset
188 // CHECK-NEXT: | `-CompoundStmt {{.*}} <col:31, line:21:1>
anatofuz
parents:
diff changeset
189 // CHECK-NEXT: | `-OMPTargetSimdDirective {{.*}} <line:17:1, col:36>
anatofuz
parents:
diff changeset
190 // CHECK-NEXT: | |-OMPCollapseClause {{.*}} <col:25, col:35>
anatofuz
parents:
diff changeset
191 // CHECK-NEXT: | | `-ConstantExpr {{.*}} <col:34> 'int'
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
192 // CHECK-NEXT: | | |-value: Int 1
150
anatofuz
parents:
diff changeset
193 // CHECK-NEXT: | | `-IntegerLiteral {{.*}} <col:34> 'int' 1
anatofuz
parents:
diff changeset
194 // CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <<invalid sloc>> <implicit>
anatofuz
parents:
diff changeset
195 // CHECK-NEXT: | | |-DeclRefExpr {{.*}} <line:18:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
anatofuz
parents:
diff changeset
196 // CHECK-NEXT: | | `-DeclRefExpr {{.*}} <line:19:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
anatofuz
parents:
diff changeset
197 // CHECK-NEXT: | `-CapturedStmt {{.*}} <line:18:3, line:20:7>
anatofuz
parents:
diff changeset
198 // CHECK-NEXT: | |-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow
anatofuz
parents:
diff changeset
199 // CHECK-NEXT: | | |-CapturedStmt {{.*}} <line:18:3, line:20:7>
anatofuz
parents:
diff changeset
200 // CHECK-NEXT: | | | |-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow
anatofuz
parents:
diff changeset
201 // CHECK-NEXT: | | | | |-ForStmt {{.*}} <line:18:3, line:20:7>
anatofuz
parents:
diff changeset
202 // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} <line:18:8, col:17>
anatofuz
parents:
diff changeset
203 // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used i 'int' cinit
anatofuz
parents:
diff changeset
204 // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
anatofuz
parents:
diff changeset
205 // CHECK-NEXT: | | | | | |-<<<NULL>>>
anatofuz
parents:
diff changeset
206 // CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} <col:19, col:23> 'int' '<'
anatofuz
parents:
diff changeset
207 // CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} <col:19> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
208 // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue Var {{.*}} 'i' 'int'
anatofuz
parents:
diff changeset
209 // CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} <col:23> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
210 // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} <col:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
anatofuz
parents:
diff changeset
211 // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} <col:26, col:27> 'int' postfix '++'
anatofuz
parents:
diff changeset
212 // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue Var {{.*}} 'i' 'int'
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
213 // CHECK-NEXT: | | | | | `-ForStmt {{.*}} <line:19:5, line:20:7>
150
anatofuz
parents:
diff changeset
214 // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} <line:19:10, col:19>
anatofuz
parents:
diff changeset
215 // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} <col:10, col:18> col:14 used i 'int' cinit
anatofuz
parents:
diff changeset
216 // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
anatofuz
parents:
diff changeset
217 // CHECK-NEXT: | | | | | |-<<<NULL>>>
anatofuz
parents:
diff changeset
218 // CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} <col:21, col:25> 'int' '<'
anatofuz
parents:
diff changeset
219 // CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} <col:21> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
220 // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} <col:21> 'int' lvalue Var {{.*}} 'i' 'int'
anatofuz
parents:
diff changeset
221 // CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} <col:25> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
222 // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} <col:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
anatofuz
parents:
diff changeset
223 // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} <col:28, col:29> 'int' postfix '++'
anatofuz
parents:
diff changeset
224 // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue Var {{.*}} 'i' 'int'
anatofuz
parents:
diff changeset
225 // CHECK-NEXT: | | | | | `-NullStmt {{.*}} <line:20:7>
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
226 // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} <line:17:1> col:1 implicit __context 'struct (unnamed at {{.*}}ast-dump-openmp-target-simd.c:17:1) *const restrict'
150
anatofuz
parents:
diff changeset
227 // CHECK-NEXT: | | | | |-VarDecl {{.*}} <line:18:8, col:16> col:12 used i 'int' cinit
anatofuz
parents:
diff changeset
228 // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
anatofuz
parents:
diff changeset
229 // CHECK-NEXT: | | | | `-VarDecl {{.*}} <line:19:10, col:18> col:14 used i 'int' cinit
anatofuz
parents:
diff changeset
230 // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
anatofuz
parents:
diff changeset
231 // CHECK-NEXT: | | | |-DeclRefExpr {{.*}} <line:18:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
anatofuz
parents:
diff changeset
232 // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} <line:19:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
anatofuz
parents:
diff changeset
233 // CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <<invalid sloc>> Implicit __forceinline
anatofuz
parents:
diff changeset
234 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <line:17:1> col:1 implicit .global_tid. 'const int'
anatofuz
parents:
diff changeset
235 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .part_id. 'const int *const restrict'
anatofuz
parents:
diff changeset
236 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .privates. 'void *const restrict'
anatofuz
parents:
diff changeset
237 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
anatofuz
parents:
diff changeset
238 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .task_t. 'void *const'
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
239 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit __context 'struct (unnamed at {{.*}}ast-dump-openmp-target-simd.c:17:1) *const restrict'
150
anatofuz
parents:
diff changeset
240 // CHECK-NEXT: | | |-RecordDecl {{.*}} <col:1> col:1 implicit struct definition
anatofuz
parents:
diff changeset
241 // CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <<invalid sloc>> Implicit
anatofuz
parents:
diff changeset
242 // CHECK-NEXT: | | | |-FieldDecl {{.*}} <line:18:23> col:23 implicit 'int'
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
243 // CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>> Implicit {{.*}}
150
anatofuz
parents:
diff changeset
244 // CHECK-NEXT: | | | `-FieldDecl {{.*}} <line:19:25> col:25 implicit 'int'
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
245 // CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>> Implicit {{.*}}
150
anatofuz
parents:
diff changeset
246 // CHECK-NEXT: | | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow
anatofuz
parents:
diff changeset
247 // CHECK-NEXT: | | |-ForStmt {{.*}} <line:18:3, line:20:7>
anatofuz
parents:
diff changeset
248 // CHECK-NEXT: | | | |-DeclStmt {{.*}} <line:18:8, col:17>
anatofuz
parents:
diff changeset
249 // CHECK-NEXT: | | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used i 'int' cinit
anatofuz
parents:
diff changeset
250 // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
anatofuz
parents:
diff changeset
251 // CHECK-NEXT: | | | |-<<<NULL>>>
anatofuz
parents:
diff changeset
252 // CHECK-NEXT: | | | |-BinaryOperator {{.*}} <col:19, col:23> 'int' '<'
anatofuz
parents:
diff changeset
253 // CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} <col:19> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
254 // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue Var {{.*}} 'i' 'int'
anatofuz
parents:
diff changeset
255 // CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} <col:23> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
256 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
anatofuz
parents:
diff changeset
257 // CHECK-NEXT: | | | |-UnaryOperator {{.*}} <col:26, col:27> 'int' postfix '++'
anatofuz
parents:
diff changeset
258 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue Var {{.*}} 'i' 'int'
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
259 // CHECK-NEXT: | | | `-ForStmt {{.*}} <line:19:5, line:20:7>
150
anatofuz
parents:
diff changeset
260 // CHECK-NEXT: | | | |-DeclStmt {{.*}} <line:19:10, col:19>
anatofuz
parents:
diff changeset
261 // CHECK-NEXT: | | | | `-VarDecl {{.*}} <col:10, col:18> col:14 used i 'int' cinit
anatofuz
parents:
diff changeset
262 // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
anatofuz
parents:
diff changeset
263 // CHECK-NEXT: | | | |-<<<NULL>>>
anatofuz
parents:
diff changeset
264 // CHECK-NEXT: | | | |-BinaryOperator {{.*}} <col:21, col:25> 'int' '<'
anatofuz
parents:
diff changeset
265 // CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} <col:21> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
266 // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} <col:21> 'int' lvalue Var {{.*}} 'i' 'int'
anatofuz
parents:
diff changeset
267 // CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} <col:25> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
268 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
anatofuz
parents:
diff changeset
269 // CHECK-NEXT: | | | |-UnaryOperator {{.*}} <col:28, col:29> 'int' postfix '++'
anatofuz
parents:
diff changeset
270 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue Var {{.*}} 'i' 'int'
anatofuz
parents:
diff changeset
271 // CHECK-NEXT: | | | `-NullStmt {{.*}} <line:20:7>
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
272 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <line:17:1> col:1 implicit __context 'struct (unnamed at {{.*}}ast-dump-openmp-target-simd.c:17:1) *const restrict'
150
anatofuz
parents:
diff changeset
273 // CHECK-NEXT: | | |-VarDecl {{.*}} <line:18:8, col:16> col:12 used i 'int' cinit
anatofuz
parents:
diff changeset
274 // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
anatofuz
parents:
diff changeset
275 // CHECK-NEXT: | | `-VarDecl {{.*}} <line:19:10, col:18> col:14 used i 'int' cinit
anatofuz
parents:
diff changeset
276 // CHECK-NEXT: | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
anatofuz
parents:
diff changeset
277 // CHECK-NEXT: | |-DeclRefExpr {{.*}} <line:18:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
anatofuz
parents:
diff changeset
278 // CHECK-NEXT: | `-DeclRefExpr {{.*}} <line:19:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
anatofuz
parents:
diff changeset
279 // CHECK-NEXT: |-FunctionDecl {{.*}} <line:23:1, line:28:1> line:23:6 test_four 'void (int, int)'
anatofuz
parents:
diff changeset
280 // CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:16, col:20> col:20 used x 'int'
anatofuz
parents:
diff changeset
281 // CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
anatofuz
parents:
diff changeset
282 // CHECK-NEXT: | `-CompoundStmt {{.*}} <col:30, line:28:1>
anatofuz
parents:
diff changeset
283 // CHECK-NEXT: | `-OMPTargetSimdDirective {{.*}} <line:24:1, col:36>
anatofuz
parents:
diff changeset
284 // CHECK-NEXT: | |-OMPCollapseClause {{.*}} <col:25, col:35>
anatofuz
parents:
diff changeset
285 // CHECK-NEXT: | | `-ConstantExpr {{.*}} <col:34> 'int'
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
286 // CHECK-NEXT: | | |-value: Int 2
150
anatofuz
parents:
diff changeset
287 // CHECK-NEXT: | | `-IntegerLiteral {{.*}} <col:34> 'int' 2
anatofuz
parents:
diff changeset
288 // CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <<invalid sloc>> <implicit>
anatofuz
parents:
diff changeset
289 // CHECK-NEXT: | | |-DeclRefExpr {{.*}} <line:25:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
anatofuz
parents:
diff changeset
290 // CHECK-NEXT: | | `-DeclRefExpr {{.*}} <line:26:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
anatofuz
parents:
diff changeset
291 // CHECK-NEXT: | `-CapturedStmt {{.*}} <line:25:3, line:27:7>
anatofuz
parents:
diff changeset
292 // CHECK-NEXT: | |-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow
anatofuz
parents:
diff changeset
293 // CHECK-NEXT: | | |-CapturedStmt {{.*}} <line:25:3, line:27:7>
anatofuz
parents:
diff changeset
294 // CHECK-NEXT: | | | |-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow
anatofuz
parents:
diff changeset
295 // CHECK-NEXT: | | | | |-ForStmt {{.*}} <line:25:3, line:27:7>
anatofuz
parents:
diff changeset
296 // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} <line:25:8, col:17>
anatofuz
parents:
diff changeset
297 // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used i 'int' cinit
anatofuz
parents:
diff changeset
298 // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
anatofuz
parents:
diff changeset
299 // CHECK-NEXT: | | | | | |-<<<NULL>>>
anatofuz
parents:
diff changeset
300 // CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} <col:19, col:23> 'int' '<'
anatofuz
parents:
diff changeset
301 // CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} <col:19> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
302 // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue Var {{.*}} 'i' 'int'
anatofuz
parents:
diff changeset
303 // CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} <col:23> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
304 // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} <col:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
anatofuz
parents:
diff changeset
305 // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} <col:26, col:27> 'int' postfix '++'
anatofuz
parents:
diff changeset
306 // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue Var {{.*}} 'i' 'int'
anatofuz
parents:
diff changeset
307 // CHECK-NEXT: | | | | | `-ForStmt {{.*}} <line:26:5, line:27:7>
anatofuz
parents:
diff changeset
308 // CHECK-NEXT: | | | | | |-DeclStmt {{.*}} <line:26:10, col:19>
anatofuz
parents:
diff changeset
309 // CHECK-NEXT: | | | | | | `-VarDecl {{.*}} <col:10, col:18> col:14 used i 'int' cinit
anatofuz
parents:
diff changeset
310 // CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
anatofuz
parents:
diff changeset
311 // CHECK-NEXT: | | | | | |-<<<NULL>>>
anatofuz
parents:
diff changeset
312 // CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} <col:21, col:25> 'int' '<'
anatofuz
parents:
diff changeset
313 // CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} <col:21> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
314 // CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} <col:21> 'int' lvalue Var {{.*}} 'i' 'int'
anatofuz
parents:
diff changeset
315 // CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} <col:25> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
316 // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} <col:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
anatofuz
parents:
diff changeset
317 // CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} <col:28, col:29> 'int' postfix '++'
anatofuz
parents:
diff changeset
318 // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue Var {{.*}} 'i' 'int'
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
319 // CHECK-NEXT: | | | | | `-NullStmt {{.*}} <line:27:7>
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
320 // CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} <line:24:1> col:1 implicit __context 'struct (unnamed at {{.*}}ast-dump-openmp-target-simd.c:24:1) *const restrict'
150
anatofuz
parents:
diff changeset
321 // CHECK-NEXT: | | | | |-VarDecl {{.*}} <line:25:8, col:16> col:12 used i 'int' cinit
anatofuz
parents:
diff changeset
322 // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
anatofuz
parents:
diff changeset
323 // CHECK-NEXT: | | | | `-VarDecl {{.*}} <line:26:10, col:18> col:14 used i 'int' cinit
anatofuz
parents:
diff changeset
324 // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
anatofuz
parents:
diff changeset
325 // CHECK-NEXT: | | | |-DeclRefExpr {{.*}} <line:25:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
anatofuz
parents:
diff changeset
326 // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} <line:26:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
anatofuz
parents:
diff changeset
327 // CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <<invalid sloc>> Implicit __forceinline
anatofuz
parents:
diff changeset
328 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <line:24:1> col:1 implicit .global_tid. 'const int'
anatofuz
parents:
diff changeset
329 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .part_id. 'const int *const restrict'
anatofuz
parents:
diff changeset
330 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .privates. 'void *const restrict'
anatofuz
parents:
diff changeset
331 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
anatofuz
parents:
diff changeset
332 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .task_t. 'void *const'
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
333 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit __context 'struct (unnamed at {{.*}}ast-dump-openmp-target-simd.c:24:1) *const restrict'
150
anatofuz
parents:
diff changeset
334 // CHECK-NEXT: | | |-RecordDecl {{.*}} <col:1> col:1 implicit struct definition
anatofuz
parents:
diff changeset
335 // CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <<invalid sloc>> Implicit
anatofuz
parents:
diff changeset
336 // CHECK-NEXT: | | | |-FieldDecl {{.*}} <line:25:23> col:23 implicit 'int'
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
337 // CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>> Implicit {{.*}}
150
anatofuz
parents:
diff changeset
338 // CHECK-NEXT: | | | `-FieldDecl {{.*}} <line:26:25> col:25 implicit 'int'
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
339 // CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>> Implicit {{.*}}
150
anatofuz
parents:
diff changeset
340 // CHECK-NEXT: | | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow
anatofuz
parents:
diff changeset
341 // CHECK-NEXT: | | |-ForStmt {{.*}} <line:25:3, line:27:7>
anatofuz
parents:
diff changeset
342 // CHECK-NEXT: | | | |-DeclStmt {{.*}} <line:25:8, col:17>
anatofuz
parents:
diff changeset
343 // CHECK-NEXT: | | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used i 'int' cinit
anatofuz
parents:
diff changeset
344 // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
anatofuz
parents:
diff changeset
345 // CHECK-NEXT: | | | |-<<<NULL>>>
anatofuz
parents:
diff changeset
346 // CHECK-NEXT: | | | |-BinaryOperator {{.*}} <col:19, col:23> 'int' '<'
anatofuz
parents:
diff changeset
347 // CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} <col:19> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
348 // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue Var {{.*}} 'i' 'int'
anatofuz
parents:
diff changeset
349 // CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} <col:23> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
350 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
anatofuz
parents:
diff changeset
351 // CHECK-NEXT: | | | |-UnaryOperator {{.*}} <col:26, col:27> 'int' postfix '++'
anatofuz
parents:
diff changeset
352 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue Var {{.*}} 'i' 'int'
anatofuz
parents:
diff changeset
353 // CHECK-NEXT: | | | `-ForStmt {{.*}} <line:26:5, line:27:7>
anatofuz
parents:
diff changeset
354 // CHECK-NEXT: | | | |-DeclStmt {{.*}} <line:26:10, col:19>
anatofuz
parents:
diff changeset
355 // CHECK-NEXT: | | | | `-VarDecl {{.*}} <col:10, col:18> col:14 used i 'int' cinit
anatofuz
parents:
diff changeset
356 // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
anatofuz
parents:
diff changeset
357 // CHECK-NEXT: | | | |-<<<NULL>>>
anatofuz
parents:
diff changeset
358 // CHECK-NEXT: | | | |-BinaryOperator {{.*}} <col:21, col:25> 'int' '<'
anatofuz
parents:
diff changeset
359 // CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} <col:21> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
360 // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} <col:21> 'int' lvalue Var {{.*}} 'i' 'int'
anatofuz
parents:
diff changeset
361 // CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} <col:25> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
362 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
anatofuz
parents:
diff changeset
363 // CHECK-NEXT: | | | |-UnaryOperator {{.*}} <col:28, col:29> 'int' postfix '++'
anatofuz
parents:
diff changeset
364 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue Var {{.*}} 'i' 'int'
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
365 // CHECK-NEXT: | | | `-NullStmt {{.*}} <line:27:7>
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
366 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <line:24:1> col:1 implicit __context 'struct (unnamed at {{.*}}ast-dump-openmp-target-simd.c:24:1) *const restrict'
150
anatofuz
parents:
diff changeset
367 // CHECK-NEXT: | | |-VarDecl {{.*}} <line:25:8, col:16> col:12 used i 'int' cinit
anatofuz
parents:
diff changeset
368 // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
anatofuz
parents:
diff changeset
369 // CHECK-NEXT: | | `-VarDecl {{.*}} <line:26:10, col:18> col:14 used i 'int' cinit
anatofuz
parents:
diff changeset
370 // CHECK-NEXT: | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
anatofuz
parents:
diff changeset
371 // CHECK-NEXT: | |-DeclRefExpr {{.*}} <line:25:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
anatofuz
parents:
diff changeset
372 // CHECK-NEXT: | `-DeclRefExpr {{.*}} <line:26:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
anatofuz
parents:
diff changeset
373 // CHECK-NEXT: `-FunctionDecl {{.*}} <line:30:1, line:36:1> line:30:6 test_five 'void (int, int, int)'
anatofuz
parents:
diff changeset
374 // CHECK-NEXT: |-ParmVarDecl {{.*}} <col:16, col:20> col:20 used x 'int'
anatofuz
parents:
diff changeset
375 // CHECK-NEXT: |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
anatofuz
parents:
diff changeset
376 // CHECK-NEXT: |-ParmVarDecl {{.*}} <col:30, col:34> col:34 used z 'int'
anatofuz
parents:
diff changeset
377 // CHECK-NEXT: `-CompoundStmt {{.*}} <col:37, line:36:1>
anatofuz
parents:
diff changeset
378 // CHECK-NEXT: `-OMPTargetSimdDirective {{.*}} <line:31:1, col:36>
anatofuz
parents:
diff changeset
379 // CHECK-NEXT: |-OMPCollapseClause {{.*}} <col:25, col:35>
anatofuz
parents:
diff changeset
380 // CHECK-NEXT: | `-ConstantExpr {{.*}} <col:34> 'int'
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
381 // CHECK-NEXT: | |-value: Int 2
150
anatofuz
parents:
diff changeset
382 // CHECK-NEXT: | `-IntegerLiteral {{.*}} <col:34> 'int' 2
anatofuz
parents:
diff changeset
383 // CHECK-NEXT: |-OMPFirstprivateClause {{.*}} <<invalid sloc>> <implicit>
anatofuz
parents:
diff changeset
384 // CHECK-NEXT: | |-DeclRefExpr {{.*}} <line:32:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
anatofuz
parents:
diff changeset
385 // CHECK-NEXT: | |-DeclRefExpr {{.*}} <line:33:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
anatofuz
parents:
diff changeset
386 // CHECK-NEXT: | `-DeclRefExpr {{.*}} <line:34:27> 'int' lvalue ParmVar {{.*}} 'z' 'int'
anatofuz
parents:
diff changeset
387 // CHECK-NEXT: `-CapturedStmt {{.*}} <line:32:3, line:35:9>
anatofuz
parents:
diff changeset
388 // CHECK-NEXT: |-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow
anatofuz
parents:
diff changeset
389 // CHECK-NEXT: | |-CapturedStmt {{.*}} <line:32:3, line:35:9>
anatofuz
parents:
diff changeset
390 // CHECK-NEXT: | | |-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow
anatofuz
parents:
diff changeset
391 // CHECK-NEXT: | | | |-ForStmt {{.*}} <line:32:3, line:35:9>
anatofuz
parents:
diff changeset
392 // CHECK-NEXT: | | | | |-DeclStmt {{.*}} <line:32:8, col:17>
anatofuz
parents:
diff changeset
393 // CHECK-NEXT: | | | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used i 'int' cinit
anatofuz
parents:
diff changeset
394 // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
anatofuz
parents:
diff changeset
395 // CHECK-NEXT: | | | | |-<<<NULL>>>
anatofuz
parents:
diff changeset
396 // CHECK-NEXT: | | | | |-BinaryOperator {{.*}} <col:19, col:23> 'int' '<'
anatofuz
parents:
diff changeset
397 // CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} <col:19> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
398 // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue Var {{.*}} 'i' 'int'
anatofuz
parents:
diff changeset
399 // CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} <col:23> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
400 // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} <col:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
anatofuz
parents:
diff changeset
401 // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} <col:26, col:27> 'int' postfix '++'
anatofuz
parents:
diff changeset
402 // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue Var {{.*}} 'i' 'int'
anatofuz
parents:
diff changeset
403 // CHECK-NEXT: | | | | `-ForStmt {{.*}} <line:33:5, line:35:9>
anatofuz
parents:
diff changeset
404 // CHECK-NEXT: | | | | |-DeclStmt {{.*}} <line:33:10, col:19>
anatofuz
parents:
diff changeset
405 // CHECK-NEXT: | | | | | `-VarDecl {{.*}} <col:10, col:18> col:14 used i 'int' cinit
anatofuz
parents:
diff changeset
406 // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
anatofuz
parents:
diff changeset
407 // CHECK-NEXT: | | | | |-<<<NULL>>>
anatofuz
parents:
diff changeset
408 // CHECK-NEXT: | | | | |-BinaryOperator {{.*}} <col:21, col:25> 'int' '<'
anatofuz
parents:
diff changeset
409 // CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} <col:21> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
410 // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} <col:21> 'int' lvalue Var {{.*}} 'i' 'int'
anatofuz
parents:
diff changeset
411 // CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} <col:25> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
412 // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} <col:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
anatofuz
parents:
diff changeset
413 // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} <col:28, col:29> 'int' postfix '++'
anatofuz
parents:
diff changeset
414 // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue Var {{.*}} 'i' 'int'
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
415 // CHECK-NEXT: | | | | `-ForStmt {{.*}} <line:34:7, line:35:9>
150
anatofuz
parents:
diff changeset
416 // CHECK-NEXT: | | | | |-DeclStmt {{.*}} <line:34:12, col:21>
anatofuz
parents:
diff changeset
417 // CHECK-NEXT: | | | | | `-VarDecl {{.*}} <col:12, col:20> col:16 used i 'int' cinit
anatofuz
parents:
diff changeset
418 // CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <col:20> 'int' 0
anatofuz
parents:
diff changeset
419 // CHECK-NEXT: | | | | |-<<<NULL>>>
anatofuz
parents:
diff changeset
420 // CHECK-NEXT: | | | | |-BinaryOperator {{.*}} <col:23, col:27> 'int' '<'
anatofuz
parents:
diff changeset
421 // CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} <col:23> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
422 // CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} <col:23> 'int' lvalue Var {{.*}} 'i' 'int'
anatofuz
parents:
diff changeset
423 // CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} <col:27> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
424 // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} <col:27> 'int' lvalue ParmVar {{.*}} 'z' 'int'
anatofuz
parents:
diff changeset
425 // CHECK-NEXT: | | | | |-UnaryOperator {{.*}} <col:30, col:31> 'int' postfix '++'
anatofuz
parents:
diff changeset
426 // CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} <col:30> 'int' lvalue Var {{.*}} 'i' 'int'
anatofuz
parents:
diff changeset
427 // CHECK-NEXT: | | | | `-NullStmt {{.*}} <line:35:9>
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
428 // CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} <line:31:1> col:1 implicit __context 'struct (unnamed at {{.*}}ast-dump-openmp-target-simd.c:31:1) *const restrict'
150
anatofuz
parents:
diff changeset
429 // CHECK-NEXT: | | | |-VarDecl {{.*}} <line:32:8, col:16> col:12 used i 'int' cinit
anatofuz
parents:
diff changeset
430 // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
anatofuz
parents:
diff changeset
431 // CHECK-NEXT: | | | |-VarDecl {{.*}} <line:33:10, col:18> col:14 used i 'int' cinit
anatofuz
parents:
diff changeset
432 // CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
anatofuz
parents:
diff changeset
433 // CHECK-NEXT: | | | `-VarDecl {{.*}} <line:34:12, col:20> col:16 used i 'int' cinit
anatofuz
parents:
diff changeset
434 // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} <col:20> 'int' 0
anatofuz
parents:
diff changeset
435 // CHECK-NEXT: | | |-DeclRefExpr {{.*}} <line:32:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
anatofuz
parents:
diff changeset
436 // CHECK-NEXT: | | |-DeclRefExpr {{.*}} <line:33:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
anatofuz
parents:
diff changeset
437 // CHECK-NEXT: | | `-DeclRefExpr {{.*}} <line:34:27> 'int' lvalue ParmVar {{.*}} 'z' 'int'
anatofuz
parents:
diff changeset
438 // CHECK-NEXT: | |-AlwaysInlineAttr {{.*}} <<invalid sloc>> Implicit __forceinline
anatofuz
parents:
diff changeset
439 // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} <line:31:1> col:1 implicit .global_tid. 'const int'
anatofuz
parents:
diff changeset
440 // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .part_id. 'const int *const restrict'
anatofuz
parents:
diff changeset
441 // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .privates. 'void *const restrict'
anatofuz
parents:
diff changeset
442 // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)'
anatofuz
parents:
diff changeset
443 // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .task_t. 'void *const'
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
444 // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit __context 'struct (unnamed at {{.*}}ast-dump-openmp-target-simd.c:31:1) *const restrict'
150
anatofuz
parents:
diff changeset
445 // CHECK-NEXT: | |-RecordDecl {{.*}} <col:1> col:1 implicit struct definition
anatofuz
parents:
diff changeset
446 // CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <<invalid sloc>> Implicit
anatofuz
parents:
diff changeset
447 // CHECK-NEXT: | | |-FieldDecl {{.*}} <line:32:23> col:23 implicit 'int'
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
448 // CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>> Implicit {{.*}}
150
anatofuz
parents:
diff changeset
449 // CHECK-NEXT: | | |-FieldDecl {{.*}} <line:33:25> col:25 implicit 'int'
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
450 // CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>> Implicit {{.*}}
150
anatofuz
parents:
diff changeset
451 // CHECK-NEXT: | | `-FieldDecl {{.*}} <line:34:27> col:27 implicit 'int'
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
452 // CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <<invalid sloc>> Implicit {{.*}}
150
anatofuz
parents:
diff changeset
453 // CHECK-NEXT: | `-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow
anatofuz
parents:
diff changeset
454 // CHECK-NEXT: | |-ForStmt {{.*}} <line:32:3, line:35:9>
anatofuz
parents:
diff changeset
455 // CHECK-NEXT: | | |-DeclStmt {{.*}} <line:32:8, col:17>
anatofuz
parents:
diff changeset
456 // CHECK-NEXT: | | | `-VarDecl {{.*}} <col:8, col:16> col:12 used i 'int' cinit
anatofuz
parents:
diff changeset
457 // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
anatofuz
parents:
diff changeset
458 // CHECK-NEXT: | | |-<<<NULL>>>
anatofuz
parents:
diff changeset
459 // CHECK-NEXT: | | |-BinaryOperator {{.*}} <col:19, col:23> 'int' '<'
anatofuz
parents:
diff changeset
460 // CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} <col:19> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
461 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:19> 'int' lvalue Var {{.*}} 'i' 'int'
anatofuz
parents:
diff changeset
462 // CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} <col:23> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
463 // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} <col:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
anatofuz
parents:
diff changeset
464 // CHECK-NEXT: | | |-UnaryOperator {{.*}} <col:26, col:27> 'int' postfix '++'
anatofuz
parents:
diff changeset
465 // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue Var {{.*}} 'i' 'int'
anatofuz
parents:
diff changeset
466 // CHECK-NEXT: | | `-ForStmt {{.*}} <line:33:5, line:35:9>
anatofuz
parents:
diff changeset
467 // CHECK-NEXT: | | |-DeclStmt {{.*}} <line:33:10, col:19>
anatofuz
parents:
diff changeset
468 // CHECK-NEXT: | | | `-VarDecl {{.*}} <col:10, col:18> col:14 used i 'int' cinit
anatofuz
parents:
diff changeset
469 // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
anatofuz
parents:
diff changeset
470 // CHECK-NEXT: | | |-<<<NULL>>>
anatofuz
parents:
diff changeset
471 // CHECK-NEXT: | | |-BinaryOperator {{.*}} <col:21, col:25> 'int' '<'
anatofuz
parents:
diff changeset
472 // CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} <col:21> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
473 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:21> 'int' lvalue Var {{.*}} 'i' 'int'
anatofuz
parents:
diff changeset
474 // CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} <col:25> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
475 // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} <col:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
anatofuz
parents:
diff changeset
476 // CHECK-NEXT: | | |-UnaryOperator {{.*}} <col:28, col:29> 'int' postfix '++'
anatofuz
parents:
diff changeset
477 // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue Var {{.*}} 'i' 'int'
173
0572611fdcc8 reorgnization done
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
478 // CHECK-NEXT: | | `-ForStmt {{.*}} <line:34:7, line:35:9>
150
anatofuz
parents:
diff changeset
479 // CHECK-NEXT: | | |-DeclStmt {{.*}} <line:34:12, col:21>
anatofuz
parents:
diff changeset
480 // CHECK-NEXT: | | | `-VarDecl {{.*}} <col:12, col:20> col:16 used i 'int' cinit
anatofuz
parents:
diff changeset
481 // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} <col:20> 'int' 0
anatofuz
parents:
diff changeset
482 // CHECK-NEXT: | | |-<<<NULL>>>
anatofuz
parents:
diff changeset
483 // CHECK-NEXT: | | |-BinaryOperator {{.*}} <col:23, col:27> 'int' '<'
anatofuz
parents:
diff changeset
484 // CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} <col:23> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
485 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:23> 'int' lvalue Var {{.*}} 'i' 'int'
anatofuz
parents:
diff changeset
486 // CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} <col:27> 'int' <LValueToRValue>
anatofuz
parents:
diff changeset
487 // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} <col:27> 'int' lvalue ParmVar {{.*}} 'z' 'int'
anatofuz
parents:
diff changeset
488 // CHECK-NEXT: | | |-UnaryOperator {{.*}} <col:30, col:31> 'int' postfix '++'
anatofuz
parents:
diff changeset
489 // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} <col:30> 'int' lvalue Var {{.*}} 'i' 'int'
anatofuz
parents:
diff changeset
490 // CHECK-NEXT: | | `-NullStmt {{.*}} <line:35:9>
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 173
diff changeset
491 // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} <line:31:1> col:1 implicit __context 'struct (unnamed at {{.*}}ast-dump-openmp-target-simd.c:31:1) *const restrict'
150
anatofuz
parents:
diff changeset
492 // CHECK-NEXT: | |-VarDecl {{.*}} <line:32:8, col:16> col:12 used i 'int' cinit
anatofuz
parents:
diff changeset
493 // CHECK-NEXT: | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
anatofuz
parents:
diff changeset
494 // CHECK-NEXT: | |-VarDecl {{.*}} <line:33:10, col:18> col:14 used i 'int' cinit
anatofuz
parents:
diff changeset
495 // CHECK-NEXT: | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
anatofuz
parents:
diff changeset
496 // CHECK-NEXT: | `-VarDecl {{.*}} <line:34:12, col:20> col:16 used i 'int' cinit
anatofuz
parents:
diff changeset
497 // CHECK-NEXT: | `-IntegerLiteral {{.*}} <col:20> 'int' 0
anatofuz
parents:
diff changeset
498 // CHECK-NEXT: |-DeclRefExpr {{.*}} <line:32:23> 'int' lvalue ParmVar {{.*}} 'x' 'int'
anatofuz
parents:
diff changeset
499 // CHECK-NEXT: |-DeclRefExpr {{.*}} <line:33:25> 'int' lvalue ParmVar {{.*}} 'y' 'int'
anatofuz
parents:
diff changeset
500 // CHECK-NEXT: `-DeclRefExpr {{.*}} <line:34:27> 'int' lvalue ParmVar {{.*}} 'z' 'int'