Add option to disable the use of private and/or shared memory.
[ppcg.git] / gpucode.h
blob9362c047d16fcc6678444b7e2bfe3096d596fa29
1 #ifndef _GPUCODE_H
2 #define _GPUCODE_H
4 #include <cloog/isl/cloog.h>
6 struct gpucode_info {
7 int indent;
8 FILE *dst;
9 void (*print_user_stmt)(struct gpucode_info *info,
10 struct clast_user_stmt *s);
11 void (*print_user_stmt_list)(struct gpucode_info *info,
12 struct clast_user_stmt *s);
13 void (*print_for_head)(struct gpucode_info *info, struct clast_for *f);
14 void (*print_for_foot)(struct gpucode_info *info, struct clast_for *f);
15 void *user;
18 void print_cloog_macros(FILE *dst);
19 void print_indent(FILE *dst, int indent);
20 void gpu_print_host_stmt(struct gpucode_info *info, struct clast_stmt *s);
22 __isl_give isl_set *extract_host_domain(struct clast_user_stmt *u);
23 __isl_give isl_set *extract_entire_host_domain(struct clast_user_stmt *u);
25 #endif