[PATCH] D88096: [UpdateTestChecks] Match 'attributes #' at the end

Johannes Doerfert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 22 07:06:36 PDT 2020


jdoerfert created this revision.
jdoerfert added reviewers: sstefan1, MaskRay, arichardson.
Herald added subscribers: uenoku, bollu.
Herald added a reviewer: uenoku.
Herald added a project: LLVM.
jdoerfert requested review of this revision.
Herald added a reviewer: baziotis.

Based on D85932 <https://reviews.llvm.org/D85932>, modified slightly, works with the Attributor tests.

With this patch we can now add check lines outside of the function.
For now we match only attributes at the end of the module, but other
values can be added later as well.

Haven't actually tried it yet, but adding checks for other values
should be as easy as adding appropriate regexps in `nameless_values` list.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D88096

Files:
  llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/check_attrs.ll.funcattrs.expected
  llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/check_attrs.ll.plain.expected
  llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/on_the_fly_arg_change.ll.expected
  llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/on_the_fly_arg_change.ll.initially_disabled.expected
  llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/scrub_attrs.ll.plain.expected
  llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/scrub_attrs.ll.scrub.expected
  llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/various_ir_values.ll.expected
  llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/various_ir_values.ll.funcsig.expected
  llvm/utils/UpdateTestChecks/common.py
  llvm/utils/update_test_checks.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88096.293451.patch
Type: text/x-patch
Size: 16492 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200922/68bd8b63/attachment.bin>


More information about the llvm-commits mailing list