| Modifier and Type | Field and Description |
|---|---|
| private final ArrayList | interference
|
| Access | Constructor and Description |
|---|---|
| public | InterferenceGraph(int
>= 0; the start count of registers in
the namespace. New registers can be added subsequently.Creates a new graph. |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(int
one register index regV, int another register index regW)Adds a register pair to the interference/liveness graph. |
| public void | |
| private void | ensureCapacity(int
requested minumum size size)Ensures that the interference graph is appropriately sized. |
| public void | mergeInterferenceSet(int
>= 0; registernon-null; interference set; will be merged
with set for given registerMerges the interference set for a register into a given bit set |
| interference | back to summary |
|---|---|
| private final ArrayList<IntSet> interference
| |
| InterferenceGraph | back to summary |
|---|---|
| public InterferenceGraph(int countRegs) Creates a new graph.
| |
| add | back to summary |
|---|---|
| public void add(int regV, int regW) Adds a register pair to the interference/liveness graph. Parameter order is insignificant.
| |
| dumpToStdout | back to summary |
|---|---|
| public void dumpToStdout() Dumps interference graph to stdout for debugging. | |
| ensureCapacity | back to summary |
|---|---|
| private void ensureCapacity(int size) Ensures that the interference graph is appropriately sized.
| |
| mergeInterferenceSet | back to summary |
|---|---|
| public void mergeInterferenceSet(int reg, IntSet set) Merges the interference set for a register into a given bit set
| |