org.jikesrvm.compilers.opt.instrsched
Class SchedulingInfo

java.lang.Object
  extended by org.jikesrvm.compilers.opt.instrsched.SchedulingInfo

final class SchedulingInfo
extends Object

Object containing scheduling information Used by the scheduler


Field Summary
(package private)  int alt
           
(package private)  int cp
           
(package private)  int etime
           
(package private)  int time
           
 
Constructor Summary
private SchedulingInfo()
          For internal use only.
 
Method Summary
static void createInfo(Instruction i)
          Initializes scheduling information for instruction.
static int getAlt(Instruction i)
          Returns scheduling alternative for instruction.
static int getCriticalPath(Instruction i)
          Returns critical path length for instruction.
static int getEarliestTime(Instruction i)
          Returns earliest scheduling time for instruction.
static SchedulingInfo getInfo(Instruction i)
          Returns scheduling information for instruction.
static int getTime(Instruction i)
          Returns scheduling time for instruction.
static boolean isScheduled(Instruction i)
          Checks whether instruction is scheduled.
static void removeInfo(Instruction i)
          Removes scheduling information from instruction.
static void resetInfo(Instruction i)
          Clears scheduling information of instruction.
static void setCriticalPath(Instruction i, int cp)
          Sets critical path length for instruction.
static void setEarliestTime(Instruction i, int etime)
          Sets earliest scheduling time for instruction.
static void setInfo(Instruction i, int alt, int time)
          Adds scheduling information to instruction.
 String toString()
          Returns a string representation of scheduling info.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

alt

int alt

time

int time

etime

int etime

cp

int cp
Constructor Detail

SchedulingInfo

private SchedulingInfo()
For internal use only. Clients should invoke createInfo(Instruction).

Method Detail

createInfo

public static void createInfo(Instruction i)
Initializes scheduling information for instruction.

Parameters:
i - instruction

removeInfo

public static void removeInfo(Instruction i)
Removes scheduling information from instruction.

Parameters:
i - instruction

getInfo

public static SchedulingInfo getInfo(Instruction i)
Returns scheduling information for instruction.

Parameters:
i - instruction
Returns:
scheduling info for instruction

setInfo

public static void setInfo(Instruction i,
                           int alt,
                           int time)
Adds scheduling information to instruction.

Parameters:
i - instruction
alt - scheduling alternative
time - scheduling time

resetInfo

public static void resetInfo(Instruction i)
Clears scheduling information of instruction.

Parameters:
i - instruction

isScheduled

public static boolean isScheduled(Instruction i)
Checks whether instruction is scheduled.

Parameters:
i - instruction
Returns:
true if instruction is scheduled, false otherwise

getAlt

public static int getAlt(Instruction i)
Returns scheduling alternative for instruction.

Parameters:
i - instruction
Returns:
scheduling alternative for instruction

getTime

public static int getTime(Instruction i)
Returns scheduling time for instruction.

Parameters:
i - instruction
Returns:
scheduling time for instruction

getEarliestTime

public static int getEarliestTime(Instruction i)
Returns earliest scheduling time for instruction.

Parameters:
i - instruction
Returns:
earliest scheduling time for instruction

setEarliestTime

public static void setEarliestTime(Instruction i,
                                   int etime)
Sets earliest scheduling time for instruction.

Parameters:
i - instruction
etime - earliest scheduling time for instruction

getCriticalPath

public static int getCriticalPath(Instruction i)
Returns critical path length for instruction.

Parameters:
i - instruction
Returns:
critical path length for instruction

setCriticalPath

public static void setCriticalPath(Instruction i,
                                   int cp)
Sets critical path length for instruction.

Parameters:
i - instruction
cp - critical path length for instruction

toString

public String toString()
Returns a string representation of scheduling info.

Overrides:
toString in class Object
Returns:
string representation of scheduling info