Package com.android.dx.ssa
Class SsaConverter
java.lang.Object
com.android.dx.ssa.SsaConverter
Converts ROP methods to SSA Methods
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SsaMethod
convertToSsaMethod
(RopMethod rmeth, int paramWidth, boolean isStatic) Returns an SSA representation, edge-split and with phi functions placed.static SsaMethod
testEdgeSplit
(RopMethod rmeth, int paramWidth, boolean isStatic) Returns an SSA represention with only the edge-splitter run.static SsaMethod
testPhiPlacement
(RopMethod rmeth, int paramWidth, boolean isStatic) Returns an SSA represention with only the steps through the phi placement run.static void
updateSsaMethod
(SsaMethod ssaMeth, int threshold) Updates an SSA representation, placing phi functions and renaming all registers above a certain threshold number.
-
Field Details
-
DEBUG
public static final boolean DEBUG- See Also:
-
-
Constructor Details
-
SsaConverter
public SsaConverter()
-
-
Method Details
-
convertToSsaMethod
Returns an SSA representation, edge-split and with phi functions placed.- Parameters:
rmeth
- inputparamWidth
- the total width, in register-units, of the method's parametersisStatic
-true
if this method has nothis
pointer argument- Returns:
- output in SSA form
-
updateSsaMethod
Updates an SSA representation, placing phi functions and renaming all registers above a certain threshold number.- Parameters:
ssaMeth
- inputthreshold
- registers below this number are unchanged
-
testEdgeSplit
Returns an SSA represention with only the edge-splitter run.- Parameters:
rmeth
- method to processparamWidth
- width of all arguments in the methodisStatic
-true
if this method has nothis
pointer argument- Returns:
- an SSA represention with only the edge-splitter run
-
testPhiPlacement
Returns an SSA represention with only the steps through the phi placement run.- Parameters:
rmeth
- method to processparamWidth
- width of all arguments in the methodisStatic
-true
if this method has nothis
pointer argument- Returns:
- an SSA represention with only the edge-splitter run
-