[PATCH] D116832: [UpdateLLCTestChecks] Allow replacing register names with variables

David Greene via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 14 08:21:07 PST 2022


greened updated this revision to Diff 400018.
greened edited the summary of this revision.
greened added a comment.

Made the FileCheck variable names more generic, to limit diffs between test updates.  Names are now based on register class with a uniquifying count that tracks redefinitions of registers so that changes in register def-use changes can be seen.

The X86 regexps for GPRs are complicated because only parts of register names are common across all super-/sub-classes and the prefix and suffix (non-common) parts of the names varies based on the "base" GPR name.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D116832/new/

https://reviews.llvm.org/D116832

Files:
  llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/lanai-reg-names.ll
  llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/lanai-reg-names.ll.noscrub.expected
  llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/lanai-reg-names.ll.scrub.expected
  llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86-reg-names.ll
  llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86-reg-names.ll.noscrub.expected
  llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86-reg-names.ll.scrub.expected
  llvm/test/tools/UpdateTestChecks/update_llc_test_checks/lanai-reg-names.test
  llvm/test/tools/UpdateTestChecks/update_llc_test_checks/x86-reg-names.test
  llvm/utils/UpdateTestChecks/asm.py
  llvm/utils/update_llc_test_checks.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116832.400018.patch
Type: text/x-patch
Size: 46166 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220114/7af254d8/attachment.bin>


More information about the llvm-commits mailing list