From: Chandler Carruth Date: Fri, 25 Aug 2017 02:32:48 +0000 (+0000) Subject: Teach the llc check updater to recognize the end-of-function comment X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b7d94b2dc3b047096a940b9782748ef13642689;p=llvm Teach the llc check updater to recognize the end-of-function comment used on Windows and sometimes Darwin. Cleans up generated patterns for me quite a bit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311752 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/update_llc_test_checks.py b/utils/update_llc_test_checks.py index 047f3e670ec..eb8101cf3ef 100755 --- a/utils/update_llc_test_checks.py +++ b/utils/update_llc_test_checks.py @@ -35,7 +35,7 @@ SCRUB_LOOP_COMMENT_RE = re.compile( ASM_FUNCTION_X86_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)', + r'^\s*(?:[^:\n]+?:\s*\n\s*\.size|\.cfi_endproc|\.globl|\.comm|\.(?:sub)?section|# -- End function)', flags=(re.M | re.S)) SCRUB_X86_SHUFFLES_RE = ( re.compile( @@ -49,7 +49,7 @@ ASM_FUNCTION_ARM_RE = re.compile( r'^(?P[0-9a-zA-Z_]+):\n' # f: (name of function) r'\s+\.fnstart\n' # .fnstart r'(?P.*?)\n' # (body of the function) - r'.Lfunc_end[0-9]+:', # .Lfunc_end0: + r'.Lfunc_end[0-9]+:', # .Lfunc_end0: or # -- End function flags=(re.M | re.S)) RUN_LINE_RE = re.compile('^\s*;\s*RUN:\s*(.*)$')