add parametric dependence analysis test
[ppn.git] / dump.h
blob2f99f87a73db7b5a8eea4b494cd839172ae7a15b
1 #ifndef DUMP_H
2 #define DUMP_H
4 #include <vector>
6 #include "domain.h"
8 class dumper {
9 context_info *ctx;
10 tree_proc *tp;
11 symtab_ann *sa;
12 int root;
13 map<var_sym*, pdg::array*> arrays;
14 pdg::PDG *pdg;
15 isl_space *dim; /* parameters */
16 int totalread;
17 int nread;
18 int nwrite;
19 public:
20 std::vector<domain_ann *> nodes;
21 void scan();
22 void dump(int argc, char * argv[]);
23 void visit(tree_node *t);
24 dumper(tree_proc *t, context_info *ctx) : tp(t), ctx(ctx) {
25 sa = (symtab_ann *)tp->peek_annote(k_domain_symtab);
27 ~dumper();
29 pdg::access *add_access(pdg::node *pn, stmt_access *sa);
30 pdg::call_or_access *scan_stmt(pdg::node *pn, stmt_node *n);
31 pdg::function_call *scan_stmt(pdg::node *pn, stmt *s);
34 void dump(tree_proc * tp, context_info *ctx, int argc, char * argv[]);
36 #endif