HomePhabricator

[utils] Implement the llvm-locstats tool

Authored by djtodoro on Sep 10 2019, 6:47 AM.

Description

[utils] Implement the llvm-locstats tool

The tool reports verbose output for the DWARF debug location coverage.
The llvm-locstats for each variable or formal parameter DIE computes what
percentage from the code section bytes, where it is in scope, it has
location description. The line 0 shows the number (and the percentage) of
DIEs with no location information, but the line 100 shows the number (and
the percentage) of DIEs where there is location information in all code
section bytes (where the variable or parameter is in the scope). The line
50..59 shows the number (and the percentage) of DIEs where the location
information is in between 50 and 59 percentage of its scope covered.

The tool will be very useful for tracking improvements regarding the
"debugging optimized code" support with LLVM ecosystem.

Differential Revision: https://reviews.llvm.org/D66526

llvm-svn: 371520

Details

Committed
djtodoroSep 10 2019, 6:47 AM
Differential Revision
D66526: [utils] Add the llvm-locstats tool
Parents
rG7dfd0fb7f1cd: [NFC][InstCombine] PR43251 - valid for other predicates too
Branches
Unknown
Tags
Unknown