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.5 2005/08/17 17:51:03 salcianu Exp $
- Author:
- Alexandru SALCIANU <salcianu@retezat.lcs.mit.edu>
- See Also:
- Serialized Form
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CachingSCCLBBFactory
public CachingSCCLBBFactory(LBBConverter lbbconv)
- Creates a
CachingSCCLBBFactory
.
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.