From 96dfc6baa7a096cad421aa1ca021307ff8274daf Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Thu, 12 Apr 2012 17:21:29 +0200 Subject: [PATCH] optionally dump schedule constraints Signed-off-by: Sven Verdoolaege --- gpu.c | 2 ++ ppcg_options.c | 2 ++ ppcg_options.h | 1 + 3 files changed, 5 insertions(+) diff --git a/gpu.c b/gpu.c index e3b8925..550021e 100644 --- a/gpu.c +++ b/gpu.c @@ -5041,6 +5041,8 @@ static void compute_schedule(struct gpu_gen *gen) sc = isl_schedule_constraints_set_validity(sc, isl_union_map_copy(dep)); sc = isl_schedule_constraints_set_proximity(sc, dep); + if (gen->options->debug->dump_schedule_constraints) + isl_schedule_constraints_dump(sc); schedule = isl_schedule_constraints_compute_schedule(sc); if (gen->options->debug->dump_schedule) isl_schedule_dump(schedule); diff --git a/ppcg_options.c b/ppcg_options.c index 4edc218..57208e9 100644 --- a/ppcg_options.c +++ b/ppcg_options.c @@ -17,6 +17,8 @@ static struct isl_arg_choice target[] = { }; ISL_ARGS_START(struct ppcg_debug_options, ppcg_debug_options_args) +ISL_ARG_BOOL(struct ppcg_debug_options, dump_schedule_constraints, 0, + "dump-schedule-constraints", 0, "dump schedule constraints") ISL_ARG_BOOL(struct ppcg_debug_options, dump_schedule, 0, "dump-schedule", 0, "dump isl computed schedule") ISL_ARGS_END diff --git a/ppcg_options.h b/ppcg_options.h index 110cf68..c72bd79 100644 --- a/ppcg_options.h +++ b/ppcg_options.h @@ -4,6 +4,7 @@ #include struct ppcg_debug_options { + int dump_schedule_constraints; int dump_schedule; }; -- 2.11.4.GIT