[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to construct a control flow graph?
> #HUANG YUE# <huangyue@pmail.ntu.edu.sg> wrote:
> > There is one document saying UnitGraph can be used to construct
> > control flow graph.is it?
I should have mentioned, maybe what you need is BlockGraph and
friends: ArrayRefBlockGraph, BriefBlockGraph, CompleteBlockGraph,
ZonedBlockGraph.
These will create a CFG on basic blocks for you instead of building a
graph on individual Units. The documentation is at the same place.
Cheers,
Navin.