summaryrefslogtreecommitdiffstats
path: root/llvm/utils/update_llc_test_checks.py
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2017-08-25 02:32:48 +0000
committerChandler Carruth <chandlerc@gmail.com>2017-08-25 02:32:48 +0000
commit5c69dac589e38d469ff4f9af2f988f80a959074c (patch)
tree1b81937d75062634c7b5f1468213e45fec3c8a13 /llvm/utils/update_llc_test_checks.py
parente29e94cf87c89772d62419750e786b29f814ad74 (diff)
downloadbcm5719-llvm-5c69dac589e38d469ff4f9af2f988f80a959074c.tar.gz
bcm5719-llvm-5c69dac589e38d469ff4f9af2f988f80a959074c.zip
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. llvm-svn: 311752
Diffstat (limited to 'llvm/utils/update_llc_test_checks.py')
-rwxr-xr-xllvm/utils/update_llc_test_checks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/update_llc_test_checks.py b/llvm/utils/update_llc_test_checks.py
index 047f3e670ec..eb8101cf3ef 100755
--- a/llvm/utils/update_llc_test_checks.py
+++ b/llvm/utils/update_llc_test_checks.py
@@ -35,7 +35,7 @@ SCRUB_LOOP_COMMENT_RE = re.compile(
ASM_FUNCTION_X86_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)',
+ 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<func>[0-9a-zA-Z_]+):\n' # f: (name of function)
r'\s+\.fnstart\n' # .fnstart
r'(?P<body>.*?)\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*(.*)$')
OpenPOWER on IntegriCloud