[PATCH] D95137: [update_(llc_)test_checks.py] Support pre-processing commands

Alexander Richardson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 22 02:42:33 PST 2021


arichardson created this revision.
arichardson retitled this revision from "[update_test_checks] Support pre-processing commands" to "[update_(llc_)test_checks.py] Support pre-processing commands".
arichardson edited the summary of this revision.
arichardson updated this revision to Diff 318473.
arichardson added a comment.
arichardson added reviewers: MaskRay, jdoerfert, xbolva00.
arichardson published this revision for review.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Add tests and also allow it in update_llc_test_checks.py


This has been rather useful in our downstream CHERI target where we want
to run tests both with addrspace(0) and addrspace(200) pointers.
With this patch we can prefix the opt command with
`sed -e 's/addrspace(200)/addrspace(0)/g' -e 's/-A200-P200-G200//g'` to
test both cases using the same IR input.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D95137

Files:
  llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/pre-process.ll
  llvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/pre-process.ll.expected
  llvm/test/tools/UpdateTestChecks/update_llc_test_checks/pre-process.test
  llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/pre-process.ll
  llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/pre-process.ll.expected
  llvm/test/tools/UpdateTestChecks/update_test_checks/pre-process.test
  llvm/utils/UpdateTestChecks/common.py
  llvm/utils/update_llc_test_checks.py
  llvm/utils/update_test_checks.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95137.318473.patch
Type: text/x-patch
Size: 13492 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210122/aeb9d7ec/attachment.bin>


More information about the llvm-commits mailing list