llvm.org GIT mirror llvm / ea0dabd
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363452 91177308-0d34-0410-b5e6-96231b3b80d8 Matt Arsenault a month ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
3838 r'^_?(?P[^:]+):[ \t]*;+[ \t]*@(?P=func)\n[^:]*?'
3939 r'(?P.*?)\n' # (body of the function)
4040 # This list is incomplete
41 r'.Lfunc_end[0-9]+:\n',
41 r'^\s*(\.Lfunc_end[0-9]+:\n|\.section)',
4242 flags=(re.M | re.S))
4444 ASM_FUNCTION_HEXAGON_RE = re.compile(