harpoon.Util.BasicBlocks
Class SCCBBFactory

java.lang.Object
  |
  +--harpoon.Util.BasicBlocks.SCCBBFactory
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CachingSCCBBFactory

public class SCCBBFactory
extends Object
implements Serializable

SCCBBFactory converts the code of a method into the topollogically sorted component graph of BasicBlocks.

Version:
$Id: SCCBBFactory.java,v 1.2 2002/02/25 21:08:59 cananian Exp $
Author:
Alexandru SALCIANU <salcianu@retezat.lcs.mit.edu>
See Also:
Serialized Form

Constructor Summary
SCCBBFactory(BBConverter bbconv)
          Creates a SCCBBFactory.
 
Method Summary
 SCCTopSortedGraph computeSCCBB(HMethod hm)
          Generates the code of the method hm using the HCodeFactory passed to the constructor of this object, cuts it into pieces (i.e.
 BBConverter getBBConverter()
          Returns the underlying BBConverter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SCCBBFactory

public SCCBBFactory(BBConverter bbconv)
Creates a SCCBBFactory.

Method Detail

getBBConverter

public BBConverter getBBConverter()
Returns the underlying BBConverter. This is the same as the one passed to the constructor of this object.


computeSCCBB

public SCCTopSortedGraph computeSCCBB(HMethod hm)
Generates the code of the method hm using the HCodeFactory passed to the constructor of this object, cuts it into pieces (i.e. BasicBlocks) and topologically sorts the component graph. Returns the sorted graph.