|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.backend.lir.LirNode
New LIR node's basic structure
| Nested Class Summary | |
static class |
LirNode.Scanner
Scanner for LIR expression tree. |
| Field Summary | |
int |
id
Key to bind related information |
int |
opCode
Instruction Code |
ImList |
opt
Optional arguments list (op opr1 opr2 &hogehoge ...) |
int |
type
Type of this node's result |
| Constructor Summary | |
(package private) |
LirNode(int id,
int opCode,
int type,
ImList opt)
Create LIR node |
| Method Summary | |
abstract void |
accept(LirVisitor v)
Accept visitor v |
boolean |
equals(java.lang.Object x)
Return true if this object equals to x |
Label[] |
getTargets()
Return jump target labels. |
int |
hashCode()
Return hash value of LirNode. |
boolean |
isBranch()
Return true if node is a branch instruction. |
boolean |
isPhysicalRegister()
Return true if node is a physical register. |
boolean |
isRegisterOperand()
Is register operand? |
LirNode |
kid(int n)
Return nth operand; Subclass responsibility |
abstract LirNode |
makeCopy(LirFactory fac)
Return a deep copy of this node |
LirNode |
makeShallowCopy(LirFactory fac)
Return a shallow copy of this node. |
int |
nKids()
Return number of operands |
int |
nSrcs()
Deprecated. use nKids instead. |
void |
pickUpDefs(PickUpVariable receiver)
Pick up definitions of register variables in this L-expression. |
void |
pickUpUses(PickUpVariable receiver)
Pick up uses of register variables in this L-expression. |
void |
replaceLabel(Label x,
Label y,
LirFactory fac)
Replace target label y for x. |
abstract LirNode |
replaceOptions(LirFactory fac,
ImList newOpt)
Return a copy of this node without options. |
void |
setKid(int n,
LirNode kid)
Set nth operand; Subclass responsibility |
void |
setSrc(int n,
LirNode src)
Deprecated. use setKid instead. |
LirNode |
src(int n)
Deprecated. use kid instead. |
java.lang.Object |
toSexp()
Convert to external LIR format. |
java.lang.String |
toString()
Visualize |
java.lang.String |
toStringExp()
Deprecated. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public final int id
public final int opCode
public final int type
public final ImList opt
| Constructor Detail |
LirNode(int id,
int opCode,
int type,
ImList opt)
| Method Detail |
public abstract LirNode makeCopy(LirFactory fac)
public LirNode makeShallowCopy(LirFactory fac)
public abstract LirNode replaceOptions(LirFactory fac,
ImList newOpt)
public int nSrcs()
public int nKids()
public LirNode src(int n)
public LirNode kid(int n)
public void setSrc(int n,
LirNode src)
public void setKid(int n,
LirNode kid)
public Label[] getTargets()
public void replaceLabel(Label x,
Label y,
LirFactory fac)
public boolean isBranch()
public boolean isPhysicalRegister()
public boolean isRegisterOperand()
public final void pickUpUses(PickUpVariable receiver)
receiver.
public final void pickUpDefs(PickUpVariable receiver)
receiver.
public java.lang.Object toSexp()
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object x)
public abstract void accept(LirVisitor v)
public java.lang.String toStringExp()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||