|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jikesrvm.compilers.opt.ir.IRTools org.jikesrvm.compilers.opt.ir.GenericPhysicalRegisterTools
public abstract class GenericPhysicalRegisterTools
This abstract class provides a set of useful architecture-independent methods for manipulating physical registers for an IR.
Constructor Summary | |
---|---|
GenericPhysicalRegisterTools()
|
Method Summary | |
---|---|
protected RegisterOperand |
A(int regnum)
Create an address register operand for a given physical GPR. |
(package private) RegisterOperand |
D(int regnum)
Create a double register operand for a given physical FPR. |
(package private) RegisterOperand |
F(int regnum)
Create a float register operand for a given physical FPR. |
abstract IR |
getIR()
Return the governing IR. |
(package private) static boolean |
hasPhysicalOperand(Instruction s)
Does instruction s have an operand that contains a physical register? |
protected RegisterOperand |
I(int regnum)
Create an integer register operand for a given physical GPR. |
(package private) RegisterOperand |
L(int regnum)
Create a long register operand for a given GPR number. |
Methods inherited from class org.jikesrvm.compilers.opt.ir.IRTools |
---|
A, AC, AC, CPOS, CR, D, DC, defDoublesAsUse, definedIn, F, FC, getCondMoveOp, getDefaultOperand, getLoadOp, getLoadOp, getMoveOp, getStoreOp, getStoreOp, I, IC, insertInstructionsAfter, L, LC, makeBlockOnEdge, mayBeVolatileFieldLoad, moveInstruction, moveIntoRegister, moveIntoRegister, nonPEIGC, TG, usedIn, useDoublesAsDef |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericPhysicalRegisterTools()
Method Detail |
---|
public abstract IR getIR()
protected final RegisterOperand A(int regnum)
... Load.create(INT_LOAD, I(2), A(1), IC(4)) ...
regnum
- the given GPR register number
protected final RegisterOperand I(int regnum)
... Load.create(INT_LOAD, I(2), A(1), IC(4)) ...
regnum
- the given GPR register number
final RegisterOperand F(int regnum)
... Load.create(FLOAT_LOAD, F(2), A(1), IC(4)) ...
regnum
- the given DOUBLE register number
final RegisterOperand D(int regnum)
... Load.create(DOUBLE_LOAD, D(2), A(1), IC(4)) ...
regnum
- the given double register number
final RegisterOperand L(int regnum)
... Load.create(LONG_LOAD, L(2), A(1), IC(4)) ...
regnum
- the given GPR register number
static boolean hasPhysicalOperand(Instruction s)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |