isl_scheduler.c: clarify that space of isl_sched_node is not compressed
[isl.git] / include / isl / hmap.h
blob21612217032ef1ef9ee8e3743b6e72f6bc4995ee
1 #include <isl/ctx.h>
2 #include <isl/maybe.h>
3 #include <isl/printer.h>
5 #if defined(__cplusplus)
6 extern "C" {
7 #endif
9 #define ISL_xCAT(A,B) A ## B
10 #define ISL_CAT(A,B) ISL_xCAT(A,B)
11 #define ISL_xFN(TYPE,NAME) TYPE ## _ ## NAME
12 #define ISL_FN(TYPE,NAME) ISL_xFN(TYPE,NAME)
14 struct ISL_HMAP;
15 typedef struct ISL_HMAP ISL_HMAP;
17 __isl_give ISL_HMAP *ISL_FN(ISL_HMAP,alloc)(isl_ctx *ctx, int min_size);
18 __isl_give ISL_HMAP *ISL_FN(ISL_HMAP,copy)(__isl_keep ISL_HMAP *hmap);
19 __isl_null ISL_HMAP *ISL_FN(ISL_HMAP,free)(__isl_take ISL_HMAP *hmap);
21 isl_ctx *ISL_FN(ISL_HMAP,get_ctx)(__isl_keep ISL_HMAP *hmap);
23 __isl_give ISL_MAYBE(ISL_VAL) ISL_FN(ISL_HMAP,try_get)(
24 __isl_keep ISL_HMAP *hmap, __isl_keep ISL_KEY *key);
25 isl_bool ISL_FN(ISL_HMAP,has)(__isl_keep ISL_HMAP *hmap,
26 __isl_keep ISL_KEY *key);
27 __isl_give ISL_VAL *ISL_FN(ISL_HMAP,get)(__isl_keep ISL_HMAP *hmap,
28 __isl_take ISL_KEY *key);
29 __isl_give ISL_HMAP *ISL_FN(ISL_HMAP,set)(__isl_take ISL_HMAP *hmap,
30 __isl_take ISL_KEY *key, __isl_take ISL_VAL *val);
31 __isl_give ISL_HMAP *ISL_FN(ISL_HMAP,drop)(__isl_take ISL_HMAP *hmap,
32 __isl_take ISL_KEY *key);
34 isl_stat ISL_FN(ISL_HMAP,foreach)(__isl_keep ISL_HMAP *hmap,
35 isl_stat (*fn)(__isl_take ISL_KEY *key, __isl_take ISL_VAL *val,
36 void *user),
37 void *user);
39 __isl_give isl_printer *ISL_FN(isl_printer_print,ISL_HMAP_SUFFIX)(
40 __isl_take isl_printer *p, __isl_keep ISL_HMAP *hmap);
41 void ISL_FN(ISL_HMAP,dump)(__isl_keep ISL_HMAP *hmap);
43 #undef ISL_xCAT
44 #undef ISL_CAT
45 #undef ISL_KEY
46 #undef ISL_VAL
47 #undef ISL_xFN
48 #undef ISL_FN
49 #undef ISL_xHMAP
50 #undef ISL_yHMAP
51 #undef ISL_HMAP
53 #if defined(__cplusplus)
55 #endif