L2ControlFlowGraphVisualizer

class L2ControlFlowGraphVisualizer(    fileName: String,     name: String,     charactersPerLine: Int,     controlFlowGraph: L2ControlFlowGraph,     visualizeLiveness: Boolean,     visualizeManifest: Boolean,     visualizeRegisterDescriptions: Boolean,     accumulator: Appendable)

An L2ControlFlowGraphVisualizer generates a dot source file that visualizes an L2ControlFlowGraph. It is intended to aid in debugging L2Chunks.

Author

Todd L Smith

Parameters

fileName

The name of the dot file.

name

The name of the L2Chunk, to be used as the name of the graph.

charactersPerLine

The number of characters to emit per line. Only applies to formatting of block comments.

controlFlowGraph

The L2ControlFlowGraph that should be visualized by a dot renderer.

visualizeLiveness

true if edges should be annotated with L2Register liveness, false otherwise.

visualizeManifest

true if edges should be annotated with their L2ValueManifest, false otherwise.

visualizeRegisterDescriptions

Whether to include descriptions with registers.

accumulator

The accumulator for the generated dot source text.

Constructors

Link copied to clipboard
fun L2ControlFlowGraphVisualizer(    fileName: String,     name: String,     charactersPerLine: Int,     controlFlowGraph: L2ControlFlowGraph,     visualizeLiveness: Boolean,     visualizeManifest: Boolean,     visualizeRegisterDescriptions: Boolean,     accumulator: Appendable)

Construct a new L2ControlFlowGraphVisualizer for the specified L2ControlFlowGraph.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun visualize()

Visualize the L2ControlFlowGraph by writing an appropriate dot source file to the accumulator.