llvm-project/clang/utils/perf-training
Chris Bieneman 834a40b463 [Perf-Training] Reworked workflow improvements for order-file generation
This is re-landing r260742. I've reworked the conditionals so that it only hits when targeting Apple platforms with ld64.

Original Summary:
With this change generating clang order files using dtrace uses the following workflow:

cmake <whatever options you want>

ninja generate-order-file

ninja clang

This patch works by setting a default path to the order file (which can be overridden by the user). If the order file doesn't exist during configuration CMake will create an empty one.

CMake then ties up the dependencies between the clang link job and the order file, and generate-order-file overwrites CLANG_ORDER_FILE with the new order file.

llvm-svn: 265864
2016-04-08 22:48:18 +00:00
..
cxx [Perf-training] Adding support for tests to skip the clang driver 2016-03-21 22:37:14 +00:00
CMakeLists.txt [Perf-Training] Reworked workflow improvements for order-file generation 2016-04-08 22:48:18 +00:00
README.txt
lit.cfg [Perf-training] Adding support for tests to skip the clang driver 2016-03-21 22:37:14 +00:00
lit.site.cfg.in [Perf-training] Adding support for tests to skip the clang driver 2016-03-21 22:37:14 +00:00
order-files.lit.cfg [Perf-training] Adding support for tests to skip the clang driver 2016-03-21 22:37:14 +00:00
order-files.lit.site.cfg.in [CMake] Support generation of linker order files using dtrace 2016-01-15 21:21:12 +00:00
perf-helper.py [Perf-training] Using os.devnull instead of a temp file 2016-03-22 16:33:23 +00:00

README.txt

==========================
 Performance Training Data
==========================

This directory contains simple source files for use as training data for
generating PGO data and linker order files for clang.