diff options
| author | Chris Bieneman <beanz@apple.com> | 2015-12-19 00:56:10 +0000 |
|---|---|---|
| committer | Chris Bieneman <beanz@apple.com> | 2015-12-19 00:56:10 +0000 |
| commit | a948007062aefdc5f1c668f854ce12e7d12f493e (patch) | |
| tree | e4729ec1694e624eb31076a881565aa0d6f28344 /llvm/lib | |
| parent | b6e220a9b0d209f1e9c6397fe5f92c8a65c2754d (diff) | |
| download | bcm5719-llvm-a948007062aefdc5f1c668f854ce12e7d12f493e.tar.gz bcm5719-llvm-a948007062aefdc5f1c668f854ce12e7d12f493e.zip | |
[CMake] Support a simple case for bootstrap builds to generate PGO data
Summary:
This patch adds support for the clang multi-stage bootstrapping to support PGO profdata generation, and can build a 2 or 3 stage compiler.
With this patch applied you can configure your build directory with the following invocation of CMake:
cmake -G <generator> -C <path_to_clang>/cmake/caches/PGO.cmake <source dir>
After configuration the following additional targets will be generated:
stage2-instrumented:
Builds a stage1 x86 compiler, runtime, and required tools (llvm-config, llvm-profdata) then uses that compiler to build an instrumented stage2 compiler.
stage2-instrumented-generate-profdata:
Depends on "stage2-instrumented" and will use the instrumented compiler to generate profdata based on the training files in <clang>/utils/perf-training
stage2:
Depends on "stage2-instrumented-generate-profdata" and will use the stage1 compiler with the stage2 profdata to build a PGO-optimized compiler.
stage2-check-llvm:
Depends on stage2 and runs check-llvm using the stage3 compiler.
stage2-check-clang:
Depends on stage2 and runs check-clang using the stage3 compiler.
stage2-check-all:
Depends on stage2 and runs check-all using the stage3 compiler.
stage2-test-suite:
Depends on stage2 and runs the test-suite using the stage3 compiler (requires in-tree test-suite).
Reviewers: bogner, silvas, chandlerc
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D15584
llvm-svn: 256069
Diffstat (limited to 'llvm/lib')
0 files changed, 0 insertions, 0 deletions

