ppcg_scop_from_pet_scop: use pet_scop_collect_must_kills
[ppcg.git] / ppcg_options.h
blob110cf684aaf9aab6bb9b81891bc40ad08426667b
1 #ifndef PPCG_OPTIONS_H
2 #define PPCG_OPTIONS_H
4 #include <isl/arg.h>
6 struct ppcg_debug_options {
7 int dump_schedule;
8 };
10 struct ppcg_options {
11 struct ppcg_debug_options *debug;
13 int scale_tile_loops;
14 int wrap;
16 char *ctx;
17 char *sizes;
19 int tile_size;
21 /* Take advantage of private memory. */
22 int use_private_memory;
24 /* Take advantage of shared memory. */
25 int use_shared_memory;
27 /* Maximal amount of shared memory. */
28 int max_shared_memory;
30 /* The target we generate code for. */
31 int target;
33 /* Generate OpenMP macros (C target only). */
34 int openmp;
36 /* Linearize all device arrays. */
37 int linearize_device_arrays;
40 ISL_ARG_DECL(ppcg_debug_options, struct ppcg_debug_options,
41 ppcg_debug_options_args)
42 ISL_ARG_DECL(ppcg_options, struct ppcg_options, ppcg_options_args)
44 #define PPCG_TARGET_C 0
45 #define PPCG_TARGET_CUDA 1
47 #endif