public class RegSpillListElement extends Object
Modifier and Type | Field and Description |
---|---|
private Register |
symbolicReg
this should be a symbolic register
|
private int |
value
This could be either a spill or a real reg number.
|
Constructor and Description |
---|
RegSpillListElement(Register symbolicReg)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getRealRegNumber()
returns the real (physical) register associated with this object
|
int |
getSpill()
returns the spill value associated with this object
|
Register |
getSymbolicReg()
returns the symbolic register associated with this object
|
boolean |
isSpill()
Is this a spill?
|
void |
setRealReg(Register reg)
Sets the real (i.e., physical) register component associated with
this object
|
void |
setSpill(int value)
Sets the spill component associated with this object
|
String |
toString()
return a string version of this object
|
private final Register symbolicReg
private int value
public RegSpillListElement(Register symbolicReg)
symbolicReg
- the symbolic register holding the referencepublic final void setSpill(int value)
value
- the spill valuepublic final void setRealReg(Register reg)
reg
- the real (physical) registerpublic final boolean isSpill()
public final Register getSymbolicReg()
public final int getRealRegNumber()
public final int getSpill()