print more understandable error message in case of unbounded arrays
[ppcg.git] / schedule.h
blobdf49893728bf02cd25b74ef22bf756b1f6c028f0
1 #ifndef _SCHEDULE_H
2 #define _SCHEDULE_H
4 /* An access to an array element or an iterator.
5 * Accesses to iterators have an access relation that maps to an unnamed space.
6 * An access may be both read and write.
7 */
8 struct gpu_stmt_access {
9 /* Access reads elements */
10 int read;
11 /* Access writes elements */
12 int write;
13 /* All writes are definite writes. */
14 int exact_write;
16 /* Index of the array reference group this reference belong to.
17 * -1 if no reference groups have been computed for the array.
19 int group;
21 /* May access relation */
22 isl_map *access;
23 /* May access relation with as domain a mapping from iteration domain
24 * to a reference identifier.
26 isl_map *tagged_access;
27 /* The reference id of the corresponding pet_expr. */
28 isl_id *ref_id;
30 struct gpu_stmt_access *next;
33 struct gpu_stmt {
34 isl_id *id;
35 struct pet_stmt *stmt;
37 /* Number of tile dimensions. */
38 int tile_len;
39 /* Number of initial parallel loops among tile dimensions. */
40 int n_parallel;
42 /* Linked list of accesses. */
43 struct gpu_stmt_access *accesses;
46 __isl_give isl_map *project_out(__isl_take isl_space *dim,
47 int len, int first, int n);
48 __isl_give isl_map *projection(__isl_take isl_space *dim,
49 int src_len, int dst_len);
50 __isl_give isl_set *extend(__isl_take isl_set *set, int dst_len);
51 __isl_give isl_union_map *align_range(__isl_take isl_union_map *umap);
53 #endif