Class SSABridge


  • public final class SSABridge
    extends Object
    Bridges CodeWriter (the bytecode layer) and the SSA IR pipeline.
    • 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 bytecode
        irMethod - 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