summaryrefslogtreecommitdiff
path: root/cloog-0.17.0/include/cloog/state.h
blob: ebc3272507d5de76ac45845649682931ff88b23f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef CLOOG_STATE_H
#define CLOOG_STATE_H

struct cloogbackend;
typedef struct cloogbackend CloogBackend;

#if defined(__cplusplus)
extern "C" {
#endif 

struct cloogstate {
  CloogBackend *backend;

  cloog_int_t zero;
  cloog_int_t one;
  cloog_int_t negone;

  int block_allocated;
  int block_freed;
  int block_max;

  int domain_allocated;
  int domain_freed;
  int domain_max;

  int loop_allocated;
  int loop_freed;
  int loop_max;

  int statement_allocated;
  int statement_freed;
  int statement_max;
};
typedef struct cloogstate CloogState;

CloogState *cloog_core_state_malloc(void);
CloogState *cloog_state_malloc(void);

void cloog_core_state_free(CloogState *state);
void cloog_state_free(CloogState *state);

#if defined(__cplusplus)
}
#endif 

#endif