public abstract class GenericRegisterPreferences extends Object
| Modifier and Type | Field and Description |
|---|---|
private CoalesceGraph |
graph
The main backing data structure;
|
| Constructor and Description |
|---|
GenericRegisterPreferences() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAffinity(int w,
Register r1,
Register r2)
Adds a affinity of weight w between two registers.
|
CoalesceGraph |
getGraph() |
abstract void |
initialize(IR ir)
Sets up register preferences for an IR.
|
private final CoalesceGraph graph
public GenericRegisterPreferences()
protected void addAffinity(int w, Register r1, Register r2)
w - the affinityr1 - the first registerr2 - the second registerpublic abstract void initialize(IR ir)
ir - the IRpublic CoalesceGraph getGraph()