[llvm] r363452 - UpdateTestChecks: Consider .section as end of function for AMDGPU
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 14 13:40:15 PDT 2019
Author: arsenm
Date: Fri Jun 14 13:40:15 2019
New Revision: 363452
URL: http://llvm.org/viewvc/llvm-project?rev=363452&view=rev
Log:
UpdateTestChecks: Consider .section as end of function for AMDGPU
Kernels seem to go directly to a section switch instead of emitting
.Lfunc_end. This fixes including all of the kernel metadata in the
check lines, which is undesirable most of the time.
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=363452&r1=363451&r2=363452&view=diff
==============================================================================
--- llvm/trunk/utils/UpdateTestChecks/asm.py (original)
+++ llvm/trunk/utils/UpdateTestChecks/asm.py Fri Jun 14 13:40:15 2019
@@ -39,7 +39,7 @@ ASM_FUNCTION_AMDGPU_RE = re.compile(
r'^_?(?P<func>[^:]+):[ \t]*;+[ \t]*@(?P=func)\n[^:]*?'
r'(?P<body>.*?)\n' # (body of the function)
# This list is incomplete
- r'.Lfunc_end[0-9]+:\n',
+ r'^\s*(\.Lfunc_end[0-9]+:\n|\.section)',
flags=(re.M | re.S))
ASM_FUNCTION_HEXAGON_RE = re.compile(
More information about the llvm-commits
mailing list