Polly 20.0.0git
flow.c
Go to the documentation of this file.
1/*
2 * Copyright 2017 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_union_access_info object as input and
10 * prints the corresponding dependences.
11 */
12
13#include <isl/options.h>
14#include <isl/printer.h>
15#include <isl/union_map.h>
16#include <isl/flow.h>
17#include <isl/schedule.h>
18
19int main(int argc, char **argv)
20{
21 isl_ctx *ctx;
25 struct isl_options *options;
26
27 options = isl_options_new_with_defaults();
28 argc = isl_options_parse(options, argc, argv, ISL_ARG_ALL);
29 ctx = isl_ctx_alloc_with_options(&isl_options_args, options);
30
31 access = isl_union_access_info_read_from_file(ctx, stdin);
33
34 p = isl_printer_to_file(ctx, stdout);
38
40
41 isl_ctx_free(ctx);
42
43 return 0;
44}
#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
__isl_null isl_union_flow * isl_union_flow_free(__isl_take isl_union_flow *flow)
Definition: isl_flow.c:2108
__isl_give isl_printer * isl_printer_print_union_flow(__isl_take isl_printer *p, __isl_keep isl_union_flow *flow)
Definition: isl_flow.c:3241
__isl_export __isl_give isl_union_flow * isl_union_access_info_compute_flow(__isl_take isl_union_access_info *access)
Definition: isl_flow.c:3206
__isl_give isl_union_access_info * isl_union_access_info_read_from_file(isl_ctx *ctx, FILE *input)
Definition: isl_flow.c:1974
const char * p
Definition: isl_test.c:8643
const char * flow
Definition: isl_test.c:4845
__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