compiler-explorer / compiler-explorer/compiler-explorer

[REQUEST]: GCC graph dump vizualization

Open
#8,570 2 comments 2 reactions 0 assignees View on GitHub
request
Dominant language
TypeScript
Stars
19.1k
Forks
2.1k
Avg merge
3d 15h
Merged PRs (30d)
67

Description

### Is your feature request related to a problem? Please describe

I would like to be able to view the graph visualizations of GCC intermediate representations from pass dumps on CE.

### Describe the solution you'd like

I would like there to be a "view control flow graph" button when viewing a pass dump that opens a pane with the graphviz output of the `.dot` file generated by adding the `-fdump-tree--graph` option (though also for -fdump-rtl-... and similar)

Example graph converted to an SVG below.

![Image](https://github.com/user-attachments/assets/0b7e8be5-7949-4438-892d-468c0fa69cd6)

### Describe alternatives you've considered

N/A

### Additional context

Not applicable

Contributor guide

Open the contributing guide

Research direction

Start at the pass-dump viewer and trace how GCC tree and RTL dump outputs are exposed. Check how the generated .dot data could be represented alongside the SVG example. Done means a “view control flow graph” control opens a pane for graph output from tree, RTL, and similar pass dumps.

Written by the indexing model from the issue text.

Assessment

Domain
compilers, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.