This is an archive of the discontinued LLVM Phabricator instance.

[CMake] Support injecting extra dependencies for perf-training
ClosedPublic

Authored by phosek on Nov 29 2022, 7:06 PM.

Details

Summary

It may be necessary to build additional targets before running
perf-training, the typical use case would be builtins and runtimes.

This change allows users to specify those dependencies as:

set(CLANG_PERF_TRAINING_DEPS builtins runtimes CACHE STRING "")

Diff Detail

Event Timeline

phosek created this revision.Nov 29 2022, 7:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 29 2022, 7:06 PM
phosek requested review of this revision.Nov 29 2022, 7:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 29 2022, 7:06 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
smeenai accepted this revision.Nov 29 2022, 7:09 PM

Might be worth a mention in either https://llvm.org/docs/AdvancedBuilds.html#multi-stage-pgo, to make it a bit more discoverable.

This revision is now accepted and ready to land.Nov 29 2022, 7:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 29 2022, 10:13 PM