diff options
author | Chris Bieneman <beanz@apple.com> | 2015-12-18 23:00:57 +0000 |
---|---|---|
committer | Chris Bieneman <beanz@apple.com> | 2015-12-18 23:00:57 +0000 |
commit | de879caeb8b6a03c1f07ae561dee904188881b51 (patch) | |
tree | 221e190ff9256cbff09ec62da027eaa1e8cbf5b9 | |
parent | bae92fdb39853ccb83a27b9c5caaa8a874298bc2 (diff) | |
download | bcm5719-llvm-de879caeb8b6a03c1f07ae561dee904188881b51.tar.gz bcm5719-llvm-de879caeb8b6a03c1f07ae561dee904188881b51.zip |
[CMake] PGO training data
Adding in a few more lit substitutions for cc1 and the test exec path.
llvm-svn: 256057
-rw-r--r-- | clang/utils/perf-training/lit.cfg | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/utils/perf-training/lit.cfg b/clang/utils/perf-training/lit.cfg index 33baf26fcd6..cc14c02826f 100644 --- a/clang/utils/perf-training/lit.cfg +++ b/clang/utils/perf-training/lit.cfg @@ -29,7 +29,9 @@ config.suffixes = ['.c', '.cpp', '.m', '.mm', '.cu', '.ll', '.cl', '.s', '.S', ' use_lit_shell = os.environ.get("LIT_USE_INTERNAL_SHELL") config.test_format = lit.formats.ShTest(use_lit_shell == "0") config.substitutions.append( ('%clang_cpp', ' %s --driver-mode=cpp %s ' % (config.clang, sysroot_flags))) +config.substitutions.append( ('%clang_cc1', ' %s --cc1 %s ' % (config.clang, sysroot_flags))) config.substitutions.append( ('%clang', ' %s %s ' % (config.clang, sysroot_flags) ) ) +config.substitutions.append( ('%test_root', config.test_exec_root ) ) config.environment['LLVM_PROFILE_FILE'] = 'perf-training-%p.profraw' |