utils/update_mir_test_checks.py: allow checking fixedStack in .mir files
authorGaëtan Bossu <gaetan.bossu@amd.com>
Thu, 8 Dec 2022 19:49:04 +0000 (20:49 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 8 Dec 2022 20:38:53 +0000 (21:38 +0100)
commit6c629cc17f88c8712979ab843cfaca6d2e123091
tree8ca65ed7212edeff7e23ce6e0a90f4b3c97fdc89
parent9f1f44bb943ccff7215a61e6033b4a3c529581c8
utils/update_mir_test_checks.py: allow checking fixedStack in .mir files

Generation of CHECK lines for fixedStack can be enabled with --print-fixed-stack.
This is particularly useful for tests which need to inspect how the
stack looks, e.g. for ABI tests.

See the other stacked revision building on top of this one which enables UTC_ARGS (in a similar fashion to other test updaters in utils/).

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D135579
llvm/test/tools/UpdateTestChecks/update_mir_test_checks/Inputs/print-stack-first.mir [new file with mode: 0644]
llvm/test/tools/UpdateTestChecks/update_mir_test_checks/Inputs/print-stack.mir.expected [new file with mode: 0644]
llvm/test/tools/UpdateTestChecks/update_mir_test_checks/print-stack.test [new file with mode: 0644]
llvm/utils/update_mir_test_checks.py