llvm-project/llvm/utils
Daniel Sanders 778db88723 [gicombiner] Allow disable-rule option to disable all-except-...
Summary:
Adds two features to the generated rule disable option:
- '*' - Disable all rules
- '!<foo>' - Re-enable rule(s)
  - '!foo' - Enable rule named 'foo'
  - '!5' - Enable rule five
  - '!4-9' - Enable rule four to nine
  - '!foo-bar' - Enable rules from 'foo' to (and including) 'bar'
(the '!' is available to the generated disable option but is not part of the underlying and determines whether to call setRuleDisabled() or setRuleEnabled())

This is intended to support unit testing of combine rules so
that you can do:
  GeneratedCfg.setRuleDisabled("*")
  GeneratedCfg.setRuleEnabled("foo")
to ensure only a specific rule is in effect. The rule is still
required to be included in a combiner though

Also added --...-only-enable-rule=X,Y which is effectively an
alias for --...-disable-rule=*,!X,!Y and as such interacts
properly with disable-rule.

Reviewers: aditya_nandakumar, bogner, volkan, aemerson, paquette, arsenm

Subscribers: wdng, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81889
2020-06-16 16:57:16 -07:00
..
FileCheck Change filecheck default to dump input on failure 2020-06-09 18:57:46 +00:00
KillTheDoctor
LLVMVisualizers Add MSVC natvis visualisation of llvm::Type 2020-05-15 09:38:37 -04:00
Misc
PerfectShuffle revert parts of d7888149aa that several bots do not like 2020-03-25 14:05:07 -04:00
Reviewing
TableGen [gicombiner] Allow disable-rule option to disable all-except-... 2020-06-16 16:57:16 -07:00
Target/ARM
UpdateTestChecks [utils] change default nameless value to "TMP" 2020-06-01 06:54:45 -04:00
benchmark [RISCV][PowerPC] Fix google/benchmark benchmark::cycleclock::Now 2020-04-18 09:32:19 +01:00
bugpoint
count
crosstool
docker Continue removing llgo. 2020-02-10 10:33:58 -08:00
emacs
fpcmp
gdb-scripts Change to individual pretty printer classes, remove generic `make_printer`. 2020-03-11 15:04:03 +01:00
gn [gn build] Port b7084d8ede 2020-06-16 10:13:47 +00:00
jedit
kate
lint
lit [lit] Improve consistency for showing result groups 2020-06-16 12:40:06 -07:00
llvm-build Use configure depends to trigger reconfiguration when LLVMBuild files change 2020-05-26 16:30:20 +01:00
llvm-lit llvm-lit.in: Use a raw string for LLVM_SOURCE_DIR 2020-05-11 19:05:53 -04:00
llvm-locstats [llvm-dwarfdump][Stats] Clean up 2020-05-04 09:35:40 +02:00
not
release Use maximum compression when packaging release tarballs. 2020-04-15 20:30:26 +02:00
sanitizers
testgen
textmate
unittest Use std::foo_t rather than std::foo in LLVM. 2020-02-11 15:12:51 -08:00
valgrind
vim [lit] Add builtin support for flaky tests in lit 2020-03-18 18:04:01 -04:00
vscode [lit] Add builtin support for flaky tests in lit 2020-03-18 18:04:01 -04:00
yaml-bench
DSAclean.py
DSAextract.py [Utils] Make some scripts directly executable 2020-02-28 13:39:54 +00:00
GenLibDeps.pl
GetSourceVersion
LLVMBuild.txt
UpdateCMakeLists.pl
abtest.py
add_argument_names.py
bisect
bisect-skip-count
bugpoint_gisel_reducer.py
check-each-file
chunk-print-before-all.py [Tools] Fixed bug with llvm/utils/chunk-print-before-all.py script. 2020-04-09 22:24:55 +00:00
clang-parse-diagnostics-file utils: Tweak clang-parse-diagnostics-file for modules includes 2020-04-02 14:16:26 -07:00
codegen-diff
collect_and_build_with_pgo.py
countloc.sh
create_ladder_graph.py [Utils] Make some scripts directly executable 2020-02-28 13:39:54 +00:00
demangle_tree.py
extract_symbols.py [AIX] Make sure we use export lists for plugins 2020-05-08 14:00:25 -04:00
extract_vplan.py
findmisopt
findoptdiff
findsym.pl
getsrcs.sh
indirect_calls.py
lldbDataFormatters.py Fix a null dereference in the LLDB data formatters. 2020-02-25 16:43:55 -08:00
llvm-compilers-check
llvm-gisel-cov.py [NFC] Fix minor python issues. 2020-02-28 14:17:43 -08:00
llvm-native-gxx
llvm.grm
llvmdo
llvmgrep
prepare-code-coverage-artifact.py
schedcover.py [Utils] Make some scripts directly executable 2020-02-28 13:39:54 +00:00
shuffle_fuzz.py
shuffle_select_fuzz_tester.py [Utils] Make some scripts directly executable 2020-02-28 13:39:54 +00:00
sort_includes.py
unicode-case-fold.py
update_analyze_test_checks.py [UpdateTestChecks] Use common ir function name matcher and extend to accept periods in names (PR37586) 2020-03-24 10:59:30 +00:00
update_cc_test_checks.py Fix line endings produced by update_cc_test_checks.py 2020-02-14 15:17:27 +00:00
update_llc_test_checks.py Support other llc-like tools in update_llc_test_checks.py 2020-06-10 17:30:07 -07:00
update_mca_test_checks.py
update_mir_test_checks.py
update_test_checks.py [UpdateTestChecks] Use common ir function name matcher and extend to accept periods in names (PR37586) 2020-03-24 10:59:30 +00:00
wciia.py