Polly 20.0.0git
schedule.c
Go to the documentation of this file.
1/*
2 * Copyright 2016 Sven Verdoolaege
3 *
4 * Use of this software is governed by the MIT license
5 *
6 * Written by Sven Verdoolaege.
7 */
8
9/* This program takes an isl_schedule_constraints object as input and
10 * prints a schedule that satisfies those constraints.
11 */
12
13#include <stdlib.h>
14#include <isl/options.h>
15#include <isl/schedule.h>
16#include <isl/printer.h>
17
18int main(int argc, char **argv)
19{
20 isl_ctx *ctx;
24 struct isl_options *options;
25
26 options = isl_options_new_with_defaults();
27 argc = isl_options_parse(options, argc, argv, ISL_ARG_ALL);
28 ctx = isl_ctx_alloc_with_options(&isl_options_args, options);
29
32
33 p = isl_printer_to_file(ctx, stdout);
37
39
40 isl_ctx_free(ctx);
41
42 return p ? EXIT_SUCCESS : EXIT_FAILURE;
43}
#define ISL_ARG_ALL
Definition: arg.h:288
isl_ctx * isl_ctx_alloc_with_options(struct isl_args *args, __isl_take void *opt)
void isl_ctx_free(isl_ctx *ctx)
Definition: isl_ctx.c:288
const char * schedule
Definition: isl_test.c:10697
const char * p
Definition: isl_test.c:8643
__isl_null isl_printer * isl_printer_free(__isl_take isl_printer *printer)
Definition: isl_printer.c:269
__isl_give isl_printer * isl_printer_to_file(isl_ctx *ctx, FILE *file)
Definition: isl_printer.c:217
#define ISL_YAML_STYLE_BLOCK
Definition: printer.h:38
__isl_give isl_printer * isl_printer_set_yaml_style(__isl_take isl_printer *p, int yaml_style)
Definition: isl_printer.c:464
__isl_null isl_schedule * isl_schedule_free(__isl_take isl_schedule *sched)
Definition: isl_schedule.c:121
__isl_give isl_schedule_constraints * isl_schedule_constraints_read_from_file(isl_ctx *ctx, FILE *input)
__isl_give isl_printer * isl_printer_print_schedule(__isl_take isl_printer *p, __isl_keep isl_schedule *schedule)
Definition: isl_schedule.c:673
__isl_export __isl_give isl_schedule * isl_schedule_constraints_compute_schedule(__isl_take isl_schedule_constraints *sc)