llvm.org GIT mirror llvm / f501032
update_mir_test_checks: Support '-' in function names Some AArch64 and AMDGPU tests have functions with hyphens in the names git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316063 91177308-0d34-0410-b5e6-96231b3b80d8 Justin Bogner 3 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
3232 CHECK_PREFIX_RE = re.compile('--?check-prefix(?:es)?[= ](\S+)')
3333 CHECK_RE = re.compile(r'^\s*[;#]\s*([^:]+?)(?:-NEXT|-NOT|-DAG|-LABEL)?:')
3434
35 FUNC_NAME_RE = re.compile(r' *name: *(?P[A-Za-z0-9_.]+)')
35 FUNC_NAME_RE = re.compile(r' *name: *(?P[A-Za-z0-9_.-]+)')
3636 BODY_BEGIN_RE = re.compile(r' *body: *\|')
3737 BASIC_BLOCK_RE = re.compile(r' *bb\.[0-9]+.*:$')
3838 VREG_RE = re.compile(r'(%[0-9]+)(?::[a-z0-9_]+)?(?:\([<>a-z0-9 ]+\))?')
4444 MIR_FUNC_RE = re.compile(
4545 r'^---$'
4646 r'\n'
47 r'^ *name: *(?P[A-Za-z0-9_.]+)$'
47 r'^ *name: *(?P[A-Za-z0-9_.-]+)$'
4848 r'.*?'
4949 r'^ *body: *\|\n'
5050 r'(?P.*?)\n'