Reland "[utils] Implement the llvm-locstats tool"
authorDjordje Todorovic <djordje.todorovic@rt-rk.com>
Wed, 2 Oct 2019 07:00:01 +0000 (07:00 +0000)
committerDjordje Todorovic <djordje.todorovic@rt-rk.com>
Wed, 2 Oct 2019 07:00:01 +0000 (07:00 +0000)
commit2ef18fb41aeb0e71744fd3e97cf25da49bdf6b64
tree1b2ec40e4157956abe9108abd4d16f98b0a4ad0b
parent60e9df33625894a0827445e2b354fe870eb44b64
Reland "[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.

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

The cause of the test failure was resolved.

llvm-svn: 373427
llvm/CMakeLists.txt
llvm/docs/CommandGuide/index.rst
llvm/docs/CommandGuide/llvm-locstats.rst [new file with mode: 0644]
llvm/test/lit.cfg.py
llvm/test/tools/llvm-locstats/lit.local.cfg [new file with mode: 0644]
llvm/test/tools/llvm-locstats/locstats.ll [new file with mode: 0644]
llvm/utils/llvm-locstats/CMakeLists.txt [new file with mode: 0644]
llvm/utils/llvm-locstats/llvm-locstats.py [new file with mode: 0755]