polybench_test.sh.in: define POLYBENCH_USE_C99_PROTO
[ppcg.git] / ppcg.h
blob8a2f8fb12f8d9810cde73b7a7edb058ad23d6053
1 #ifndef PPCG_H
2 #define PPCG_H
4 #include <isl/set.h>
5 #include <isl/union_set.h>
6 #include <isl/union_map.h>
7 #include <pet.h>
9 /* Representation of the scop for use inside PPCG.
11 * "start" and "end" are file offsets of the corresponding program text.
12 * "context" represents constraints on the parameters.
13 * "domain" is the union of all iteration domains.
14 * "call" contains the iteration domains of statements with a call expression.
15 * "reads" contains all read accesses.
16 * "live_in" contains read accesses that have no corresponding
17 * writes in the scop.
18 * "writes" contains all write accesses.
19 * "kills" contains all kill accesses.
20 * "dep_flow" represents the flow dependences.
21 * "dep_false" represents the false (anti and output) dependences.
22 * "schedule" represents the (original) schedule.
24 * "arrays" and "stmts" are copies of the corresponding elements
25 * of the original pet_scop.
27 struct ppcg_scop {
28 unsigned start;
29 unsigned end;
31 isl_set *context;
32 isl_union_set *domain;
33 isl_union_set *call;
34 isl_union_map *reads;
35 isl_union_map *live_in;
36 isl_union_map *writes;
37 isl_union_map *kills;
38 isl_union_map *dep_flow;
39 isl_union_map *dep_false;
40 isl_union_map *schedule;
42 int n_array;
43 struct pet_array **arrays;
44 int n_stmt;
45 struct pet_stmt **stmts;
48 #endif