Expand description
HTML visualizer for clojurust IR.
Generates a single self-contained HTML file (inline CSS + JS, no external deps) that shows a function’s IR alongside its source, color-coded by the region-allocation optimizer’s output:
- Each
RegionStart/RegionEndpair gets a deterministic color; every instruction inside the region — and every source line that produced one of itsRegionAllocinsts — is tinted with that color. - Allocations that didn’t get promoted to a region are flagged with their escape-analysis verdict and a “blamed” use, making it obvious why the optimizer left them on the GC heap.
Hover any IR instruction to highlight its source line; hover any source line to highlight related IR instructions.
Structs§
- Render
Options - Options for HTML rendering.
Functions§
- render_
html - Render
ir(and all its subfunctions) to a single self-contained HTML document. Whensourceis provided, the source pane is shown alongside the IR with hover-linked highlighting; whenNone, only the IR pane is shown.