[opt-viewer] Move under tools, install it
authorAdam Nemet <anemet@apple.com>
Thu, 6 Jul 2017 17:51:15 +0000 (17:51 +0000)
committerAdam Nemet <anemet@apple.com>
Thu, 6 Jul 2017 17:51:15 +0000 (17:51 +0000)
commit8d10129e59c2627e3a03abd30c12963631a3c362
treeb97316111bd2e5414075cf6b9cefcded1ba68a28
parentc7f895351ecd6d32ca5c2fd105800e5290ee5b3d
[opt-viewer] Move under tools, install it

We weren't installing opt-viewer and co before, this fixes the omission.  I am
also moving the tools from utils/ to tools/.  I believe that this is more
appropriate since these tools have matured greatly in the past year through
contributions by multiple people (thanks!) so they are ready to become
external tools.

The tools are installed under <install>/share/opt-viewer/.

I am *not* adding the llvm- prefix.  If people feel strongly about adding
that, this is probably a good time since the new location will require some
mental adjustment anyway.

Fixes PR33521

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

llvm-svn: 307285
llvm/tools/opt-viewer/CMakeLists.txt [new file with mode: 0644]
llvm/tools/opt-viewer/opt-diff.py [moved from llvm/utils/opt-viewer/opt-diff.py with 100% similarity]
llvm/tools/opt-viewer/opt-stats.py [moved from llvm/utils/opt-viewer/opt-stats.py with 100% similarity]
llvm/tools/opt-viewer/opt-viewer.py [moved from llvm/utils/opt-viewer/opt-viewer.py with 100% similarity]
llvm/tools/opt-viewer/optpmap.py [moved from llvm/utils/opt-viewer/optpmap.py with 100% similarity]
llvm/tools/opt-viewer/optrecord.py [moved from llvm/utils/opt-viewer/optrecord.py with 100% similarity]
llvm/tools/opt-viewer/style.css [moved from llvm/utils/opt-viewer/style.css with 100% similarity]