This is an archive of the discontinued LLVM Phabricator instance.

Tooltips for control flow dot graphs
ClosedPublic

Authored by mark-sed on Jun 29 2023, 8:36 AM.

Details

Summary

This is 2. out of 3 changes to the CFG pass that aims to make graphs more readable and contain more information.

This change adds tooltips over graph edges so that when zoomed in one can easily determine from to where is the given edge going and also see the probability for this edge.

If all 3 changes will be accepted the final graphs should look as in the attached image:

Diff Detail

Event Timeline

mark-sed created this revision.Jun 29 2023, 8:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 29 2023, 8:36 AM
mark-sed requested review of this revision.Jun 29 2023, 8:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 29 2023, 8:36 AM
mark-sed edited the summary of this revision. (Show Details)Jun 29 2023, 8:43 AM
knaumov accepted this revision.Jul 12 2023, 3:25 PM

LGTM

This revision is now accepted and ready to land.Jul 12 2023, 3:25 PM

I don't have commit rights, could I get someone to commit this for me please?

This revision was landed with ongoing or failed builds.Aug 16 2023, 9:06 PM
Closed by commit rG7ffcea5488eb: Tooltips for CFG dot graphs (authored by mark-sed, committed by apilipenko). · Explain Why
This revision was automatically updated to reflect the committed changes.

Presumably this needs test coverage? Could you add some (& link to the review or commit in this review)?

@dblaikie Hi, sorry for the late response I want to get back to this and add the test, but got sidetracked by other stuff, I'll add it later. Thanks.