|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--at.dms.backend.QNode | +--at.dms.backend.QQuadruple
This class represents a quadruple: a source and a destinationination.
Constructor Summary | |
QQuadruple(QDestination destination,
QOrigin origin)
|
Method Summary | |
static QTemporary[] |
buildQuadruples(MethodEnv env,
BasicBlock block,
InstructionHandle[] instructions,
QTemporary[] entryStack,
java.util.List list)
Builds the quadruple list. |
QOrigin |
duplicate()
Duplicate this node: not implemented. |
void |
generate(CodeSequence seq)
Generates instructions for this quadruple. |
QTemporary |
getDef()
Returns the defined temporary. |
QOrigin[] |
getOrigins()
returns the parameters of this instruction |
QQuadruple |
getStore()
Returns this node. |
int |
getType()
The type of this instruction. |
QTemporary[] |
getUses()
Returns the used temporaries. |
boolean |
isStore()
isStore |
void |
setOrigin(QOrigin origin,
int i)
Sets the parameters of this instruction. |
java.lang.String |
toString()
Human readable form. |
void |
useStack()
Uses the stack instead of a local var. |
Methods inherited from class at.dms.backend.QNode |
getInstruction, getJump, getLivein, getLiveout, getSwitch, hasSideEffect, isJump, isLive, isSwitch, setLivein, setLiveout |
Methods inherited from class java.lang.Object |
|
Methods inherited from interface at.dms.backend.QOrigin |
getInstruction |
Constructor Detail |
public QQuadruple(QDestination destination, QOrigin origin)
Method Detail |
public boolean isStore()
isStore
in class QNode
public QQuadruple getStore()
getStore
in class QNode
public java.lang.String toString()
toString
in class java.lang.Object
public int getType()
getType
in interface QOrigin
public QOrigin duplicate()
duplicate
in interface QOrigin
public void useStack()
public QOrigin[] getOrigins()
getOrigins
in interface QOrigin
getOrigins
in class QNode
public void setOrigin(QOrigin origin, int i)
setOrigin
in interface QOrigin
setOrigin
in class QNode
public QTemporary getDef()
getDef
in class QNode
public QTemporary[] getUses()
getUses
in interface QOrigin
getUses
in class QNode
public void generate(CodeSequence seq)
generate
in interface QOrigin
generate
in class QNode
seq
- The code sequence of instruction.public static QTemporary[] buildQuadruples(MethodEnv env, BasicBlock block, InstructionHandle[] instructions, QTemporary[] entryStack, java.util.List list)
instructions
- The list of instructions.entryStack
- The stack in entry.list
- A place holder for quadruples.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |