27 lines
510 B
C
27 lines
510 B
C
#ifndef GRAPH_H
|
|
#define GRAPH_H
|
|
|
|
struct graph_data
|
|
{
|
|
struct basicblock* entry;
|
|
ARRAYOF(struct basicblock) preorder;
|
|
ARRAYOF(struct basicblock) postorder;
|
|
};
|
|
|
|
struct dominance_data
|
|
{
|
|
PMAPOF(struct basicblock, struct basicblock) graph;
|
|
ARRAYOF(struct basicblock) preorder;
|
|
ARRAYOF(struct basicblock) postorder;
|
|
};
|
|
|
|
extern struct graph_data cfg;
|
|
extern struct dominance_data dominance;
|
|
|
|
extern void update_graph_data(struct procedure* proc);
|
|
|
|
#endif
|
|
|
|
/* vim: set sw=4 ts=4 expandtab : */
|
|
|