|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jikesrvm.compilers.opt.regalloc.LiveIntervalElement
public final class LiveIntervalElement
This class defines a LiveInterval node created by Live Variable analysis and used in Linear Scan.
LinearScan
Field Summary | |
---|---|
private BasicBlock |
bb
The basic block holding this live interval element |
private Instruction |
begin
instruction where the live interval begins (null if alive at basic block entry) |
private Instruction |
end
instruction where the live interval ends (null if alive at basic block exit) |
(package private) LiveIntervalElement |
next
LiveIntervalElements are linked in a singly-linked list; this is the next pointer. |
private Register |
register
register that this live interval is for |
Constructor Summary | |
---|---|
LiveIntervalElement(Register reg)
Use this constructor when the live interval spans a basic block boundary. |
|
LiveIntervalElement(Register reg,
Instruction begin,
Instruction end)
Use this constructur when the live interval is within a basic block |
Method Summary | |
---|---|
BasicBlock |
getBasicBlock()
|
Instruction |
getBegin()
|
Instruction |
getEnd()
|
LiveIntervalElement |
getNext()
|
Register |
getRegister()
|
int |
hashCode()
|
void |
setBasicBlock(BasicBlock bb)
|
void |
setBegin(Instruction begin)
|
void |
setNext(LiveIntervalElement Next)
|
void |
setRegister(Register r)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private Register register
private Instruction begin
private Instruction end
private BasicBlock bb
LiveIntervalElement next
Constructor Detail |
---|
public LiveIntervalElement(Register reg)
reg
- The Register whose live interval we are representingpublic LiveIntervalElement(Register reg, Instruction begin, Instruction end)
reg
- the Register whose live interval we are representingbegin
- the definition of the registerend
- the last use of the registerMethod Detail |
---|
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public Instruction getBegin()
public void setBegin(Instruction begin)
public Instruction getEnd()
public Register getRegister()
public void setRegister(Register r)
public LiveIntervalElement getNext()
public void setNext(LiveIntervalElement Next)
public BasicBlock getBasicBlock()
public void setBasicBlock(BasicBlock bb)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |