Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
utils/update_mir_test_checks.py: support UTC_ARGS
As a reminder, UTC_ARGS is used by lit test cases to specify which arguments need to be passed to update_XXXX_test_checks.py to be auto-updated properly. The support is achieved by relying on common.itertests, which is what other test updaters use to iterate over test files. This commit also changes how the --llc-binary option is saved in args. It used to be saved as "llc", but it is here changed to the standard "llc_binary" to make use of an existing ignore mechanism for specific arguments. Without that change, the option would not be ignored and would appear in UTC_ARGS. This would be different from what e.g. update_llc_test_checks does. As update_mir_test_checks.py now supports UTC_ARGS, it became important to ensure the option is ignored. Differential Revision: https://reviews.llvm.org/D135580
- Loading branch information
Showing
3 changed files
with
15 additions
and
24 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
llvm/test/tools/UpdateTestChecks/update_mir_test_checks/Inputs/print-stack.mir.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters