[PATCH] D119368: [UpdateLLCTestChecks] Add support for isel debug output in update_llc_test_checks.py

Yatao Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 9 12:44:25 PST 2022


ningxinr created this revision.
ningxinr added a reviewer: greened.
Herald added a subscriber: arichardson.
ningxinr requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D119368

Files:
  llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/lanai_asm.ll
  llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/lanai_asm.ll.expected
  llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/lanai_isel.ll
  llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/lanai_isel.ll.expected
  llvm/test/tools/UpdateTestChecks/update_llc_test_checks/isel-support.test
  llvm/utils/UpdateTestChecks/asm.py
  llvm/utils/UpdateTestChecks/common.py
  llvm/utils/UpdateTestChecks/isel.py
  llvm/utils/update_cc_test_checks.py
  llvm/utils/update_llc_test_checks.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119368.407025.patch
Type: text/x-patch
Size: 20484 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220209/6aafa2e3/attachment.bin>


More information about the llvm-commits mailing list