This is an archive of the discontinued LLVM Phabricator instance.

[BOLT][NFC] Print block instructions in dumpGraph as part of node label
ClosedPublic

Authored by Amir on May 23 2022, 1:13 PM.

Details

Summary

Reuse the option -dot-tooltip-code to put block instructions into the label.
This way, the instructions are displayed by default when used with dot viewer.

When the .dot file is used with dot2html, instructions are hidden by default,
and are shown by clicking on a node.

Diff Detail

Event Timeline

Amir created this revision.May 23 2022, 1:13 PM
Herald added a reviewer: maksfb. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: ayermolo. · View Herald Transcript
Amir published this revision for review.May 23 2022, 1:14 PM
Amir edited the summary of this revision. (Show Details)
Herald added a project: Restricted Project. · View Herald TranscriptMay 23 2022, 1:16 PM
Amir added inline comments.
bolt/lib/Core/BinaryFunction.cpp
3010

strict is a property that a graph can't have two edges between two nodes.
BOLT has a pass to remove such edges but we still want to display graphs before this pass properly.

This revision is now accepted and ready to land.May 24 2022, 3:01 PM
Amir edited the summary of this revision. (Show Details)Jun 1 2022, 11:00 PM
This revision was landed with ongoing or failed builds.Jun 1 2022, 11:41 PM
This revision was automatically updated to reflect the committed changes.