[all-commits] [llvm/llvm-project] 8565b6: [UpdateLLCTestChecks] Add support for isel debug o...
Yatao Wang via All-commits
all-commits at lists.llvm.org
Tue Mar 1 02:00:11 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8565b6f9f2782b8b6757fe078c4de01b61ef9ea8
https://github.com/llvm/llvm-project/commit/8565b6f9f2782b8b6757fe078c4de01b61ef9ea8
Author: Yatao Wang <ningxinr at live.cn>
Date: 2022-03-01 (Tue, 01 Mar 2022)
Changed paths:
A llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/amdgpu_asm.ll
A llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/amdgpu_asm.ll.expected
A llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/amdgpu_isel.ll
A llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/amdgpu_isel.ll.expected
A llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/lanai_asm.ll
A llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/lanai_asm.ll.expected
A llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/lanai_isel.ll
A llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/lanai_isel.ll.expected
A llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86_asm.ll
A llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86_asm.ll.expected
A llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86_isel.ll
A llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86_isel.ll.expected
A llvm/test/tools/UpdateTestChecks/update_llc_test_checks/amdgpu-isel-support.test
A llvm/test/tools/UpdateTestChecks/update_llc_test_checks/lanai-isel-support.test
A llvm/test/tools/UpdateTestChecks/update_llc_test_checks/x86-isel-support.test
M llvm/utils/UpdateTestChecks/asm.py
M llvm/utils/UpdateTestChecks/common.py
A llvm/utils/UpdateTestChecks/isel.py
M llvm/utils/update_cc_test_checks.py
M llvm/utils/update_llc_test_checks.py
Log Message:
-----------
[UpdateLLCTestChecks] Add support for isel debug output in update_llc_test_checks.py
Add a check on run lines to pick up isel options in llc commands and allow
generating check lines of isel final output other than assembly. If llc command
line contains -debug-only=isel, update_llc_test_checks.py will try to scrub isel
output, otherwise, the script will fall back on default behaviour, which is try to
scrub assembly output instead.
The motivation of this change is to allow usage of update_llc_test_checks.py to
autogenerate checks of instruction selection results. In this way, we can detect
errors at an earlier stage before the compilation goes all the way to assembly.
It is an example of having some transparency for the stages between IR and
assembly. These generated tests are almost like "unit tests" of isel stage.
This patch only implements the initial change to differentiate isel output from
assembly output for Lanai. Other targets will not be supported for isel check
generation at the moment. Although adding support for it will only require
implementing the function regex and scrubber for corresponding targets.
The Lanai implementation was chosen mainly for the simplicity of demonstrating
the difference between isel checks and asm checks.
This patch also do not include the implementation of function prefix, which is
required for the generated isel checks to pass. I will put up a follow up revision
for the function prefix change to complete isel support.
Reviewed By: Flakebi
Differential Revision: https://reviews.llvm.org/D119368
More information about the All-commits
mailing list