update_test_checks.py: allow use with custom tools
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 20 Oct 2022 09:33:49 +0000 (11:33 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 27 Oct 2022 08:06:01 +0000 (10:06 +0200)
commit0b779494a8523a0159afb399ba07f0086552b50d
tree002716e35b07a398512dce53a77becf9e0ace47e
parente1b3d7ab44e19d5a67f9d1a05ea503d23b4c0dd5
update_test_checks.py: allow use with custom tools

We have a downstream project with a command-line utility that operates
pretty much exactly like `opt`. So it would make sense for us to
maintain tests with update_test_checks.py with our custom tool
substituted for `opt`, as this change allows.

Differential Revision: https://reviews.llvm.org/D136329
llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/custom-tool.ll [new file with mode: 0644]
llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/custom-tool.ll.expected [new file with mode: 0644]
llvm/test/tools/UpdateTestChecks/update_test_checks/custom-tool.test [new file with mode: 0644]
llvm/utils/UpdateTestChecks/common.py
llvm/utils/update_test_checks.py