summaryrefslogtreecommitdiffstats
path: root/llvm/utils/update_llc_test_checks.py
diff options
context:
space:
mode:
authorZvi Rackover <zvi.rackover@intel.com>2017-09-06 23:04:28 +0000
committerZvi Rackover <zvi.rackover@intel.com>2017-09-06 23:04:28 +0000
commitd635eeb01a45d64960d2d95b97bc5a28fe846015 (patch)
treed57f32d85f3e9085a6cb53a65e88ed94916a28cb /llvm/utils/update_llc_test_checks.py
parent85570510ae496c04f7ced4fadbcb9f79d12f397b (diff)
downloadbcm5719-llvm-d635eeb01a45d64960d2d95b97bc5a28fe846015.tar.gz
bcm5719-llvm-d635eeb01a45d64960d2d95b97bc5a28fe846015.zip
Util: Improve update_llc_test_checks to scrub macosx-style assembly annotations
Summary: In D37523 Sanjay pointed out that the tool does not scrub macosx-style 'End of Function' annotations, where the comments begin with a double-#. I tested this patch by verifying all existing occurences of 'End function' are scrubbed: find ./test/CodeGen/X86 -name '*.ll' | xargs grep -l "End function" | xargs utils/update_llc_test_checks.py --llc-binary build/bin/llc Reviewers: spatel, chandlerc, craig.topper Reviewed By: spatel Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D37532 llvm-svn: 312678
Diffstat (limited to 'llvm/utils/update_llc_test_checks.py')
-rwxr-xr-xllvm/utils/update_llc_test_checks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/update_llc_test_checks.py b/llvm/utils/update_llc_test_checks.py
index 612422d315a..02bcc2df5d7 100755
--- a/llvm/utils/update_llc_test_checks.py
+++ b/llvm/utils/update_llc_test_checks.py
@@ -29,7 +29,7 @@ def llc(args, cmd_args, ir):
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|# -- End function)',
+ r'^\s*(?:[^:\n]+?:\s*\n\s*\.size|\.cfi_endproc|\.globl|\.comm|\.(?:sub)?section|#+ -- End function)',
flags=(re.M | re.S))
ASM_FUNCTION_ARM_RE = re.compile(
OpenPOWER on IntegriCloud