summaryrefslogtreecommitdiffstats
path: root/llvm/utils/update_llc_test_checks.py
diff options
context:
space:
mode:
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>2019-11-20 13:19:48 +0000
committerAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>2019-11-20 13:23:26 +0000
commit6187394dd05ea20db01370b1990a79d517d98f7e (patch)
treeff481a5316cabfe9e4b35a9e21fbfed7c6fc5072 /llvm/utils/update_llc_test_checks.py
parent5bab291b7bd043104abf1ca7977e8248684cae95 (diff)
downloadbcm5719-llvm-6187394dd05ea20db01370b1990a79d517d98f7e.tar.gz
bcm5719-llvm-6187394dd05ea20db01370b1990a79d517d98f7e.zip
[UptestTestChecks][NFC] Share some common command line options code
Summary: Add a function common.parse_commandline_args() that adds options common to all tools (--verbose and --update-only) and returns the parsed commandline arguments. I plan to use the shared parsing of --verbose in a follow-up commit to remove most of the `if args.verbose:` checks in the scripts. Reviewers: xbolva00, MaskRay Reviewed By: MaskRay Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D70428
Diffstat (limited to 'llvm/utils/update_llc_test_checks.py')
-rwxr-xr-xllvm/utils/update_llc_test_checks.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/utils/update_llc_test_checks.py b/llvm/utils/update_llc_test_checks.py
index 6fbab0b6a89..1168eec9a33 100755
--- a/llvm/utils/update_llc_test_checks.py
+++ b/llvm/utils/update_llc_test_checks.py
@@ -24,8 +24,6 @@ ADVERT = ' NOTE: Assertions have been autogenerated by '
def main():
parser = argparse.ArgumentParser(description=__doc__)
- parser.add_argument('-v', '--verbose', action='store_true',
- help='Show verbose output')
parser.add_argument('--llc-binary', default='llc',
help='The "llc" binary to use to generate the test case')
parser.add_argument(
@@ -38,10 +36,8 @@ def main():
help='Use more regex for x86 matching to reduce diffs between various subtargets')
parser.add_argument(
'--no_x86_scrub_rip', action='store_false', dest='x86_scrub_rip')
- parser.add_argument('-u', '--update-only', action='store_true',
- help='Only update test if it was already autogened')
parser.add_argument('tests', nargs='+')
- args = parser.parse_args()
+ args = common.parse_commandline_args(parser)
script_name = os.path.basename(__file__)
OpenPOWER on IntegriCloud