[clang] 78acf91 - [perf-training] Support additional test suffixes

Petr Hosek via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 29 21:37:02 PST 2022


Author: Petr Hosek
Date: 2022-11-30T05:36:46Z
New Revision: 78acf911edddde2c40f8d5e78603e446710d35bd

URL: https://github.com/llvm/llvm-project/commit/78acf911edddde2c40f8d5e78603e446710d35bd
DIFF: https://github.com/llvm/llvm-project/commit/78acf911edddde2c40f8d5e78603e446710d35bd.diff

LOG: [perf-training] Support additional test suffixes

.cc and .test are commonly used and supported by other lit test suites.

Differential Revision: https://reviews.llvm.org/D138975

Added: 
    

Modified: 
    clang/utils/perf-training/lit.cfg
    clang/utils/perf-training/order-files.lit.cfg

Removed: 
    


################################################################################
diff  --git a/clang/utils/perf-training/lit.cfg b/clang/utils/perf-training/lit.cfg
index acb50ad30d7ae..0bd06c0d44f65 100644
--- a/clang/utils/perf-training/lit.cfg
+++ b/clang/utils/perf-training/lit.cfg
@@ -25,7 +25,7 @@ sysroot_flags = getSysrootFlagsOnDarwin(config, lit_config)
 config.clang = lit.util.which('clang', config.clang_tools_dir).replace('\\', '/')
 
 config.name = 'Clang Perf Training'
-config.suffixes = ['.c', '.cpp', '.m', '.mm', '.cu', '.ll', '.cl', '.s', '.S', '.modulemap']
+config.suffixes = ['.c', '.cc', '.cpp', '.m', '.mm', '.cu', '.ll', '.cl', '.s', '.S', '.modulemap', '.test']
 
 cc1_wrapper = '%s %s/perf-helper.py cc1' % (config.python_exe, config.perf_helper_dir)
 

diff  --git a/clang/utils/perf-training/order-files.lit.cfg b/clang/utils/perf-training/order-files.lit.cfg
index 03c605c01c56a..f347fb72c3261 100644
--- a/clang/utils/perf-training/order-files.lit.cfg
+++ b/clang/utils/perf-training/order-files.lit.cfg
@@ -26,7 +26,7 @@ sysroot_flags = getSysrootFlagsOnDarwin(config, lit_config)
 config.clang = os.path.realpath(lit.util.which('clang', config.clang_tools_dir)).replace('\\', '/')
 
 config.name = 'Clang Perf Training'
-config.suffixes = ['.c', '.cpp', '.m', '.mm', '.cu', '.ll', '.cl', '.s', '.S', '.modulemap']
+config.suffixes = ['.c', '.cc', '.cpp', '.m', '.mm', '.cu', '.ll', '.cl', '.s', '.S', '.modulemap', '.test']
 
 dtrace_wrapper = '%s %s/perf-helper.py dtrace' % (config.python_exe, config.perf_helper_dir)
 dtrace_wrapper_cc1 = '%s %s/perf-helper.py dtrace --cc1' % (config.python_exe, config.perf_helper_dir)


        


More information about the cfe-commits mailing list