2 * Copyright 2011 INRIA Saclay
4 * Use of this software is governed by the GNU LGPLv2.1 license
6 * Written by Sven Verdoolaege, INRIA Saclay - Ile-de-France,
7 * Parc Club Orsay Universite, ZAC des vignes, 4 rue Jacques Monod,
14 #include <isl/options.h>
15 #include <isl/schedule.h>
17 #include "ppcg_options.h"
21 struct isl_options
*isl
;
22 struct ppcg_options
*ppcg
;
26 ISL_ARGS_START(struct options
, options_args
)
27 ISL_ARG_CHILD(struct options
, isl
, "isl", &isl_options_args
, "isl options")
28 ISL_ARG_CHILD(struct options
, ppcg
, NULL
, &ppcg_options_args
, NULL
)
29 ISL_ARG_ARG(struct options
, input
, "input", NULL
)
32 ISL_ARG_DEF(options
, struct options
, options_args
)
34 int main(int argc
, char **argv
)
38 struct options
*options
;
40 struct pet_scop
*scop
;
42 options
= options_new_with_defaults();
45 ctx
= isl_ctx_alloc_with_options(&options_args
, options
);
46 isl_options_set_schedule_outer_zero_distance(ctx
, 1);
47 argc
= options_parse(options
, argc
, argv
, ISL_ARG_ALL
);
49 scop
= pet_scop_extract_from_C_source(ctx
, options
->input
, NULL
, 0);
50 r
= cuda_pet(ctx
, scop
, options
->ppcg
, options
->input
);