coins.backend.lir
Class LirLabelRef

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

public class LirLabelRef
extends LirNode

Represent LABEL node


Nested Class Summary
 
Nested classes inherited from class coins.backend.lir.LirNode
LirNode.Scanner
 
Field Summary
 Label label
          Label this node holds
 int variant
          Variant id
 
Fields inherited from class coins.backend.lir.LirNode
id, opCode, opt, type
 
Constructor Summary
LirLabelRef(int id, int op, int type, Label lab, ImList opt)
           
LirLabelRef(int id, int op, int type, Label lab, int variant, 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.
 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
 
Methods inherited from class coins.backend.lir.LirNode
getTargets, isBranch, isPhysicalRegister, isRegisterOperand, kid, makeShallowCopy, nKids, nSrcs, pickUpDefs, pickUpUses, replaceLabel, setKid, setSrc, src, toStringExp
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

label

public final Label label
Label this node holds


variant

public final int variant
Variant id

Constructor Detail

LirLabelRef

public LirLabelRef(int id,
                   int op,
                   int type,
                   Label lab,
                   ImList opt)

LirLabelRef

public LirLabelRef(int id,
                   int op,
                   int type,
                   Label lab,
                   int variant,
                   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

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