ack/mach/proto/mcg/graph.h

28 lines
566 B
C
Raw Normal View History

#ifndef GRAPH_H
#define GRAPH_H
struct graph_data
{
struct basicblock* entry;
PMAPOF(struct basicblock, struct basicblock) graph;
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 : */