[Perf-training] Adding support for tests to skip the clang driver
authorChris Bieneman <beanz@apple.com>
Mon, 21 Mar 2016 22:37:14 +0000 (22:37 +0000)
committerChris Bieneman <beanz@apple.com>
Mon, 21 Mar 2016 22:37:14 +0000 (22:37 +0000)
commit12fd02db6b3e094562d68eeae20c007c0baa3650
tree78ff49bc7dbffe09b1e8a1d7303d0c849f41c0b8
parente9b02d68f48030a6306c0bf6b37c17ee2f375ab1
[Perf-training] Adding support for tests to skip the clang driver

This patch adds a new set of substitutions to the lit run lines for order files and PGO generation which run the clang driver to get the cc1 command, then execute the cc1 command directly. This allows the scripts to bypass profiling the clang driver over and over again.

The approach in this patch was discussed via IRC with Sean Silvas.

Special thanks to Daniel Dunbar whose out-of-tree code I liberally plagiarized.

llvm-svn: 263997
clang/utils/perf-training/cxx/hello_world.cpp
clang/utils/perf-training/lit.cfg
clang/utils/perf-training/lit.site.cfg.in
clang/utils/perf-training/order-files.lit.cfg
clang/utils/perf-training/perf-helper.py