From 33f36f80fa1b83d5e1f2f06532ce341f246ae3d1 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sat, 13 Jun 2015 10:41:16 +0200 Subject: [PATCH] iscc: parse_file: return schedule in schedule tree representation Signed-off-by: Sven Verdoolaege --- iscc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/iscc.c b/iscc.c index 299236d..ccadbb3 100644 --- a/iscc.c +++ b/iscc.c @@ -704,7 +704,8 @@ static __isl_give isl_list *parse(__isl_take isl_str *str) isl_ctx *ctx; struct isl_list *list; struct pet_scop *scop; - isl_union_map *sched, *may_reads, *must_writes, *may_writes; + isl_schedule *sched; + isl_union_map *may_reads, *must_writes, *may_writes; isl_union_set *domain; struct iscc_options *options; @@ -725,7 +726,7 @@ static __isl_give isl_list *parse(__isl_take isl_str *str) scop = pet_scop_extract_from_C_source(ctx, str->s, NULL); domain = pet_scop_collect_domains(scop); - sched = scop ? isl_schedule_get_map(scop->schedule) : NULL; + sched = scop ? isl_schedule_copy(scop->schedule) : NULL; may_reads = pet_scop_collect_may_reads(scop); may_writes = pet_scop_collect_may_writes(scop); must_writes = pet_scop_collect_must_writes(scop); @@ -739,7 +740,7 @@ static __isl_give isl_list *parse(__isl_take isl_str *str) list->obj[2].v = may_writes; list->obj[3].type = isl_obj_union_map; list->obj[3].v = may_reads; - list->obj[4].type = isl_obj_union_map; + list->obj[4].type = isl_obj_schedule; list->obj[4].v = sched; if (!list->obj[0].v || !list->obj[1].v || -- 2.11.4.GIT