|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.backend.QOperand
org.multijava.util.backend.QTemporary
This class represents a temporary
| Field Summary | |
private static int |
_count
|
private int |
countUses
|
private BasicBlock |
defBlock
|
private int |
defPos
|
static QTemporary[] |
EMPTY
|
private int |
pos
|
private int |
precolor
|
private int |
register
|
private int |
type
|
static int |
UNINITIALIZED
|
static int |
UNUSED
|
private BasicBlock |
useBlock
|
private int |
usePos
|
private boolean |
usePrecolor
|
| Constructor Summary | |
(package private) |
QTemporary(int type)
|
(package private) |
QTemporary(int type,
int precolor)
|
| Method Summary | |
void |
def(BasicBlock block,
int pos)
Uses 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. |
InstructionHandle |
getInstruction()
Returns the primitive instruction |
QOrigin[] |
getOrigins()
returns the parameters of this instruction |
int |
getPosition()
Gets position |
int |
getPrecolor()
Returns the register number 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 size (in instruction) of the subtree |
int |
getUseCount()
Returns the number of uses |
QTemporary[] |
getUses()
Returns the used temporaries. |
void |
setOrigin(QOrigin origin,
int i)
Sets the parameters of this instruction |
void |
setPosition(int pos)
Sets position |
void |
setRegister(int reg)
|
void |
store(CodeSequence seq,
boolean isLive)
Generates instructions for destination |
String |
toString()
Human readable form |
void |
use(BasicBlock block,
int pos)
Uses a temporary |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private int type
private BasicBlock defBlock
private int defPos
private BasicBlock useBlock
private int usePos
private int countUses
private int register
private int precolor
private boolean usePrecolor
private int pos
private static int _count
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 QDestinationpublic QTemporary[] getUses()
getUses in interface QOriginpublic int getSize()
public int getRegister()
public int getPrecolor()
public void enforceColor()
public int getType()
getType in interface QOriginpublic String toString()
toString in class Objectpublic QOrigin duplicate()
duplicate in interface QOrigin
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)
generate in interface QOriginseq - The code sequence of instruction
public void store(CodeSequence seq,
boolean isLive)
store in interface QDestinationseq - The code sequence of instructionisLive - Is the destination live after this store ?public InstructionHandle getInstruction()
getInstruction in interface QOriginpublic QOrigin[] getOrigins()
getOrigins in interface QOrigin
public void setOrigin(QOrigin origin,
int i)
setOrigin in interface QOrigin
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||