-
Notifications
You must be signed in to change notification settings - Fork 13.6k
[SHT_LLVM_BB_ADDR_MAP] Adds pretty printing of BFI and BPI for PGO Analysis Map in tools. #82292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
e81270d
61891cf
35dbac7
876fc88
dc89247
6aa1e45
897fd37
ab933d5
e308a7a
d1ae461
b6cd9c4
6a01ee3
88d37aa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -271,7 +271,12 @@ OPTIONS | |||||||||
|
||||||||||
When printing a PC-relative global symbol reference, print it as an offset from the leading symbol. | ||||||||||
|
||||||||||
When a bb-address-map section is present (i.e., the object file is built with ``-fbasic-block-sections=labels``), labels are retrieved from that section instead. | ||||||||||
When a bb-address-map section is present (i.e., the object file is built with | ||||||||||
``-fbasic-block-sections=labels``), labels are retrieved from that section | ||||||||||
instead. If a pgo-analysis-map present along side the bb-address-map, any | ||||||||||
available analyses are printed after the relevant block label. By default, | ||||||||||
any analysis with a special representation (i.e. BlockFrequency, | ||||||||||
BranchProbability, etc) are printed as raw hex values. | ||||||||||
|
||||||||||
Only works with PowerPC objects or X86 linked images. | ||||||||||
|
||||||||||
|
@@ -291,6 +296,15 @@ OPTIONS | |||||||||
cmp eax, dword ptr <g> | ||||||||||
jge <L0> | ||||||||||
|
||||||||||
.. option:: --pretty-pgo-analysis-map | ||||||||||
|
||||||||||
When using ``--symbolize-operands`` with bb-address-map and pgo-analysis-map, | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Also applies below - this will ensure the reference becomes a hyperlink to the actual option in the documentation. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the suggestion! |
||||||||||
print analyses using same format as there analysis passes would. An example | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
of pretty format, would be printing block frequencies relative to the entry | ||||||||||
block, same as BFI. | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
||||||||||
Only works when ``--symbolize-operands`` is enabled. | ||||||||||
|
||||||||||
.. option:: --triple=<string> | ||||||||||
|
||||||||||
Target triple to disassemble for, see ``--version`` for available targets. | ||||||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -159,6 +159,17 @@ The following options are implemented only for the ELF file format. | |||||
Display the contents of the basic block address map section(s), which contain the | ||||||
address of each function, along with the relative offset of each basic block. | ||||||
|
||||||
When pgo analysis maps are present, all analyses are printed as there raw | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
value. | ||||||
|
||||||
.. option:: --pretty-pgo-analysis-map | ||||||
|
||||||
When pgo analysis maps are present in the basic block address map section(s), | ||||||
analyses with special formats (i.e. BlockFrequency, BranchProbability, etc) | ||||||
are printed using the same format as there respective analysis pass. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
Requires ``--bb-addr-map`` to have an effect. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
.. option:: --demangle, -C | ||||||
|
||||||
Display demangled symbol names in the output. | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two nits.