harpoon.Backend.CSAHack.RegAlloc
Class Code
java.lang.Object
harpoon.ClassFile.HCode<Instr>
harpoon.IR.Assem.Code
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>
Methods inherited from class harpoon.IR.Assem.Code |
elementArrayFactory, formatCommentedInstr, getElementsI, getFrame, getInstrFactory, getLeafElements, getMethod, getRootElement, myPrint, myPrint, myPrint, nodes, print, print, toAssem |
Code
public Code(HMethod parent,
Instr instrs,
Derivation deriv,
Frame frame)
- Creates a
Code
.
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)