Package com.tonic.analysis.ssa
Class IRPrinter
- java.lang.Object
-
- com.tonic.analysis.ssa.IRPrinter
-
public final class IRPrinter extends Object
Utility class for formatting SSA IR instructions and blocks as human-readable strings.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringformat(IRMethod method)Formats an entire IR method as a human-readable string.static Stringformat(IRInstruction instr)Formats an IR instruction as a human-readable string.static StringformatBlockHeader(IRBlock block)Formats an IR block header with predecessors and successors.
-
-
-
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
-
-