|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--at.dms.backend.QOperand | +--at.dms.backend.QTemporary
This class represents a temporary.
Field Summary | |
static QTemporary[] |
EMPTY
An empty array of temporaries. |
static int |
UNINITIALIZED
Constant for UNINITIALIZED. |
static int |
UNUSED
Constant for UNUSED. |
Constructor Summary | |
(package private) |
QTemporary(int type)
|
(package private) |
QTemporary(int type,
int precolor)
|
Method Summary | |
void |
def(BasicBlock block,
int pos)
Defines? a temporary. |
QOrigin |
duplicate()
Duplicate this node. |
void |
enforceColor()
Enforces the precolor. |
void |
generate(CodeSequence seq)
Generates instructions for this quadruple. |
QTemporary |
getDef()
Returns the defined temporary. |
int |
getPosition()
Gets position. |
int |
getPrecolor()
Returns the pre-color of this temporary. |
int |
getRegister()
Returns the register number of this temporary. |
int |
getSize()
Returns the size (the number of slot) of this temporary. |
int |
getType()
The type of the temporary. |
int |
getUseCount()
Returns the number of uses. |
QTemporary[] |
getUses()
Returns the used temporaries. |
void |
setPosition(int pos)
Sets position. |
void |
setRegister(int reg)
??? |
void |
store(CodeSequence seq,
boolean isLive)
Generates instructions for storing. |
java.lang.String |
toString()
Human readable form. |
void |
use(BasicBlock block,
int pos)
Uses a temporary. |
Methods inherited from class at.dms.backend.QOperand |
getInstruction, getOrigins, setOrigin |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static final int UNINITIALIZED
public static final int UNUSED
public static final QTemporary[] EMPTY
Constructor Detail |
QTemporary(int type)
QTemporary(int type, int precolor)
Method Detail |
public QTemporary getDef()
getDef
in interface QDestination
public QTemporary[] getUses()
public int getSize()
public int getRegister()
public int getPrecolor()
public void enforceColor()
public int getType()
getType
in class QOperand
public java.lang.String toString()
toString
in class java.lang.Object
public QOrigin duplicate()
public void use(BasicBlock block, int pos)
public void def(BasicBlock block, int pos)
public int getUseCount()
public void setPosition(int pos)
public int getPosition()
public void setRegister(int reg)
public void generate(CodeSequence seq)
seq
- The code sequence of instruction.public void store(CodeSequence seq, boolean isLive)
store
in interface QDestination
seq
- The code sequence of instruction.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |