|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jikesrvm.compilers.opt.ir.GCIRMap
public final class GCIRMap
This class holds GC maps for various program points. This data structure is IR-based. In a later phase, this information will be used to create the final GC map (see OptMachineCodeMap.java)
| Field Summary | |
|---|---|
private static boolean |
DEBUG
Used for class-wide debugging |
private LinkedListRVM<GCIRMapElement> |
list
This is the list of maps. |
| Constructor Summary | |
|---|---|
GCIRMap()
|
|
| Method Summary | |
|---|---|
int |
countNumSpillElements()
Calculates the number of spill entries in this GCIRMap This is the total number of spills for all instructions in this map. |
List<RegSpillListElement> |
createDU(LiveSet set)
TODO What is this method doing in this class ?? |
void |
delete(Instruction inst)
This method removes an entry in the GCIRMap that is specified by inst. |
void |
dump()
dumps the map |
int |
getNumInstructionMaps()
returns the number of GC points in this map, i.e., the number of instructions we have maps for. |
void |
insert(Instruction inst,
List<RegSpillListElement> regList)
This method inserts a new entry into the GCIRMap |
void |
insertTwin(Instruction inst,
Instruction twin)
This method inserts an entry for a "twin" instruction immediately after the original entry. |
Iterator<GCIRMapElement> |
iterator()
|
void |
moveToEnd(Instruction inst)
This method moves an entry in the GCIRMap that is specified by inst to the end of the list. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final LinkedListRVM<GCIRMapElement> list
private static final boolean DEBUG
| Constructor Detail |
|---|
public GCIRMap()
| Method Detail |
|---|
public int getNumInstructionMaps()
public int countNumSpillElements()
public List<RegSpillListElement> createDU(LiveSet set)
set - the set of registers, encoded as a LiveSet object
public void insert(Instruction inst,
List<RegSpillListElement> regList)
inst - the IR instruction we care aboutregList - the set of symbolic registers as a listpublic void delete(Instruction inst)
inst - the IR instruction we want to removepublic void moveToEnd(Instruction inst)
inst - the IR instruction we want to remove
public void insertTwin(Instruction inst,
Instruction twin)
inst - the original IR instructiontwin - the new twin IR instructionpublic Iterator<GCIRMapElement> iterator()
iterator in interface Iterable<GCIRMapElement>public void dump()
public String toString()
toString in class Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||