reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
189 dup = isl_calloc_type(ctx, isl_ast_build); 190 if (!dup) 193 dup->ref = 1; 194 dup->outer_pos = build->outer_pos; 195 dup->depth = build->depth; 196 dup->iterators = isl_id_list_copy(build->iterators); 197 dup->domain = isl_set_copy(build->domain); 198 dup->generated = isl_set_copy(build->generated); 199 dup->pending = isl_set_copy(build->pending); 200 dup->values = isl_multi_aff_copy(build->values); 201 dup->internal2input = isl_multi_aff_copy(build->internal2input); 202 dup->value = isl_pw_aff_copy(build->value); 203 dup->strides = isl_vec_copy(build->strides); 204 dup->offsets = isl_multi_aff_copy(build->offsets); 205 dup->executed = isl_union_map_copy(build->executed); 206 dup->single_valued = build->single_valued; 207 dup->options = isl_union_map_copy(build->options); 208 dup->at_each_domain = build->at_each_domain; 209 dup->at_each_domain_user = build->at_each_domain_user; 210 dup->before_each_for = build->before_each_for; 211 dup->before_each_for_user = build->before_each_for_user; 212 dup->after_each_for = build->after_each_for; 213 dup->after_each_for_user = build->after_each_for_user; 214 dup->before_each_mark = build->before_each_mark; 215 dup->before_each_mark_user = build->before_each_mark_user; 216 dup->after_each_mark = build->after_each_mark; 217 dup->after_each_mark_user = build->after_each_mark_user; 218 dup->create_leaf = build->create_leaf; 219 dup->create_leaf_user = build->create_leaf_user; 220 dup->node = isl_schedule_node_copy(build->node); 224 dup->n = build->n; 225 dup->loop_type = isl_alloc_array(ctx, 226 enum isl_ast_loop_type, dup->n); 227 if (dup->n && !dup->loop_type) 227 if (dup->n && !dup->loop_type) 228 return isl_ast_build_free(dup); 229 for (i = 0; i < dup->n; ++i) 230 dup->loop_type[i] = build->loop_type[i]; 233 if (!dup->iterators || !dup->domain || !dup->generated || 233 if (!dup->iterators || !dup->domain || !dup->generated || 233 if (!dup->iterators || !dup->domain || !dup->generated || 234 !dup->pending || !dup->values || 234 !dup->pending || !dup->values || 235 !dup->strides || !dup->offsets || !dup->options || 235 !dup->strides || !dup->offsets || !dup->options || 235 !dup->strides || !dup->offsets || !dup->options || 236 (build->internal2input && !dup->internal2input) || 237 (build->executed && !dup->executed) || 238 (build->value && !dup->value) || 239 (build->node && !dup->node)) 240 return isl_ast_build_free(dup); 242 return dup;