[Utils] Check function attributes in update_test_checks
authorsstefan1 <sstipanovic@s-energize.com>
Sat, 11 Jul 2020 19:53:50 +0000 (21:53 +0200)
committersstefan1 <sstipanovic@s-energize.com>
Sun, 19 Jul 2020 18:07:24 +0000 (20:07 +0200)
commit937bad3594e7cba44cddae4661e1bae911beba3e
treee562f20b837c1f9033d10d84e2d13feaa7d3ccc9
parentf7a571537a14da83e5701864471b99b61cdcca54
[Utils] Check function attributes in update_test_checks

Summary:
This introduces new flag to the update_test_checks and
update_cc_test_checks that allows for function attributes
to be checked in a check-line. If the flag is not set,
the behavior should remain the same.

Reviewers: jdoerfert

Subscribers: arichardson, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D83629
13 files changed:
clang/test/utils/update_cc_test_checks/Inputs/check-attributes.cpp [new file with mode: 0644]
clang/test/utils/update_cc_test_checks/Inputs/check-attributes.cpp.funcattrs.expected [new file with mode: 0644]
clang/test/utils/update_cc_test_checks/Inputs/check-attributes.cpp.plain.expected [new file with mode: 0644]
clang/test/utils/update_cc_test_checks/check_attrs.test [new file with mode: 0644]
llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/check_attrs.ll [new file with mode: 0644]
llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/check_attrs.ll.funcattrs.expected [new file with mode: 0644]
llvm/test/tools/UpdateTestChecks/update_test_checks/Inputs/check_attrs.ll.plain.expected [new file with mode: 0644]
llvm/test/tools/UpdateTestChecks/update_test_checks/check_attrs.test [new file with mode: 0644]
llvm/utils/UpdateTestChecks/asm.py
llvm/utils/UpdateTestChecks/common.py
llvm/utils/update_analyze_test_checks.py
llvm/utils/update_cc_test_checks.py
llvm/utils/update_test_checks.py