coins.backend.lir
Class LirUnaOp

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

public class LirUnaOp
extends LirNode

Represents unary operators


Nested Class Summary
 
Nested classes inherited from class coins.backend.lir.LirNode
LirNode.Scanner
 
Field Summary
(package private)  LirNode kid
           
 
Fields inherited from class coins.backend.lir.LirNode
id, opCode, opt, type
 
Constructor Summary
LirUnaOp(int id, int op, int t, LirNode operand, 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
 LirNode kid(int n)
          Return nth operand; Subclass responsibility
 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
 LirNode replaceOptions(LirFactory fac, ImList newOpt)
          Return a copy of this node without options.
 void setKid(int n, LirNode x)
          Set nth operand; Subclass responsibility
 
Methods inherited from class coins.backend.lir.LirNode
getTargets, hashCode, isBranch, isPhysicalRegister, isRegisterOperand, nSrcs, pickUpDefs, pickUpUses, replaceLabel, setSrc, src, toSexp, toString, toStringExp
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

kid

LirNode kid
Constructor Detail

LirUnaOp

public LirUnaOp(int id,
                int op,
                int t,
                LirNode operand,
                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

makeShallowCopy

public LirNode makeShallowCopy(LirFactory fac)
Description copied from class: LirNode
Return a shallow copy of this node. Default action is same as makeCopy.

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

nKids

public int nKids()
Description copied from class: LirNode
Return number of operands

Overrides:
nKids in class LirNode

kid

public LirNode kid(int n)
Description copied from class: LirNode
Return nth operand; Subclass responsibility

Overrides:
kid in class LirNode

setKid

public void setKid(int n,
                   LirNode x)
Description copied from class: LirNode
Set nth operand; Subclass responsibility

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