coins.backend.lir
Class LirIconst

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

public class LirIconst
extends LirNode

Represent integer constant


Nested Class Summary
 
Nested classes inherited from class coins.backend.lir.LirNode
LirNode.Scanner
 
Field Summary
 long value
          Value of this node
 
Fields inherited from class coins.backend.lir.LirNode
id, opCode, opt, type
 
Constructor Summary
LirIconst(int id, int t, long v, 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.
 long signedValue()
          Return signed value of this node.
 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.
 long unsignedValue()
          Return unsigned value of this node.
 
Methods inherited from class coins.backend.lir.LirNode
getTargets, isBranch, isPhysicalRegister, 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

value

public final long value
Value of this node

Constructor Detail

LirIconst

public LirIconst(int id,
                 int t,
                 long v,
                 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

signedValue

public long signedValue()
Return signed value of this node.


unsignedValue

public long unsignedValue()
Return unsigned value of this node.


hashCode

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

Overrides:
hashCode 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

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