Add extern C declaration to schedule.h
[platform/upstream/isl.git] / include / isl / schedule.h
1 #ifndef ISL_SCHEDULE_H
2 #define ISL_SCHEDULE_H
3
4 #include <isl/union_set.h>
5 #include <isl/union_map.h>
6
7 #if defined(__cplusplus)
8 extern "C" {
9 #endif
10
11 struct isl_schedule;
12 typedef struct isl_schedule isl_schedule;
13
14 __isl_give isl_schedule *isl_union_set_compute_schedule(
15         __isl_take isl_union_set *domain,
16         __isl_take isl_union_map *validity,
17         __isl_take isl_union_map *proximity);
18 void *isl_schedule_free(__isl_take isl_schedule *sched);
19 __isl_give isl_union_map *isl_schedule_get_map(__isl_keep isl_schedule *sched);
20
21 int isl_schedule_n_band(__isl_keep isl_schedule *sched);
22 __isl_give isl_union_map *isl_schedule_get_band(__isl_keep isl_schedule *sched,
23         unsigned band);
24
25 #if defined(__cplusplus)
26 }
27 #endif
28
29 #endif