harpoon.Backend.CSAHack.RegAlloc
Class Code

java.lang.Object
  extended by harpoon.ClassFile.HCode<Instr>
      extended by harpoon.IR.Assem.Code
          extended by harpoon.Backend.CSAHack.RegAlloc.Code
All Implemented Interfaces:
Graph<Instr,InstrEdge>

public class Code
extends Code

Code

Version:
$Id: Code.java,v 1.2 2002/02/25 21:01:14 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>

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.Assem.Code
frame, inf, instrs, parent
 
Constructor Summary
Code(HMethod parent, Instr instrs, Derivation deriv, Frame frame)
          Creates a Code.
 
Method Summary
 void assignRegister(Instr i, Temp pr, List regs)
           
 Derivation getDerivation()
          Returns the Derivation associated with this.
 String getName()
          Return the name of this code view.
 String getRegisterName(Instr i, Temp val, String suffix)
          Returns an assembly code identifier for the register that val will be stored into.
 boolean registerAssigned(Instr i, Temp pr)
           
 
Methods inherited from class harpoon.IR.Assem.Code
elementArrayFactory, formatCommentedInstr, getElementsI, getFrame, getInstrFactory, getLeafElements, getMethod, getRootElement, myPrint, myPrint, myPrint, nodes, print, print, toAssem
 
Methods inherited from class harpoon.ClassFile.HCode
clone, clone, elementIndexer, getElements, getElementsL, print, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Code

public Code(HMethod parent,
            Instr instrs,
            Derivation deriv,
            Frame frame)
Creates a Code.

Method Detail

getDerivation

public Derivation getDerivation()
Description copied from class: Code
Returns the Derivation associated with this. Returns null if Derivation information is not available.

Overrides:
getDerivation in class Code

getName

public String getName()
Description copied from class: HCode
Return the name of this code view. The default bytecode view is named "bytecode". It is suggested that additional views be named in a similarly human-friendly fashion.

Specified by:
getName in class HCode<Instr>

getRegisterName

public String getRegisterName(Instr i,
                              Temp val,
                              String suffix)
Description copied from class: Code
Returns an assembly code identifier for the register that val will be stored into.

Specified by:
getRegisterName in class Code

assignRegister

public void assignRegister(Instr i,
                           Temp pr,
                           List regs)

registerAssigned

public boolean registerAssigned(Instr i,
                                Temp pr)