-
Notifications
You must be signed in to change notification settings - Fork 9
/
state.h
38 lines (31 loc) · 810 Bytes
/
state.h
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
#ifndef PET_STATE_H
#define PET_STATE_H
#include <pet.h>
#if defined(__cplusplus)
extern "C" {
#endif
/* Global state of pet_scop_from_pet_tree.
*
* "extract_array" is a callback specified by the user that can be
* used to create a pet_array corresponding to the variable accessed
* by "access".
* "int_size" is the number of bytes needed to represent an integer.
*
* "n_loop" is the sequence number of the next loop.
* "n_stmt" is the sequence number of the next statement.
* "n_test" is the sequence number of the next virtual scalar.
*/
struct pet_state {
isl_ctx *ctx;
struct pet_array *(*extract_array)(__isl_keep pet_expr *access,
__isl_keep pet_context *pc, void *user);
void *user;
int int_size;
int n_loop;
int n_stmt;
int n_test;
};
#if defined(__cplusplus)
}
#endif
#endif