forked from OSchip/llvm-project
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. llvm-svn: 363452
This commit is contained in:
parent
545a9fe106
commit
0a72bfbfdc
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue