source: Daodan/MSYS2/mingw32/include/isl/obj.h@ 1178

Last change on this file since 1178 was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 2.0 KB
Line 
1#ifndef ISL_OBJ_H
2#define ISL_OBJ_H
3
4#include <isl/set_type.h>
5#include <isl/map_type.h>
6#include <isl/union_set_type.h>
7#include <isl/union_map_type.h>
8#include <isl/polynomial_type.h>
9#include <isl/printer.h>
10
11#if defined(__cplusplus)
12extern "C" {
13#endif
14
15struct isl_obj_vtable {
16 void *(*copy)(void *v1);
17 void *(*add)(void *v1, void *v2);
18 __isl_give isl_printer *(*print)(__isl_take isl_printer *p, void *v);
19 void (*free)(void *v);
20};
21typedef struct isl_obj_vtable *isl_obj_type;
22extern struct isl_obj_vtable isl_obj_none_vtable;
23#define isl_obj_none (&isl_obj_none_vtable)
24extern struct isl_obj_vtable isl_obj_int_vtable;
25#define isl_obj_int (&isl_obj_int_vtable)
26extern struct isl_obj_vtable isl_obj_val_vtable;
27#define isl_obj_val (&isl_obj_val_vtable)
28extern struct isl_obj_vtable isl_obj_set_vtable;
29#define isl_obj_set (&isl_obj_set_vtable)
30extern struct isl_obj_vtable isl_obj_union_set_vtable;
31#define isl_obj_union_set (&isl_obj_union_set_vtable)
32extern struct isl_obj_vtable isl_obj_map_vtable;
33#define isl_obj_map (&isl_obj_map_vtable)
34extern struct isl_obj_vtable isl_obj_union_map_vtable;
35#define isl_obj_union_map (&isl_obj_union_map_vtable)
36extern struct isl_obj_vtable isl_obj_pw_multi_aff_vtable;
37#define isl_obj_pw_multi_aff (&isl_obj_pw_multi_aff_vtable)
38extern struct isl_obj_vtable isl_obj_pw_qpolynomial_vtable;
39#define isl_obj_pw_qpolynomial (&isl_obj_pw_qpolynomial_vtable)
40extern struct isl_obj_vtable isl_obj_union_pw_qpolynomial_vtable;
41#define isl_obj_union_pw_qpolynomial (&isl_obj_union_pw_qpolynomial_vtable)
42extern struct isl_obj_vtable isl_obj_pw_qpolynomial_fold_vtable;
43#define isl_obj_pw_qpolynomial_fold (&isl_obj_pw_qpolynomial_fold_vtable)
44extern struct isl_obj_vtable isl_obj_union_pw_qpolynomial_fold_vtable;
45#define isl_obj_union_pw_qpolynomial_fold (&isl_obj_union_pw_qpolynomial_fold_vtable)
46extern struct isl_obj_vtable isl_obj_schedule_vtable;
47#define isl_obj_schedule (&isl_obj_schedule_vtable)
48struct isl_obj {
49 isl_obj_type type;
50 void *v;
51};
52
53#if defined(__cplusplus)
54}
55#endif
56
57#endif
Note: See TracBrowser for help on using the repository browser.