From: Sanjay Patel Date: Fri, 25 Mar 2016 17:00:12 +0000 (+0000) Subject: fix IR function name regex to allow hyphens X-Git-Tag: llvmorg-3.9.0-rc1~10904 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e54e6f5601ae48b3be1949812c09357e067f4dc8;p=platform%2Fupstream%2Fllvm.git fix IR function name regex to allow hyphens llvm-svn: 264422 --- diff --git a/llvm/utils/update_test_checks.py b/llvm/utils/update_test_checks.py index bf698c9..f43d12c 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[^:]+):[ \t]*#+[ \t]*@(?P=func)\n[^:]*?' r'(?P^##?[ \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\w+?)\s*\(' + r'^\s*define\s+(?:internal\s+)?[^@]*@(?P[\w-]+?)\s*\(' r'(\s+)?[^{]*\{\n(?P.*?)\}', flags=(re.M | re.S)) CHECK_PREFIX_RE = re.compile('--check-prefix=(\S+)')