[BOLT][NFC] Print block instructions in dumpGraph as part of node label
authorAmir Ayupov <aaupov@fb.com>
Thu, 2 Jun 2022 06:40:55 +0000 (23:40 -0700)
committerAmir Ayupov <aaupov@fb.com>
Thu, 2 Jun 2022 06:41:41 +0000 (23:41 -0700)
commitcc23c64ff1af8ed4cc4ca60dc62208df3963285d
tree472beebd2d63f149ff30695cf6927e0e7a823585
parent51c20e5804a2371aeade317038db85affa8d9a38
[BOLT][NFC] Print block instructions in dumpGraph as part of node label

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.

{F23169510}

Reviewed By: rafauler

Differential Revision: https://reviews.llvm.org/D126237
bolt/lib/Core/BinaryFunction.cpp