avoid recomputation of "one" (and -1) by storing a copy in CloogState
[cloog/uuh.git] / include / cloog / state.h
blobc5e5b427fa414b56f6adee78da72f593e20ac9c7
1 #ifndef CLOOG_STATE_H
2 #define CLOOG_STATE_H
4 #if defined(CLOOG_POLYLIB)
5 #include <cloog/polylib/backend.h>
6 #elif defined(CLOOG_ISL)
7 #include <cloog/isl/backend.h>
8 #else
9 struct cloogbackend;
10 #endif
11 typedef struct cloogbackend CloogBackend;
13 #if defined(__cplusplus)
14 extern "C" {
15 #endif
17 struct cloogstate {
18 CloogBackend *backend;
20 cloog_int_t one;
21 cloog_int_t negone;
23 int block_allocated;
24 int block_freed;
25 int block_max;
27 int domain_allocated;
28 int domain_freed;
29 int domain_max;
31 int loop_allocated;
32 int loop_freed;
33 int loop_max;
35 int statement_allocated;
36 int statement_freed;
37 int statement_max;
39 typedef struct cloogstate CloogState;
41 CloogState *cloog_core_state_malloc(void);
42 CloogState *cloog_state_malloc(void);
44 void cloog_core_state_free(CloogState *state);
45 void cloog_state_free(CloogState *state);
47 #if defined(__cplusplus)
49 #endif
51 #endif