comparison clang/test/AST/ast-dump-openmp-parallel-for.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
comparison
equal deleted inserted replaced
173:0572611fdcc8 207:2e18cbf3894f
55 // CHECK-NEXT: | | | |-UnaryOperator {{.*}} <col:26, col:27> 'int' postfix '++' 55 // CHECK-NEXT: | | | |-UnaryOperator {{.*}} <col:26, col:27> 'int' postfix '++'
56 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue Var {{.*}} 'i' 'int' 56 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:26> 'int' lvalue Var {{.*}} 'i' 'int'
57 // CHECK-NEXT: | | | `-NullStmt {{.*}} <line:6:5> 57 // CHECK-NEXT: | | | `-NullStmt {{.*}} <line:6:5>
58 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <line:4:1> col:1 implicit .global_tid. 'const int *const restrict' 58 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <line:4:1> col:1 implicit .global_tid. 'const int *const restrict'
59 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .bound_tid. 'const int *const restrict' 59 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .bound_tid. 'const int *const restrict'
60 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-for.c:4:1) *const restrict' 60 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit __context 'struct (unnamed at {{.*}}ast-dump-openmp-parallel-for.c:4:1) *const restrict'
61 // CHECK-NEXT: | | `-VarDecl {{.*}} <line:5:8, col:16> col:12 used i 'int' cinit 61 // CHECK-NEXT: | | `-VarDecl {{.*}} <line:5:8, col:16> col:12 used i 'int' cinit
62 // CHECK-NEXT: | | `-IntegerLiteral {{.*}} <col:16> 'int' 0 62 // CHECK-NEXT: | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
63 // CHECK-NEXT: | `-DeclRefExpr {{.*}} <col:3> 'int' lvalue ParmVar {{.*}} 'x' 'int' 63 // CHECK-NEXT: | `-DeclRefExpr {{.*}} <col:3> 'int' lvalue ParmVar {{.*}} 'x' 'int'
64 // CHECK-NEXT: |-FunctionDecl {{.*}} <line:9:1, line:14:1> line:9:6 test_two 'void (int, int)' 64 // CHECK-NEXT: |-FunctionDecl {{.*}} <line:9:1, line:14:1> line:9:6 test_two 'void (int, int)'
65 // CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int' 65 // CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:15, col:19> col:19 used x 'int'
93 // CHECK-NEXT: | | | |-UnaryOperator {{.*}} <col:28, col:29> 'int' postfix '++' 93 // CHECK-NEXT: | | | |-UnaryOperator {{.*}} <col:28, col:29> 'int' postfix '++'
94 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue Var {{.*}} 'i' 'int' 94 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue Var {{.*}} 'i' 'int'
95 // CHECK-NEXT: | | | `-NullStmt {{.*}} <line:13:7> 95 // CHECK-NEXT: | | | `-NullStmt {{.*}} <line:13:7>
96 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <line:10:1> col:1 implicit .global_tid. 'const int *const restrict' 96 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <line:10:1> col:1 implicit .global_tid. 'const int *const restrict'
97 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .bound_tid. 'const int *const restrict' 97 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .bound_tid. 'const int *const restrict'
98 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-for.c:10:1) *const restrict' 98 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit __context 'struct (unnamed at {{.*}}ast-dump-openmp-parallel-for.c:10:1) *const restrict'
99 // CHECK-NEXT: | | |-VarDecl {{.*}} <line:11:8, col:16> col:12 used i 'int' cinit 99 // CHECK-NEXT: | | |-VarDecl {{.*}} <line:11:8, col:16> col:12 used i 'int' cinit
100 // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0 100 // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
101 // CHECK-NEXT: | | `-VarDecl {{.*}} <line:12:10, col:18> col:14 used i 'int' cinit 101 // CHECK-NEXT: | | `-VarDecl {{.*}} <line:12:10, col:18> col:14 used i 'int' cinit
102 // CHECK-NEXT: | | `-IntegerLiteral {{.*}} <col:18> 'int' 0 102 // CHECK-NEXT: | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
103 // CHECK-NEXT: | |-DeclRefExpr {{.*}} <line:11:3> 'int' lvalue ParmVar {{.*}} 'x' 'int' 103 // CHECK-NEXT: | |-DeclRefExpr {{.*}} <line:11:3> 'int' lvalue ParmVar {{.*}} 'x' 'int'
107 // CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:24, col:28> col:28 used y 'int' 107 // CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:24, col:28> col:28 used y 'int'
108 // CHECK-NEXT: | `-CompoundStmt {{.*}} <col:31, line:21:1> 108 // CHECK-NEXT: | `-CompoundStmt {{.*}} <col:31, line:21:1>
109 // CHECK-NEXT: | `-OMPParallelForDirective {{.*}} <line:17:1, col:37> 109 // CHECK-NEXT: | `-OMPParallelForDirective {{.*}} <line:17:1, col:37>
110 // CHECK-NEXT: | |-OMPCollapseClause {{.*}} <col:26, col:36> 110 // CHECK-NEXT: | |-OMPCollapseClause {{.*}} <col:26, col:36>
111 // CHECK-NEXT: | | `-ConstantExpr {{.*}} <col:35> 'int' 111 // CHECK-NEXT: | | `-ConstantExpr {{.*}} <col:35> 'int'
112 // CHECK-NEXT: | | |-value: Int 1
112 // CHECK-NEXT: | | `-IntegerLiteral {{.*}} <col:35> 'int' 1 113 // CHECK-NEXT: | | `-IntegerLiteral {{.*}} <col:35> 'int' 1
113 // CHECK-NEXT: | `-CapturedStmt {{.*}} <line:18:3, line:20:7> 114 // CHECK-NEXT: | `-CapturedStmt {{.*}} <line:18:3, line:20:7>
114 // CHECK-NEXT: | |-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow 115 // CHECK-NEXT: | |-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow
115 // CHECK-NEXT: | | |-ForStmt {{.*}} <line:18:3, line:20:7> 116 // CHECK-NEXT: | | |-ForStmt {{.*}} <line:18:3, line:20:7>
116 // CHECK-NEXT: | | | |-DeclStmt {{.*}} <line:18:8, col:17> 117 // CHECK-NEXT: | | | |-DeclStmt {{.*}} <line:18:8, col:17>
137 // CHECK-NEXT: | | | |-UnaryOperator {{.*}} <col:28, col:29> 'int' postfix '++' 138 // CHECK-NEXT: | | | |-UnaryOperator {{.*}} <col:28, col:29> 'int' postfix '++'
138 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue Var {{.*}} 'i' 'int' 139 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue Var {{.*}} 'i' 'int'
139 // CHECK-NEXT: | | | `-NullStmt {{.*}} <line:20:7> 140 // CHECK-NEXT: | | | `-NullStmt {{.*}} <line:20:7>
140 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <line:17:1> col:1 implicit .global_tid. 'const int *const restrict' 141 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <line:17:1> col:1 implicit .global_tid. 'const int *const restrict'
141 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .bound_tid. 'const int *const restrict' 142 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .bound_tid. 'const int *const restrict'
142 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-for.c:17:1) *const restrict' 143 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit __context 'struct (unnamed at {{.*}}ast-dump-openmp-parallel-for.c:17:1) *const restrict'
143 // CHECK-NEXT: | | |-VarDecl {{.*}} <line:18:8, col:16> col:12 used i 'int' cinit 144 // CHECK-NEXT: | | |-VarDecl {{.*}} <line:18:8, col:16> col:12 used i 'int' cinit
144 // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0 145 // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
145 // CHECK-NEXT: | | `-VarDecl {{.*}} <line:19:10, col:18> col:14 used i 'int' cinit 146 // CHECK-NEXT: | | `-VarDecl {{.*}} <line:19:10, col:18> col:14 used i 'int' cinit
146 // CHECK-NEXT: | | `-IntegerLiteral {{.*}} <col:18> 'int' 0 147 // CHECK-NEXT: | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
147 // CHECK-NEXT: | |-DeclRefExpr {{.*}} <line:18:3> 'int' lvalue ParmVar {{.*}} 'x' 'int' 148 // CHECK-NEXT: | |-DeclRefExpr {{.*}} <line:18:3> 'int' lvalue ParmVar {{.*}} 'x' 'int'
151 // CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int' 152 // CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:23, col:27> col:27 used y 'int'
152 // CHECK-NEXT: | `-CompoundStmt {{.*}} <col:30, line:28:1> 153 // CHECK-NEXT: | `-CompoundStmt {{.*}} <col:30, line:28:1>
153 // CHECK-NEXT: | `-OMPParallelForDirective {{.*}} <line:24:1, col:37> 154 // CHECK-NEXT: | `-OMPParallelForDirective {{.*}} <line:24:1, col:37>
154 // CHECK-NEXT: | |-OMPCollapseClause {{.*}} <col:26, col:36> 155 // CHECK-NEXT: | |-OMPCollapseClause {{.*}} <col:26, col:36>
155 // CHECK-NEXT: | | `-ConstantExpr {{.*}} <col:35> 'int' 156 // CHECK-NEXT: | | `-ConstantExpr {{.*}} <col:35> 'int'
157 // CHECK-NEXT: | | |-value: Int 2
156 // CHECK-NEXT: | | `-IntegerLiteral {{.*}} <col:35> 'int' 2 158 // CHECK-NEXT: | | `-IntegerLiteral {{.*}} <col:35> 'int' 2
157 // CHECK-NEXT: | `-CapturedStmt {{.*}} <line:25:3, line:27:7> 159 // CHECK-NEXT: | `-CapturedStmt {{.*}} <line:25:3, line:27:7>
158 // CHECK-NEXT: | |-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow 160 // CHECK-NEXT: | |-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow
159 // CHECK-NEXT: | | |-ForStmt {{.*}} <line:25:3, line:27:7> 161 // CHECK-NEXT: | | |-ForStmt {{.*}} <line:25:3, line:27:7>
160 // CHECK-NEXT: | | | |-DeclStmt {{.*}} <line:25:8, col:17> 162 // CHECK-NEXT: | | | |-DeclStmt {{.*}} <line:25:8, col:17>
181 // CHECK-NEXT: | | | |-UnaryOperator {{.*}} <col:28, col:29> 'int' postfix '++' 183 // CHECK-NEXT: | | | |-UnaryOperator {{.*}} <col:28, col:29> 'int' postfix '++'
182 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue Var {{.*}} 'i' 'int' 184 // CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} <col:28> 'int' lvalue Var {{.*}} 'i' 'int'
183 // CHECK-NEXT: | | | `-NullStmt {{.*}} <line:27:7> 185 // CHECK-NEXT: | | | `-NullStmt {{.*}} <line:27:7>
184 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <line:24:1> col:1 implicit .global_tid. 'const int *const restrict' 186 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <line:24:1> col:1 implicit .global_tid. 'const int *const restrict'
185 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .bound_tid. 'const int *const restrict' 187 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .bound_tid. 'const int *const restrict'
186 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-for.c:24:1) *const restrict' 188 // CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit __context 'struct (unnamed at {{.*}}ast-dump-openmp-parallel-for.c:24:1) *const restrict'
187 // CHECK-NEXT: | | |-VarDecl {{.*}} <line:25:8, col:16> col:12 used i 'int' cinit 189 // CHECK-NEXT: | | |-VarDecl {{.*}} <line:25:8, col:16> col:12 used i 'int' cinit
188 // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0 190 // CHECK-NEXT: | | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
189 // CHECK-NEXT: | | `-VarDecl {{.*}} <line:26:10, col:18> col:14 used i 'int' cinit 191 // CHECK-NEXT: | | `-VarDecl {{.*}} <line:26:10, col:18> col:14 used i 'int' cinit
190 // CHECK-NEXT: | | `-IntegerLiteral {{.*}} <col:18> 'int' 0 192 // CHECK-NEXT: | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
191 // CHECK-NEXT: | |-DeclRefExpr {{.*}} <line:25:3> 'int' lvalue ParmVar {{.*}} 'x' 'int' 193 // CHECK-NEXT: | |-DeclRefExpr {{.*}} <line:25:3> 'int' lvalue ParmVar {{.*}} 'x' 'int'
196 // CHECK-NEXT: |-ParmVarDecl {{.*}} <col:30, col:34> col:34 used z 'int' 198 // CHECK-NEXT: |-ParmVarDecl {{.*}} <col:30, col:34> col:34 used z 'int'
197 // CHECK-NEXT: `-CompoundStmt {{.*}} <col:37, line:36:1> 199 // CHECK-NEXT: `-CompoundStmt {{.*}} <col:37, line:36:1>
198 // CHECK-NEXT: `-OMPParallelForDirective {{.*}} <line:31:1, col:37> 200 // CHECK-NEXT: `-OMPParallelForDirective {{.*}} <line:31:1, col:37>
199 // CHECK-NEXT: |-OMPCollapseClause {{.*}} <col:26, col:36> 201 // CHECK-NEXT: |-OMPCollapseClause {{.*}} <col:26, col:36>
200 // CHECK-NEXT: | `-ConstantExpr {{.*}} <col:35> 'int' 202 // CHECK-NEXT: | `-ConstantExpr {{.*}} <col:35> 'int'
203 // CHECK-NEXT: | |-value: Int 2
201 // CHECK-NEXT: | `-IntegerLiteral {{.*}} <col:35> 'int' 2 204 // CHECK-NEXT: | `-IntegerLiteral {{.*}} <col:35> 'int' 2
202 // CHECK-NEXT: `-CapturedStmt {{.*}} <line:32:3, line:35:9> 205 // CHECK-NEXT: `-CapturedStmt {{.*}} <line:32:3, line:35:9>
203 // CHECK-NEXT: |-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow 206 // CHECK-NEXT: |-CapturedDecl {{.*}} <<invalid sloc>> <invalid sloc> nothrow
204 // CHECK-NEXT: | |-ForStmt {{.*}} <line:32:3, line:35:9> 207 // CHECK-NEXT: | |-ForStmt {{.*}} <line:32:3, line:35:9>
205 // CHECK-NEXT: | | |-DeclStmt {{.*}} <line:32:8, col:17> 208 // CHECK-NEXT: | | |-DeclStmt {{.*}} <line:32:8, col:17>
238 // CHECK-NEXT: | | |-UnaryOperator {{.*}} <col:30, col:31> 'int' postfix '++' 241 // CHECK-NEXT: | | |-UnaryOperator {{.*}} <col:30, col:31> 'int' postfix '++'
239 // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} <col:30> 'int' lvalue Var {{.*}} 'i' 'int' 242 // CHECK-NEXT: | | | `-DeclRefExpr {{.*}} <col:30> 'int' lvalue Var {{.*}} 'i' 'int'
240 // CHECK-NEXT: | | `-NullStmt {{.*}} <line:35:9> 243 // CHECK-NEXT: | | `-NullStmt {{.*}} <line:35:9>
241 // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} <line:31:1> col:1 implicit .global_tid. 'const int *const restrict' 244 // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} <line:31:1> col:1 implicit .global_tid. 'const int *const restrict'
242 // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .bound_tid. 'const int *const restrict' 245 // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit .bound_tid. 'const int *const restrict'
243 // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-for.c:31:1) *const restrict' 246 // CHECK-NEXT: | |-ImplicitParamDecl {{.*}} <col:1> col:1 implicit __context 'struct (unnamed at {{.*}}ast-dump-openmp-parallel-for.c:31:1) *const restrict'
244 // CHECK-NEXT: | |-VarDecl {{.*}} <line:32:8, col:16> col:12 used i 'int' cinit 247 // CHECK-NEXT: | |-VarDecl {{.*}} <line:32:8, col:16> col:12 used i 'int' cinit
245 // CHECK-NEXT: | | `-IntegerLiteral {{.*}} <col:16> 'int' 0 248 // CHECK-NEXT: | | `-IntegerLiteral {{.*}} <col:16> 'int' 0
246 // CHECK-NEXT: | |-VarDecl {{.*}} <line:33:10, col:18> col:14 used i 'int' cinit 249 // CHECK-NEXT: | |-VarDecl {{.*}} <line:33:10, col:18> col:14 used i 'int' cinit
247 // CHECK-NEXT: | | `-IntegerLiteral {{.*}} <col:18> 'int' 0 250 // CHECK-NEXT: | | `-IntegerLiteral {{.*}} <col:18> 'int' 0
248 // CHECK-NEXT: | `-VarDecl {{.*}} <line:34:12, col:20> col:16 used i 'int' cinit 251 // CHECK-NEXT: | `-VarDecl {{.*}} <line:34:12, col:20> col:16 used i 'int' cinit