[all-commits] [llvm/llvm-project] ad0fb4: [CMake][PGO] Add option for using an external proj...
Tom Stellard via All-commits
all-commits at lists.llvm.org
Tue Feb 6 11:51:07 PST 2024
Branch: refs/heads/release/18.x
Home: https://github.com/llvm/llvm-project
Commit: ad0fb418badbb695b5db9335985e67c67e69c554
https://github.com/llvm/llvm-project/commit/ad0fb418badbb695b5db9335985e67c67e69c554
Author: Tom Stellard <tstellar at redhat.com>
Date: 2024-02-06 (Tue, 06 Feb 2024)
Changed paths:
M clang/utils/perf-training/CMakeLists.txt
M clang/utils/perf-training/perf-helper.py
M llvm/docs/AdvancedBuilds.rst
Log Message:
-----------
[CMake][PGO] Add option for using an external project to generate profile data (#78879)
The new CLANG_PGO_TRAINING_DATA_SOURCE_DIR allows users to specify a
CMake project to use for generating the profile data. For example, to
use the llvm-test-suite to generate profile data you would do:
$ cmake -G Ninja -B build -S llvm -C <path to
source>/clang/cmake/caches/PGO.cmake \
-DBOOTSTRAP_CLANG_PGO_TRAINING_DATA_SOURCE_DIR=<path to llvm-test-suite>
\
-DBOOTSTRAP_CLANG_PGO_TRAINING_DEPS=runtimes
Note that the CLANG_PERF_TRAINING_DEPS has been renamed to
CLANG_PGO_TRAINING_DEPS.
---------
Co-authored-by: Petr Hosek <phosek at google.com>
(cherry picked from commit dd0356d741aefa25ece973d6cc4b55dcb73b84b4)
More information about the All-commits
mailing list