[llvm] r336987 - [UpdateTestChecks] Teach the x86 asm parser to skip over the function
Chandler Carruth via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 13 03:29:23 PDT 2018
Author: chandlerc
Date: Fri Jul 13 03:29:23 2018
New Revision: 336987
URL: http://llvm.org/viewvc/llvm-project?rev=336987&view=rev
Log:
[UpdateTestChecks] Teach the x86 asm parser to skip over the function
begin label emitted for some routines with personality functions and
such.
Without this, we don't even recognize such functions as appearing in the
output and so don't attach any assertions to them. Happy to tweak this
or improve it if folks w/ deeper knowledge of the asm sequences that
show up here want.
Modified:
llvm/trunk/utils/UpdateTestChecks/asm.py
Modified: llvm/trunk/utils/UpdateTestChecks/asm.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/UpdateTestChecks/asm.py?rev=336987&r1=336986&r2=336987&view=diff
==============================================================================
--- llvm/trunk/utils/UpdateTestChecks/asm.py (original)
+++ llvm/trunk/utils/UpdateTestChecks/asm.py Fri Jul 13 03:29:23 2018
@@ -14,7 +14,7 @@ else:
##### Assembly parser
ASM_FUNCTION_X86_RE = re.compile(
- r'^_?(?P<func>[^:]+):[ \t]*#+[ \t]*@(?P=func)\n[^:]*?'
+ r'^_?(?P<func>[^:]+):[ \t]*#+[ \t]*@(?P=func)\n(?:\s*.Lfunc_begin[^:\n]*:\n)?[^:]*?'
r'(?P<body>^##?[ \t]+[^:]+:.*?)\s*'
r'^\s*(?:[^:\n]+?:\s*\n\s*\.size|\.cfi_endproc|\.globl|\.comm|\.(?:sub)?section|#+ -- End function)',
flags=(re.M | re.S))
More information about the llvm-commits
mailing list