diff options
author | Sanjay Patel <spatel@rotateright.com> | 2016-03-25 17:00:12 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2016-03-25 17:00:12 +0000 |
commit | e54e6f5601ae48b3be1949812c09357e067f4dc8 (patch) | |
tree | 76796fed898c0203bbb377c8af37d7e26574b9d2 /llvm/utils/update_test_checks.py | |
parent | 5979790e426f3862c02b61b3c3d9d10b689f8456 (diff) | |
download | bcm5719-llvm-e54e6f5601ae48b3be1949812c09357e067f4dc8.tar.gz bcm5719-llvm-e54e6f5601ae48b3be1949812c09357e067f4dc8.zip |
fix IR function name regex to allow hyphens
llvm-svn: 264422
Diffstat (limited to 'llvm/utils/update_test_checks.py')
-rwxr-xr-x | llvm/utils/update_test_checks.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/update_test_checks.py b/llvm/utils/update_test_checks.py index bf698c9173a..f43d12ce80b 100755 --- a/llvm/utils/update_test_checks.py +++ b/llvm/utils/update_test_checks.py @@ -31,14 +31,14 @@ SCRUB_KILL_COMMENT_RE = re.compile(r'^ *#+ +kill:.*\n') SCRUB_IR_COMMENT_RE = re.compile(r'\s*;.*') RUN_LINE_RE = re.compile('^\s*;\s*RUN:\s*(.*)$') -IR_FUNCTION_RE = re.compile('^\s*define\s+(?:internal\s+)?[^@]*@(\w+)\s*\(') +IR_FUNCTION_RE = re.compile('^\s*define\s+(?:internal\s+)?[^@]*@([\w-]+)\s*\(') LLC_FUNCTION_RE = re.compile( r'^_?(?P<func>[^:]+):[ \t]*#+[ \t]*@(?P=func)\n[^:]*?' r'(?P<body>^##?[ \t]+[^:]+:.*?)\s*' r'^\s*(?:[^:\n]+?:\s*\n\s*\.size|\.cfi_endproc|\.globl|\.comm|\.(?:sub)?section)', flags=(re.M | re.S)) OPT_FUNCTION_RE = re.compile( - r'^\s*define\s+(?:internal\s+)?[^@]*@(?P<func>\w+?)\s*\(' + r'^\s*define\s+(?:internal\s+)?[^@]*@(?P<func>[\w-]+?)\s*\(' r'(\s+)?[^{]*\{\n(?P<body>.*?)\}', flags=(re.M | re.S)) CHECK_PREFIX_RE = re.compile('--check-prefix=(\S+)') |