summaryrefslogtreecommitdiffstats
path: root/llvm/utils/update_mir_test_checks.py
Commit message (Collapse)AuthorAgeFilesLines
* update_mir_test_checks: Support adding checks for vreg classesJustin Bogner2017-10-181-9/+24
| | | | | | | | | This is a temporary hack to support adding checks for the "registers:" block of mir functions. This is necessary to convert a number of tests so that there's less churn when we change the MIR printer to put the vreg classes on defs instead of in their own block. llvm-svn: 316134
* update_mir_test_checks: Improve message when updating failsJustin Bogner2017-10-181-2/+6
| | | | llvm-svn: 316133
* update_mir_test_checks: Handle empty liveinsJustin Bogner2017-10-181-1/+1
| | | | | | | An empty livein block doesn't make much sense (why not just omit it?) but they're legal and some tests have them, so its best to handle it. llvm-svn: 316089
* update_mir_test_checks: Do a better job of disambiguating namesJustin Bogner2017-10-181-1/+4
| | | | | | | | | | Matching prefixes isn't good enough, because it leads to things like calling the first constant C3 just because there were two copies before it. Tighten up the check to match more precisely, but also be careful about ambiguity when dealing with target opcodes that end in a number. llvm-svn: 316088
* update_mir_test_checks: Support '-' in function namesJustin Bogner2017-10-181-2/+2
| | | | | | Some AArch64 and AMDGPU tests have functions with hyphens in the names llvm-svn: 316063
* update_mir_test_checks: Fix a typo I made while preparing for commitJustin Bogner2017-10-181-1/+1
| | | | | | I accidentally added an extra arg here, so this didn't work at all. llvm-svn: 316062
* Add a utility to update MIR checks, similar to update_llc_test_checksJustin Bogner2017-10-181-0/+404
This adds update_mir_test_checks, which updates the check lines in mir tests. This can only update tests that start and end with .mir currently (ie, -run-pass) but it should be sufficient for updating at least some of the GlobalISel tests. llvm-svn: 316057
OpenPOWER on IntegriCloud