at.dms.backend
Class RegisterAllocation

java.lang.Object
  |
  +--at.dms.backend.TreeWalker
        |
        +--at.dms.backend.RegisterAllocation

public class RegisterAllocation
extends TreeWalker

This class allocates temporaries to the minimal number of registers.


Constructor Summary
RegisterAllocation(MethodEnv env, BasicBlock[] bblocks, BasicBlock[] eblocks, LivenessAnalysis live)
          ???
 
Method Summary
 InferenceNode[] getInferenceGraph()
          Returns the inference Graph.
protected  void processNode(QNode node)
          Processes the node.
 void run()
          Runs the register allocation algorithm.
 
Methods inherited from class at.dms.backend.TreeWalker
getBasicBlock, kill, removeNode, traverse
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegisterAllocation

public RegisterAllocation(MethodEnv env,
                          BasicBlock[] bblocks,
                          BasicBlock[] eblocks,
                          LivenessAnalysis live)
???
Method Detail

run

public void run()
Runs the register allocation algorithm.

getInferenceGraph

public InferenceNode[] getInferenceGraph()
Returns the inference Graph.

processNode

protected void processNode(QNode node)
Description copied from class: TreeWalker
Processes the node.
Overrides:
processNode in class TreeWalker
Following copied from class: at.dms.backend.TreeWalker
Parameters:
node - The node to be processed.