harpoon.IR.LowQuad
Class Code

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

public abstract class Code
extends Code

LowQuad.Code is an abstract superclass of codeviews using the components in IR.LowQuad. It implements shared methods for the various codeviews using LowQuads.

Version:
$Id: Code.java,v 1.3 2003/03/10 22:19:13 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.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
 
Fields inherited from class harpoon.IR.Quads.Code
ai, parent, qf, quads
 
Constructor Summary
protected Code(HMethod parent, Quad quads)
           
 
Method Summary
protected  HCodeAndMaps<Quad> cloneHelper(Code _this, Code qc)
          Helper for clone
 Derivation<Quad> getDerivation()
          Return a Derivation object for this LowQuad.Code.
protected  QuadFactory newQF(HMethod parent)
          Make the quad factory.
protected  void setDerivation(Derivation<Quad> deriv)
          Allow subclasses to initialize the Derivation for this LowQuad.Code.
 
Methods inherited from class harpoon.IR.Quads.Code
clone, cloneHelper, elementArrayFactory, getAllocationInformation, getElements, getElementsI, getLeafElements, getMethod, getName, 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
 

Constructor Detail

Code

protected Code(HMethod parent,
               Quad quads)
Method Detail

newQF

protected QuadFactory newQF(HMethod parent)
Make the quad factory.

Overrides:
newQF in class Code

getDerivation

public Derivation<Quad> getDerivation()
Return a Derivation object for this LowQuad.Code.

Overrides:
getDerivation in class Code
Returns:
null, always.

setDerivation

protected void setDerivation(Derivation<Quad> deriv)
Allow subclasses to initialize the Derivation for this LowQuad.Code.


cloneHelper

protected HCodeAndMaps<Quad> cloneHelper(Code _this,
                                         Code qc)
Description copied from class: Code
Helper for clone

Overrides:
cloneHelper in class Code