[PATCH] D61832: [RFC] Initial patch to support IR extensions for annotating directive region entry/exit

Xinmin Tian via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun May 12 03:03:15 PDT 2019


xtian created this revision.
xtian added reviewers: LLVM, vadve.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Repository:
  rL LLVM

https://reviews.llvm.org/D61832

Files:
  llvm/utils/update_test_checks.py


Index: llvm/utils/update_test_checks.py
===================================================================
--- llvm/utils/update_test_checks.py
+++ llvm/utils/update_test_checks.py
@@ -68,9 +68,10 @@
   autogenerated_note = (ADVERT + 'utils/' + os.path.basename(__file__))
 
   opt_basename = os.path.basename(args.opt_binary)
-  if (opt_basename != "opt"):
+  if not re.match(r'^opt(-\d+)?$', opt_basename):
     print('ERROR: Unexpected opt name: ' + opt_basename, file=sys.stderr)
     sys.exit(1)
+  opt_basename = 'opt'
 
   test_paths = [test for pattern in args.tests for test in glob.glob(pattern)]
   for test in test_paths:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61832.199163.patch
Type: text/x-patch
Size: 635 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190512/4f1d0456/attachment-0001.bin>


More information about the llvm-commits mailing list