OSDN Git Service

[llvm-mca] Move the logic that prints register file statistics to its own view. NFCI
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Tue, 3 Apr 2018 16:46:23 +0000 (16:46 +0000)
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>
Tue, 3 Apr 2018 16:46:23 +0000 (16:46 +0000)
commit6ea791d917a9b9b9895ba96cfe7c031af9160041
treebd8539a31ca130886c85991ecfc11ba2ad34f1ac
parentb09f726df5f5c7de6b05cd3e65bdccee5c78bf3f
[llvm-mca] Move the logic that prints register file statistics to its own view. NFCI

Before this patch, the "BackendStatistics" view was responsible for printing the
register file usage (as well as many other statistics).

Now users can enable register file usage statistics using the command line flag
`-register-file-stats`. By default, the tool doesn't print register file
statistics.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@329083 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
docs/CommandGuide/llvm-mca.rst
test/tools/llvm-mca/X86/BtVer2/register-files-1.s
test/tools/llvm-mca/X86/BtVer2/register-files-2.s
test/tools/llvm-mca/X86/BtVer2/register-files-3.s
test/tools/llvm-mca/X86/BtVer2/register-files-4.s
test/tools/llvm-mca/X86/BtVer2/register-files-5.s
tools/llvm-mca/BackendStatistics.cpp
tools/llvm-mca/BackendStatistics.h
tools/llvm-mca/CMakeLists.txt
tools/llvm-mca/RegisterFileStatistics.cpp [new file with mode: 0644]
tools/llvm-mca/RegisterFileStatistics.h [new file with mode: 0644]
tools/llvm-mca/llvm-mca.cpp