export isl_map_compute_divs
[isl.git] / isl_options.c
blobdfebd3e2707501c965d269e77547108ec0249b5e
1 /*
2 * Copyright 2008-2009 Katholieke Universiteit Leuven
4 * Use of this software is governed by the GNU LGPLv2.1 license
6 * Written by Sven Verdoolaege, K.U.Leuven, Departement
7 * Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
8 */
10 #include <stdio.h>
11 #include <stdlib.h>
12 #include <string.h>
14 #include "isl_ctx.h"
15 #include "isl_options.h"
17 struct isl_arg_choice isl_lp_solver_choice[] = {
18 {"tab", ISL_LP_TAB},
19 #ifdef ISL_PIPLIB
20 {"pip", ISL_LP_PIP},
21 #endif
22 {0}
25 struct isl_arg_choice isl_ilp_solver_choice[] = {
26 {"gbr", ISL_ILP_GBR},
27 #ifdef ISL_PIPLIB
28 {"pip", ISL_ILP_PIP},
29 #endif
30 {0}
33 struct isl_arg_choice isl_pip_solver_choice[] = {
34 {"tab", ISL_PIP_TAB},
35 #ifdef ISL_PIPLIB
36 {"pip", ISL_PIP_PIP},
37 #endif
38 {0}
41 struct isl_arg_choice isl_pip_context_choice[] = {
42 {"gbr", ISL_CONTEXT_GBR},
43 {"lexmin", ISL_CONTEXT_LEXMIN},
44 {0}
47 struct isl_arg_choice isl_gbr_choice[] = {
48 {"never", ISL_GBR_NEVER},
49 {"once", ISL_GBR_ONCE},
50 {"always", ISL_GBR_ALWAYS},
51 {0}
54 struct isl_arg isl_options_arg[] = {
55 ISL_ARG_CHOICE(struct isl_options, lp_solver, 0, "lp-solver", \
56 isl_lp_solver_choice, ISL_LP_TAB)
57 ISL_ARG_CHOICE(struct isl_options, ilp_solver, 0, "ilp-solver", \
58 isl_ilp_solver_choice, ISL_ILP_GBR)
59 ISL_ARG_CHOICE(struct isl_options, pip, 0, "pip", \
60 isl_pip_solver_choice, ISL_PIP_TAB)
61 ISL_ARG_CHOICE(struct isl_options, context, 0, "context", \
62 isl_pip_context_choice, ISL_CONTEXT_GBR)
63 ISL_ARG_CHOICE(struct isl_options, gbr, 0, "gbr", \
64 isl_gbr_choice, ISL_GBR_ONCE)
65 ISL_ARG_BOOL(struct isl_options, gbr_only_first, 0, "gbr-only-first", 0)
66 ISL_ARG_END
69 ISL_ARG_DEF(isl_options, struct isl_options, isl_options_arg)