]> granicus.if.org Git - llvm/commit
[UpdateTestChecks] Emit warning when invalid value for -check-prefix(es) option
authorDavid Bolvansky <david.bolvansky@gmail.com>
Mon, 29 Jul 2019 17:41:00 +0000 (17:41 +0000)
committerDavid Bolvansky <david.bolvansky@gmail.com>
Mon, 29 Jul 2019 17:41:00 +0000 (17:41 +0000)
commit8b74c63fb11f0911c3ba73d82da6b38c92b10135
tree901f010e626760c7d15c8aac0aedef96726ef6ea
parent4815acbbfffc1ae8b100d8ec33ead37103d075c4
[UpdateTestChecks] Emit warning when invalid value for -check-prefix(es) option

Summary:
The script is silent for the following issue:
FileCheck %s -check-prefix=CHECK,POPCOUNT

FileCheck will catch it later, but I think we can warn here too.

Now it warns:
 ./update_llc_test_checks.py file.ll
WARNING: Supplied prefix 'CHECK,POPCOUNT' is invalid. Prefix must contain only alphanumeric characters, hyphens and underscores. Did you mean --check-prefixes=CHECK,POPCOUNT?

Reviewers: lebedev.ri, spatel, RKSimon, craig.topper, nikic, gbedwell

Reviewed By: RKSimon

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D64589

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367244 91177308-0d34-0410-b5e6-96231b3b80d8
utils/UpdateTestChecks/common.py
utils/update_analyze_test_checks.py
utils/update_cc_test_checks.py
utils/update_llc_test_checks.py
utils/update_mca_test_checks.py
utils/update_mir_test_checks.py
utils/update_test_checks.py