harpoon.IR.LowQuad
Class LowQuadSSI

java.lang.Object
  extended by harpoon.ClassFile.HCode<Quad>
      extended by harpoon.IR.Quads.Code
          extended by harpoon.IR.LowQuad.Code
              extended by harpoon.IR.LowQuad.LowQuadSSI
All Implemented Interfaces:
Graph<Quad,Edge>, Serializable
Direct Known Subclasses:
MyLowQuadSSI

public class LowQuadSSI
extends Code

The LowQuadSSI codeview exposes a lowquad based representation in SSI form.

Version:
$Id: LowQuadSSI.java,v 1.6 2003/03/11 18:22:49 cananian Exp $
Author:
Duncan Bryce <duncan@lcs.mit.edu>
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class harpoon.ClassFile.HCode
HCode.PrintCallback<HCE extends HCodeElement>
 
Nested classes/interfaces inherited from interface harpoon.Util.Collections.Graph
Graph.Edge<N extends Graph.Node<N,E>,E extends Graph.Edge<N,E>>, Graph.Node<N extends Graph.Node<N,E>,E extends Graph.Edge<N,E>>
 
Field Summary
static String codename
          The name of this code view.
 
Fields inherited from class harpoon.IR.Quads.Code
ai, parent, qf, quads
 
Constructor Summary
protected LowQuadSSI(HMethod method, Quad quads)
          Create a new code object given a quadruple representation of the method instructions.
  LowQuadSSI(LowQuadNoSSA code)
          Creates a LowQuadSSI object from a LowQuadNoSSA object.
 
Method Summary
 HCodeAndMaps<Quad> clone(HMethod newMethod)
          Clone this code representation.
static HCodeFactory codeFactory()
          Return a code factory for LowQuadSSI, using the default code factory for harpoon.IR.Quads.QuadSSI
static HCodeFactory codeFactory(HCodeFactory hcf)
          Return a code factory for LowQuadSSI, given a code factory for QuadSSI.
 String getName()
          Return the name of this code view.
 
Methods inherited from class harpoon.IR.LowQuad.Code
cloneHelper, getDerivation, newQF, setDerivation
 
Methods inherited from class harpoon.IR.Quads.Code
cloneHelper, elementArrayFactory, getAllocationInformation, getElements, getElementsI, getLeafElements, getMethod, getRootElement, nodes, notifyReplace, print, selectAllocations, selectCALLs, selectQuads, setAllocationInformation
 
Methods inherited from class harpoon.ClassFile.HCode
clone, elementIndexer, getElementsL, print, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

codename

public static final String codename
The name of this code view.

See Also:
Constant Field Values
Constructor Detail

LowQuadSSI

public LowQuadSSI(LowQuadNoSSA code)
Creates a LowQuadSSI object from a LowQuadNoSSA object.


LowQuadSSI

protected LowQuadSSI(HMethod method,
                     Quad quads)
Create a new code object given a quadruple representation of the method instructions.

Method Detail

clone

public HCodeAndMaps<Quad> clone(HMethod newMethod)
Clone this code representation. The clone has its own copy of the quad graph.

WARNING: does not preserve derivation or allocation info.

Specified by:
clone in class Code

getName

public String getName()
Return the name of this code view.

Specified by:
getName in class Code
Returns:
the string "low-quad-ssi"

codeFactory

public static HCodeFactory codeFactory(HCodeFactory hcf)
Return a code factory for LowQuadSSI, given a code factory for QuadSSI.
effects: if hcf is a code factory for QuadSSI or LowQuadNoSSA, then creates and returns a code factory for LowQuadSSI. Else passes hcf to QuadSSI.codeFactory(), and reattempts to create a code factory for LowQuadSSI from the code factory returned by QuadSSI.

See Also:
QuadSSI.codeFactory(HCodeFactory)

codeFactory

public static HCodeFactory codeFactory()
Return a code factory for LowQuadSSI, using the default code factory for harpoon.IR.Quads.QuadSSI