Package com.tonic.analysis.ssa
Class SSABridge
- java.lang.Object
-
- com.tonic.analysis.ssa.SSABridge
-
public final class SSABridge extends Object
BridgesCodeWriter(the bytecode layer) and the SSA IR pipeline.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidfromSSA(CodeWriter writer, IRMethod irMethod)Lowers an SSA-form IRMethod back to bytecode and refreshes the writer to reflect it.static voidoptimizeSSA(CodeWriter writer)Lifts to SSA, runs the standard optimizations, and lowers back to bytecode.static IRMethodtoSSA(CodeWriter writer)Lifts the given writer's method bytecode to SSA-form IR.
-
-
-
Method Detail
-
toSSA
public static IRMethod toSSA(CodeWriter writer)
Lifts the given writer's method bytecode to SSA-form IR.- Parameters:
writer- the writer holding the method to lift- Returns:
- the IRMethod in SSA form
-
fromSSA
public static void fromSSA(CodeWriter writer, IRMethod irMethod)
Lowers an SSA-form IRMethod back to bytecode and refreshes the writer to reflect it.- Parameters:
writer- the writer receiving the lowered bytecodeirMethod- the IRMethod to lower
-
optimizeSSA
public static void optimizeSSA(CodeWriter writer)
Lifts to SSA, runs the standard optimizations, and lowers back to bytecode.- Parameters:
writer- the writer whose method is optimized in place
-
-