harpoon.Util.LightBasicBlocks
Class CachingSCCLBBFactory

java.lang.Object
  extended by harpoon.Util.LightBasicBlocks.SCCLBBFactory
      extended by 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.5 2005/08/17 17:51:03 salcianu 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.
 jpaul.Graphs.TopSortedCompDiGraph<LightBasicBlock> 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 jpaul.Graphs.TopSortedCompDiGraph<LightBasicBlock> 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.