harpoon.Util.LightBasicBlocks
Class CachingSCCLBBFactory

java.lang.Object
  |
  +--harpoon.Util.LightBasicBlocks.SCCLBBFactory
        |
        +--harpoon.Util.LightBasicBlocks.CachingSCCLBBFactory
All Implemented Interfaces:
Serializable

public class CachingSCCLBBFactory
extends SCCLBBFactory
implements Serializable

CachingSCCLBBFactory adds some caching to SCCLBBFactory.

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

Constructor Summary
CachingSCCLBBFactory(LBBConverter lbbconv)
          Creates a CachingSCCLBBFactory.
 
Method Summary
 void clear()
          Clears the cache of previously computed results.
 SCCTopSortedGraph computeSCCLBB(HMethod hm)
          Computes the topologically sorted graph of all the light basic blocks of the hm method.
 
Methods inherited from class harpoon.Util.LightBasicBlocks.SCCLBBFactory
getLBBConverter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingSCCLBBFactory

public CachingSCCLBBFactory(LBBConverter lbbconv)
Creates a CachingSCCLBBFactory.

Method Detail

computeSCCLBB

public SCCTopSortedGraph computeSCCLBB(HMethod hm)
Computes the topologically sorted graph of all the light basic blocks of the hm method. All the results are cached so that the computation occurs only once for each method (of course, unless clear is called).

Overrides:
computeSCCLBB in class SCCLBBFactory

clear

public void clear()
Clears the cache of previously computed results.