|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectharpoon.IR.Tree.Tree
harpoon.IR.Tree.Exp
harpoon.IR.Tree.TEMP
public class TEMP
TEMP
objects are expressions which stand for a
value in a virtual register.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class harpoon.IR.Tree.Tree |
---|
Tree.CloneCallback |
Field Summary | |
---|---|
Temp |
temp
The Temp which this TEMP refers to. |
int |
type
The type of this Temp expression. |
Fields inherited from class harpoon.IR.Tree.Tree |
---|
arrayFactory, child |
Fields inherited from interface harpoon.IR.Tree.Typed |
---|
DOUBLE, FLOAT, INT, LONG, POINTER |
Constructor Summary | |
---|---|
TEMP(TreeFactory tf,
HCodeElement source,
int type,
Temp temp)
Constructor. |
Method Summary | |
---|---|
void |
accept(TreeVisitor v)
Accept a visitor |
Exp |
build(TreeFactory tf,
ExpList kids)
|
int |
kind()
Return an integer enumeration of the kind of this Tree . |
Tree |
rename(TreeFactory tf,
TempMap tm,
Tree.CloneCallback cb)
Rename while cloning a subtree. |
String |
toString()
|
int |
type()
Result type. |
Methods inherited from class harpoon.IR.Tree.Exp |
---|
build, isDoubleWord, isFloatingPoint |
Methods inherited from class harpoon.IR.Tree.Tree |
---|
clone, clone, getChild, getFactory, getFirstChild, getID, getLineNumber, getParent, getSibling, getSourceFile, hashCode, kids, rename, replace, setChild, unlink |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final Temp temp
Temp
which this TEMP
refers to.
public final int type
Temp
expression.
Constructor Detail |
---|
public TEMP(TreeFactory tf, HCodeElement source, int type, Temp temp)
Method Detail |
---|
public int kind()
Tree
Tree
. The enumerated values are defined in
TreeKind
.
kind
in class Tree
public Exp build(TreeFactory tf, ExpList kids)
build
in class Exp
public int type()
Exp
type
in interface Typed
type
in class Exp
public void accept(TreeVisitor v)
accept
in class Tree
public Tree rename(TreeFactory tf, TempMap tm, Tree.CloneCallback cb)
Tree
TEMP
nodes
are renamed according to the supplied TempMap
.
Note that Temp
s not belonging to
this.getFactory().tempFactory()
are not affected.
The callback()
method of the supplied
CloneCallback
is invoked once on each subtree cloned,
starting from the leaves and working back to the root in a
post-order depth-first manner.
rename
in class Tree
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |