|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.lir2c.Convert
Convert: converts LirNode to C code. a node of LirNode is converted to a line of C code (excepts "switch" sentence).
| Constructor Summary | |
Convert()
Constructor(with no arg) |
|
| Method Summary | |
(package private) java.lang.String |
biOpToStr(LirNode node,
LirNode child1,
LirNode child2,
java.lang.String Ope,
boolean inMEM,
LirNode parent)
biOpToStr: get the expression of C code for bi Operator node(ADD,etc). |
(package private) java.lang.String |
dump(LirNode node,
boolean inMEM,
LirNode parent)
dump: main method of the convertion. |
java.lang.String |
invoke(LirNode node)
invoke: the method that you should call it first. |
(package private) java.lang.String |
lirToTypeStr(LirNode node)
lirToTypeStr: get type string of the variable, expression, etc by calling coins.backend.Type@toString() method. |
(package private) java.lang.String |
lirToTypeStr2(LirNode node)
lirToTypeStr2: get type string of the variable, expression, etc by calling coins.backend.Type@toString() method. |
(package private) java.lang.String |
lirToTypeStr3(LirNode node)
lirToTypeStr3: get type string and parenthes of the variable, expression, etc by calling coins.backend.Type@toString() method. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Convert()
| Method Detail |
public java.lang.String invoke(LirNode node)
node - the root node that will convert to C code.
java.lang.String dump(LirNode node,
boolean inMEM,
LirNode parent)
node - the node that will convert to a part of C code.inMEM - the boolean value which node are in MEM expression.parent - the node that is a parent of the node.
java.lang.String lirToTypeStr(LirNode node)
node - the node to get the type string.
java.lang.String lirToTypeStr2(LirNode node)
node - the node to get the type string.
java.lang.String lirToTypeStr3(LirNode node)
node - the node to get the type string.
java.lang.String biOpToStr(LirNode node,
LirNode child1,
LirNode child2,
java.lang.String Ope,
boolean inMEM,
LirNode parent)
node - the node to convert.child1 - the node of first child node.child2 - the node of second child node.inMEM - the node that is in the MEM expression is true, or false.parent - the node that is a parent of the node.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||