llvm-project/llvm/utils
Mircea Trofin f15c60218d [UpdateTestChecks] Auto-generate stub bodies for unused prefixes
This is scoped to autogenerated tests.

The goal is to support having each RUN line specify a list of
check-prefixes where one can specify potentially redundant prefixes. For example,
for X86, if one specified prefixes for  both AVX1 and AVX2, and the codegen happened to
match today, one of the prefixes would be used and the onther one not.
If the unused prefix were dropped, and later, codegen differences were
introduced, one would have to go figure out where to add what prefix
(paraphrasing
https://lists.llvm.org/pipermail/llvm-dev/2021-February/148326.html)

To avoid getting errors due to unused prefixes, whole directories can be
opted out (as discussed on that thread), but that means that tests that
aren't autogenerated in such directories could have undetected unused
prefix bugs.

This patch proposes an alternative that both avoids the above, dir-level
optout, and supports the main autogen scenario discussed first. The autogen
tool appends at the end of the test file the list of unused prefixes,
together with a note explaining that is the case. Each prefix is set up
to always pass.

This way, unexpected unused prefixes are easily discoverable, and
expected cases "just work".

Differential Revision: https://reviews.llvm.org/D124306
2022-05-26 10:23:10 -07:00
..
FileCheck [FileCheck] GetCheckTypeAbbreviation() to handle the misspelled case. 2022-05-26 12:20:15 +01:00
KillTheDoctor Revert "Rename llvm::array_lengthof into llvm::size to match std::size from C++17" 2022-01-26 16:55:53 +01:00
LLVMVisualizers [Visualizers] Fix SmallVector<T> visualizer for T inside an anonymous namespace. Use `value_type` instead of `$T1`. 2022-01-26 15:59:43 +01:00
Misc
PerfectShuffle [AArch64] Teach perfect shuffles tables about D-lane movs 2022-05-17 18:16:45 +01:00
Reviewing [llvm][fix] Inclusive language: replace master with main in find_interesting_reviews.py 2021-11-15 14:06:30 -06:00
TableGen Revert "[TableGen] Remove code beads" 2022-05-24 14:17:49 +02:00
Target/ARM
UpdateTestChecks [UpdateTestChecks] Auto-generate stub bodies for unused prefixes 2022-05-26 10:23:10 -07:00
bugpoint
count
crosstool
docker [utils] Use git to checkout code instead of svn in building docker image 2022-04-15 01:41:14 +00:00
emacs [SanitizerBounds] Add support for NoSanitizeBounds function 2022-03-01 18:47:02 +01:00
fpcmp
gdb-scripts Add some support for pretty printing Twines containing std::string in gdb 2021-11-05 12:56:40 -07:00
git github: Switch release PR repository to llvm/llvm-project-release-prs 2022-05-23 15:10:27 -07:00
gn [gn build] Port 0e3dc1a52f 2022-05-26 14:50:15 +00:00
jedit
kate [Utils] Add missing attributes in syntax files 2021-03-05 17:36:09 +00:00
lint
lit [lit] Fix setup of sanitizer environment 2022-05-19 19:24:16 -07:00
llvm-lit
llvm-locstats [llvm-locstats] Report a warning if overflow was detected by llvm-dwarfdump 2021-10-27 14:35:29 +02:00
not
reduce_pipeline_test Fix a typo (occured => occurred) 2022-02-08 21:35:26 +01:00
release [release] Add cmake as an extra tarball and not bundle it 2022-05-19 11:12:54 +02:00
rsp_bisect_test Add script to bisect over files in an rsp file 2021-08-02 10:17:13 -07:00
sanitizers [llvm][ubsan] Inclusive language: replace use of blacklist HandleLLVMOptions.cmake but use old option name 2021-11-25 10:23:14 -05:00
testgen
textmate [TableGen] Add a new json textmate description for syntax highlighting 2022-05-13 13:04:09 -07:00
unittest Reapply "[cmake] Prefix gtest and gtest_main with "llvm_"." 2022-03-04 13:45:43 -08:00
valgrind
vim [SanitizerBounds] Add support for NoSanitizeBounds function 2022-03-01 18:47:02 +01:00
vscode [SanitizerBounds] Add support for NoSanitizeBounds function 2022-03-01 18:47:02 +01:00
yaml-bench utils: Remove some no-op raw_string_ostream flush calls, NFC 2021-12-10 11:26:08 -08:00
DSAclean.py
DSAextract.py
GenLibDeps.pl Prefer /usr/bin/env xxx over /usr/bin/xxx where xxx = perl, python, awk 2021-02-25 11:32:27 +01:00
GetSourceVersion
UpdateCMakeLists.pl
abtest.py abtest.py: support bisection based on a response file 2021-04-08 09:46:01 -07:00
add_argument_names.py
bisect
bisect-skip-count
bugpoint_gisel_reducer.py
check-each-file
check_ninja_deps.py
chunk-print-before-all.py
clang-parse-diagnostics-file
codegen-diff Prefer /usr/bin/env xxx over /usr/bin/xxx where xxx = perl, python, awk 2021-02-25 11:32:27 +01:00
collect_and_build_with_pgo.py [pgo] Fix doc typo: thingswith -> things with 2022-05-17 12:58:23 +00:00
convert-constraint-log-to-z3.py
countloc.sh
create_ladder_graph.py
demangle_tree.py
extract-section.py [Utils][LoongArch](5/6) Add a --bits-endian option to extract-section.py 2022-02-10 10:23:34 +00:00
extract_symbols.py [extract_symbols.py] Fix line-splitting of tool output. 2022-01-12 09:06:56 +00:00
extract_vplan.py
findmisopt
findoptdiff
findsym.pl Prefer /usr/bin/env xxx over /usr/bin/xxx where xxx = perl, python, awk 2021-02-25 11:32:27 +01:00
getsrcs.sh
indirect_calls.py
lldbDataFormatters.py [lldb] Fix llvm::Optional summary provider 2022-03-21 10:03:16 -07:00
llvm-compilers-check Prefer /usr/bin/env xxx over /usr/bin/xxx where xxx = perl, python, awk 2021-02-25 11:32:27 +01:00
llvm-gisel-cov.py
llvm-mca-compare.py [llvm-mca] Plot as result of comparing multiple files 2022-01-28 13:04:52 +01:00
llvm-native-gxx Prefer /usr/bin/env xxx over /usr/bin/xxx where xxx = perl, python, awk 2021-02-25 11:32:27 +01:00
llvm-original-di-preservation.py Recommit: "[Debugify][Original DI] Test dbg var loc preservation"" 2021-05-21 02:04:29 -07:00
llvm.grm [SanitizerBounds] Add support for NoSanitizeBounds function 2022-03-01 18:47:02 +01:00
llvmdo
llvmgrep
merge-stats.py
pipeline.py [NPM] Automatic 'opt' pipeline reducer script. 2021-10-06 09:09:33 +02:00
prepare-code-coverage-artifact.py [Utils] Add -compilation-dir flag to prepare-code-coverage-artifact.py 2021-07-20 10:55:49 -07:00
reduce_pipeline.py [NPM] Fix bug in llvm/utils/reduce_pipeline.py 2021-11-05 08:41:39 +01:00
remote-exec.py
revert_checker.py [Utils] Add URL formatting for revert_checker 2022-03-30 17:30:25 -07:00
revert_checker_test.py llvm/utils: guarantee revert_checker's revert ordering 2021-07-28 00:51:05 +00:00
rsp_bisect.py Add script to bisect over files in an rsp file 2021-08-02 10:17:13 -07:00
schedcover.py
shuffle_fuzz.py
shuffle_select_fuzz_tester.py
sort_includes.py
sysroot.py [Windows build] Use "DIA SDK" in sysroot 2021-09-14 08:59:28 -04:00
unicode-case-fold.py
update_analyze_test_checks.py [UpdateTestChecks] Prevent rapid onset insanity when forced to write LoopVectorize-driven costmodel tests 2022-04-15 15:37:29 +03:00
update_cc_test_checks.py [UpdateTestChecks] Auto-generate stub bodies for unused prefixes 2022-05-26 10:23:10 -07:00
update_llc_test_checks.py [UpdateTestChecks] Auto-generate stub bodies for unused prefixes 2022-05-26 10:23:10 -07:00
update_mca_test_checks.py
update_mir_test_checks.py [update_mir_test_checks.py] Use -NEXT FileCheck directories 2021-09-20 12:55:56 +01:00
update_test_checks.py [UpdateTestChecks] Re-add --filter and --filter-out options 2022-01-31 13:11:40 -08:00
update_test_prefix.py
wciia.py [Utils] Fix indentation error in utils/wciia.py 2021-05-16 22:34:09 +08:00