[CMake] Workflow improvements to PGO generation
authorChris Bieneman <beanz@apple.com>
Tue, 16 Aug 2016 22:16:29 +0000 (22:16 +0000)
committerChris Bieneman <beanz@apple.com>
Tue, 16 Aug 2016 22:16:29 +0000 (22:16 +0000)
commita1aa4069d9b718197488ca3a075eafa827bc6164
tree1d941494fb37b9333926c6641f72f650fc815afa
parent992429843b768381484abfc0bf7b2c3dc1984ae5
[CMake] Workflow improvements to PGO generation

This patch adds a few new convenience options used by the PGO CMake cache to setup options on bootstrap stages. The new options are:

PGO_INSTRUMENT_LTO - Builds the instrumented and final builds with LTO
PGO_BUILD_CONFIGURATION - Accepts a CMake cache script that can be used for complex configuration of the stage2-instrumented and stage2 builds.

The patch also includes a fix for bootstrap dependencies so that the instrumented LTO tools don't get used when building the final stage, and it adds distribution targets to the passthrough.

llvm-svn: 278862
clang/CMakeLists.txt
clang/cmake/caches/PGO-stage2-instrumented.cmake
clang/cmake/caches/PGO.cmake