coins.backend.lir
Class LirSymRef

java.lang.Object
  extended bycoins.backend.lir.LirNode
      extended bycoins.backend.lir.LirSymRef

public class LirSymRef
extends LirNode

STATIC/FRAME/REG LirNode


Nested Class Summary
 
Nested classes inherited from class coins.backend.lir.LirNode
LirNode.Scanner
 
Field Summary
 Symbol symbol
          Symbol this node holds
 
Fields inherited from class coins.backend.lir.LirNode
id, opCode, opt, type
 
Constructor Summary
LirSymRef(int id, int op, int t, Symbol sym, ImList opt)
           
 
Method Summary
 void accept(LirVisitor v)
          Accept visitor v
 boolean equals(java.lang.Object x)
          Return true if this object equals to x
 int hashCode()
          Return hash value of LirNode.
 boolean isPhysicalRegister()
          Return true if node is a physical register.
 LirNode makeCopy(LirFactory fac)
          Return a deep copy of this node
 LirNode replaceOptions(LirFactory fac, ImList newOpt)
          Return a copy of this node without options.
 java.lang.Object toSexp()
          Convert to external LIR format.
 java.lang.String toString()
          Visualize
 java.lang.String toStringExp()
          Convert integer or address constant to string.
 
Methods inherited from class coins.backend.lir.LirNode
getTargets, isBranch, isRegisterOperand, kid, makeShallowCopy, nKids, nSrcs, pickUpDefs, pickUpUses, replaceLabel, setKid, setSrc, src
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

symbol

public final Symbol symbol
Symbol this node holds

Constructor Detail

LirSymRef

public LirSymRef(int id,
                 int op,
                 int t,
                 Symbol sym,
                 ImList opt)
Method Detail

makeCopy

public LirNode makeCopy(LirFactory fac)
Description copied from class: LirNode
Return a deep copy of this node

Specified by:
makeCopy in class LirNode

replaceOptions

public LirNode replaceOptions(LirFactory fac,
                              ImList newOpt)
Description copied from class: LirNode
Return a copy of this node without options.

Specified by:
replaceOptions in class LirNode

isPhysicalRegister

public boolean isPhysicalRegister()
Return true if node is a physical register.

Overrides:
isPhysicalRegister in class LirNode

toSexp

public java.lang.Object toSexp()
Convert to external LIR format.

Overrides:
toSexp in class LirNode

toString

public java.lang.String toString()
Description copied from class: LirNode
Visualize

Overrides:
toString in class LirNode

equals

public boolean equals(java.lang.Object x)
Description copied from class: LirNode
Return true if this object equals to x

Overrides:
equals in class LirNode

hashCode

public int hashCode()
Description copied from class: LirNode
Return hash value of LirNode.

Overrides:
hashCode in class LirNode

accept

public void accept(LirVisitor v)
Description copied from class: LirNode
Accept visitor v

Specified by:
accept in class LirNode

toStringExp

public java.lang.String toStringExp()
Deprecated.  

Description copied from class: LirNode
Convert integer or address constant to string.

Overrides:
toStringExp in class LirNode