org.multijava.util.backend
Class RegisterAllocation
java.lang.Object
org.multijava.util.backend.TreeWalker
org.multijava.util.backend.RegisterAllocation
- public class RegisterAllocation
- extends TreeWalker
This class allocate the the temporary to a minimal number of registers
| Fields inherited from class org.multijava.util.backend.TreeWalker |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
infer
private InferenceNode[] infer
temps
private QTemporary[] temps
RegisterAllocation
public RegisterAllocation(MethodEnv env,
BasicBlock[] bblocks,
BasicBlock[] eblocks,
LivenessAnalysis live)
- Creates a new instruction handle.
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
sort
private void sort(InferenceNode[] temps)
mjc is Copyright (C) 2000-2004 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. mjc is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.