[llvm] r316063 - update_mir_test_checks: Support '-' in function names
Justin Bogner via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 17 22:52:56 PDT 2017
Author: bogner
Date: Tue Oct 17 22:52:56 2017
New Revision: 316063
URL: http://llvm.org/viewvc/llvm-project?rev=316063&view=rev
Log:
update_mir_test_checks: Support '-' in function names
Some AArch64 and AMDGPU tests have functions with hyphens in the names
Modified:
llvm/trunk/utils/update_mir_test_checks.py
Modified: llvm/trunk/utils/update_mir_test_checks.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/update_mir_test_checks.py?rev=316063&r1=316062&r2=316063&view=diff
==============================================================================
--- llvm/trunk/utils/update_mir_test_checks.py (original)
+++ llvm/trunk/utils/update_mir_test_checks.py Tue Oct 17 22:52:56 2017
@@ -33,7 +33,7 @@ TRIPLE_IR_RE = re.compile(r'^\s*target\s
CHECK_PREFIX_RE = re.compile('--?check-prefix(?:es)?[= ](\S+)')
CHECK_RE = re.compile(r'^\s*[;#]\s*([^:]+?)(?:-NEXT|-NOT|-DAG|-LABEL)?:')
-FUNC_NAME_RE = re.compile(r' *name: *(?P<func>[A-Za-z0-9_.]+)')
+FUNC_NAME_RE = re.compile(r' *name: *(?P<func>[A-Za-z0-9_.-]+)')
BODY_BEGIN_RE = re.compile(r' *body: *\|')
BASIC_BLOCK_RE = re.compile(r' *bb\.[0-9]+.*:$')
VREG_RE = re.compile(r'(%[0-9]+)(?::[a-z0-9_]+)?(?:\([<>a-z0-9 ]+\))?')
@@ -45,7 +45,7 @@ PREFIX_DATA_RE = re.compile(r'^ *(;|bb.[
MIR_FUNC_RE = re.compile(
r'^---$'
r'\n'
- r'^ *name: *(?P<func>[A-Za-z0-9_.]+)$'
+ r'^ *name: *(?P<func>[A-Za-z0-9_.-]+)$'
r'.*?'
r'^ *body: *\|\n'
r'(?P<body>.*?)\n'
More information about the llvm-commits
mailing list