Class IRPrinter


  • public final class IRPrinter
    extends Object
    Utility class for formatting SSA IR instructions and blocks as human-readable strings.
    • Method Detail

      • format

        public static String format​(IRInstruction instr)
        Formats an IR instruction as a human-readable string.
        Parameters:
        instr - the instruction to format
        Returns:
        the formatted string representation
      • formatBlockHeader

        public static String formatBlockHeader​(IRBlock block)
        Formats an IR block header with predecessors and successors.
        Parameters:
        block - the block to format
        Returns:
        the formatted string representation
      • format

        public static String format​(IRMethod method)
        Formats an entire IR method as a human-readable string.
        Parameters:
        method - the IR method to format
        Returns:
        the formatted string representation