use pet_transform_C_source instead of pet_scop_extract_from_C_source
[ppcg.git] / schedule.h
blobbe21990c93323586aabc588d2b1ef3056589bbe9
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;
14 /* Index of the array reference group this reference belong to. */
15 int group;
17 /* Access relation */
18 isl_map *access;
19 /* The reference id of the corresponding pet_expr. */
20 isl_id *ref_id;
22 struct gpu_stmt_access *next;
25 struct gpu_stmt {
26 isl_id *id;
27 struct pet_stmt *stmt;
29 /* Number of tile dimensions. */
30 int tile_len;
31 /* Number of initial parallel loops among tile dimensions. */
32 int n_parallel;
34 /* Linked list of accesses. */
35 struct gpu_stmt_access *accesses;
38 __isl_give isl_map *project_out(__isl_take isl_space *dim,
39 int len, int first, int n);
40 __isl_give isl_map *projection(__isl_take isl_space *dim,
41 int src_len, int dst_len);
42 __isl_give isl_set *extend(__isl_take isl_set *set, int dst_len);
43 __isl_give isl_union_map *align_range(__isl_take isl_union_map *umap);
45 #endif