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

Stefan Stipanovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 13 13:49:35 PDT 2020


sstefan1 created this revision.
sstefan1 added reviewers: jdoerfert, MaskRay, arichardson.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
sstefan1 requested review of this revision.

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/D85932

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/sometimes_deleted_function.ll.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: D85932.285486.patch
Type: text/x-patch
Size: 15930 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200813/ba25a6c4/attachment-0001.bin>


More information about the llvm-commits mailing list