llvm-project/clang/utils
Chris Bieneman ae5433907a [CMake] Add support for generating profdata for clang from training files
Summary:
This patch adds support for using LIT to drive generating PGO profile data for clang.

This first pass implementation should work on Linux and Unix based platforms. If you build clang using CMake with LLVM_BUILD_INSTRUMENTED=On the CMake build generates a generate-profdata target that will use the just-built clang to build any test files (see hello_world.cpp as an example). Each test compile will generate profraw files for each clang process. After all tests have run CMake will merge the profraw files using llvm-profdata.

Future opportunities for extension:
* Support for Build->Profile->Build bootstrapping
* Support for linker order file generation using a similar mechanism and the same training data
* Support for Windows

Reviewers: dexonsmith, friss, bogner, cmatthews, vsk, silvas

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D15462

llvm-svn: 255740
2015-12-16 01:02:44 +00:00
..
ABITest Fix invalid test generation by utils/ABITest/ABITestGen.py when the same enum is generated more than once. 2014-08-21 10:13:49 +00:00
CIndex
TableGen Use range loops and autos in utils/TableGen/ClangAttrEmitter.cpp and generated code. 2015-12-08 18:49:01 +00:00
TestUtils
VtableTest
analyzer [analyzer] Update SATestBuild.py to enable a 'download and patch' model for projects. 2015-11-07 18:27:35 +00:00
check_cfc [utils] Improvements to check_cfc.py to work better with some build systems. 2015-06-03 15:09:13 +00:00
perf-training [CMake] Add support for generating profdata for clang from training files 2015-12-16 01:02:44 +00:00
valgrind clang/utils/valgrind/x86_64-pc-linux-gnu_gcc-4.3.3.supp: Add /usr/bin/cmp. 2013-01-20 15:30:41 +00:00
CaptureCmd
ClangDataFormat.py [utils/ClangDataFormat.py] Don't use lldb.frame directly, get the frame from the value. 2013-01-09 23:22:08 +00:00
CmpDriver utils/CmpDriver: add brief documentation to indicate what this does 2014-05-21 02:08:10 +00:00
FindSpecRefs
FuzzTest
builtin-defines.c
clang-completion-mode.el Minor comments and changes to clang-completion-mode.el, from David Wood! 2012-06-07 22:33:29 +00:00
clang.natvis Added MSVC natvis visualizers for Type and QualType. These could probably be improved, but anything is better than staring at hex values in the debugger. 2015-09-29 17:32:36 +00:00
find-unused-diagnostics.sh Increase the portability of this script a bit: use /usr/bin/env to find bash, 2013-05-24 23:54:21 +00:00
token-delta.py