|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.ssa.TranslateToSsa
Translate to the static single assignment form ( SSA form ).
There are 3 major forms in SSA form :
1. minimal SSA
2. semi-pruned SSA
3. pruned SSA
The difference among these form is the number of PHI instructions.
This class can translate to these 3 forms.
This class also fold copy expressions during rename phase.
| Field Summary | |
static int |
MINIMAL
The minimal SSA form |
static int |
PRUNED
The pruned SSA form |
static int |
SEMI_PRUNED
The semi-pruned SSA form |
static int |
THR
The threshold of the debug print |
static int |
THR2
The threshold of the debug print |
| Constructor Summary | |
(package private) |
TranslateToSsa(SsaEnvironment e,
SsaSymTab stab,
int howToTranslate,
boolean withCopyFolding)
Constructor |
| Method Summary | |
boolean |
doIt(Data data,
ImList args)
Transform the DATA component. |
boolean |
doIt(Function function,
ImList args)
Translate to the SSA form. |
java.lang.String |
name()
Return the name of the transforming engine. |
java.lang.String |
subject()
Return brief description of the tranformation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int MINIMAL
public static final int SEMI_PRUNED
public static final int PRUNED
public static final int THR
public static final int THR2
| Constructor Detail |
TranslateToSsa(SsaEnvironment e,
SsaSymTab stab,
int howToTranslate,
boolean withCopyFolding)
e - The environment of the SSA formstab - The current symbol table on SSA formhowToTranslate - Specify the translate methodwithCopyFolding - Whether copy fold or not| Method Detail |
public boolean doIt(Data data,
ImList args)
LocalTransformer
doIt in interface LocalTransformerdata - DATA to be transformed.args - list of optional arguments.
public java.lang.String name()
Transformer
name in interface Transformerpublic java.lang.String subject()
Transformer
subject in interface Transformer
public boolean doIt(Function function,
ImList args)
doIt in interface LocalTransformerfunction - The current functionargs - The list of options
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||