ref: cb4e2d4b69b663b99271bd4b29efceb873603f53
dir: /opt/opt.h/
typedef struct Cfg Cfg;
typedef struct Bb Bb;
struct Cfg {
Bb **bb;
size_t nbb;
/* for building bb */
Htab *lblmap; /* label => Bb mapping */
Node **fixjmp;
size_t nfixjmp;
Bb **fixblk;
size_t nfixblk;
};
struct Bb {
int id;
char **lbls;
size_t nlbls;
Node **nl;
size_t nnl;
Bitset *in;
Bitset *out;
};
/* Takes a reduced block, and returns a flow graph. */
Cfg *mkcfg(Node **nl, int nn);
void dumpcfg(Cfg *c, FILE *fd);
void flow(Cfg *cfg);