diff options
author | Djordje Todorovic <djordje.todorovic@rt-rk.com> | 2019-09-30 07:35:17 +0000 |
---|---|---|
committer | Djordje Todorovic <djordje.todorovic@rt-rk.com> | 2019-09-30 07:35:17 +0000 |
commit | 0f30960619f9c6b3566d3d4ed9a9bdd6ee0d3725 (patch) | |
tree | 5d8746fffc12f418ae2b4c372f351dc96409888f /llvm/test/lit.cfg.py | |
parent | [SystemZ] Add SystemZPostRewrite in addPostRegAlloc() instead at -O0. (diff) | |
download | llvm-project-0f30960619f9c6b3566d3d4ed9a9bdd6ee0d3725.tar.gz llvm-project-0f30960619f9c6b3566d3d4ed9a9bdd6ee0d3725.tar.bz2 llvm-project-0f30960619f9c6b3566d3d4ed9a9bdd6ee0d3725.zip |
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
llvm-svn: 373183
Diffstat (limited to 'llvm/test/lit.cfg.py')
-rw-r--r-- | llvm/test/lit.cfg.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/lit.cfg.py b/llvm/test/lit.cfg.py index 6771b9e7fee8..4a2181397ced 100644 --- a/llvm/test/lit.cfg.py +++ b/llvm/test/lit.cfg.py @@ -124,6 +124,11 @@ if config.have_ocamlopt: opt_viewer_cmd = '%s %s/tools/opt-viewer/opt-viewer.py' % (sys.executable, config.llvm_src_root) +llvm_locstats_tool = os.path.join(config.llvm_tools_dir, 'llvm-locstats') +config.substitutions.append( + ('%llvm-locstats', "'%s' %s" % (config.python_executable, llvm_locstats_tool))) +config.llvm_locstats_used = os.path.exists(llvm_locstats_tool) + tools = [ ToolSubst('%lli', FindTool('lli'), post='.', extra_args=lli_args), ToolSubst('%llc_dwarf', FindTool('llc'), extra_args=llc_args), |