harpoon.Util.BasicBlocks
Class CachingSCCBBFactory
java.lang.Object
|
+--harpoon.Util.BasicBlocks.SCCBBFactory
|
+--harpoon.Util.BasicBlocks.CachingSCCBBFactory
- All Implemented Interfaces:
- Serializable
- public class CachingSCCBBFactory
- extends SCCBBFactory
CachingSCCBBFactory
adds some caching to
SCCBBFactory
.
- Version:
- $Id: CachingSCCBBFactory.java,v 1.2 2002/02/25 21:08:59 cananian Exp $
- Author:
- Alexandru SALCIANU <salcianu@retezat.lcs.mit.edu>
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CachingSCCBBFactory
public CachingSCCBBFactory(BBConverter bbconv)
- Creates a
CachingSCCBBFactory
.
computeSCCBB
public SCCTopSortedGraph computeSCCBB(HMethod hm)
- Computes the topologically sorted graph of all the basic blocks from
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:
computeSCCBB
in class SCCBBFactory
clear
public void clear()
- Clears the cache of previously computed results.