Factor out the access printing from the pet expression printing
[ppcg.git] / ppcg_options.c
blobf5830d2fec6852838eb5ee22f922cd693ea3710d
1 /*
2 * Copyright 2010-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,
8 * 91893 Orsay, France
9 */
11 #include "ppcg_options.h"
13 ISL_ARGS_START(struct ppcg_options, ppcg_options_args)
14 ISL_ARG_BOOL(struct ppcg_options, scale_tile_loops, 0,
15 "scale-tile-loops", 1, NULL)
16 ISL_ARG_BOOL(struct ppcg_options, wrap, 0, "wrap", 1, NULL)
17 ISL_ARG_BOOL(struct ppcg_options, use_shared_memory, 0, "shared-memory", 1,
18 "use shared memory in kernel code")
19 ISL_ARG_BOOL(struct ppcg_options, use_private_memory, 0, "private-memory", 1,
20 "use private memory in kernel code")
21 ISL_ARG_STR(struct ppcg_options, ctx, 0, "ctx", "context", NULL,
22 "Constraints on parameters")
23 ISL_ARG_INT(struct ppcg_options, tile_size, 'S', "tile-size", "size", 32, NULL)
24 ISL_ARG_STR(struct ppcg_options, sizes, 0, "sizes", "sizes", NULL,
25 "Per kernel tile, grid and block sizes")
26 ISL_ARG_INT(struct ppcg_options, max_shared_memory, 0,
27 "max-shared-memory", "size", 8192, "maximal amount of shared memory")
28 ISL_ARGS_END