[llvm] 2f62803 - coach UpdateTestChecks to filter out certain symbol aliases for m68k
via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 3 04:10:20 PDT 2023
Author: Sheng
Date: 2023-06-03T19:09:47+08:00
New Revision: 2f62803ea458f83dcfc307cffa7f1ebf09eb9655
URL: https://github.com/llvm/llvm-project/commit/2f62803ea458f83dcfc307cffa7f1ebf09eb9655
DIFF: https://github.com/llvm/llvm-project/commit/2f62803ea458f83dcfc307cffa7f1ebf09eb9655.diff
LOG: coach UpdateTestChecks to filter out certain symbol aliases for m68k
This patch coaches UpdateTestChecks to filter out these symbol aliases in llc test for m68k
- .L<function name>$local:
- .type .L<function name>$local, at function
Reviewed By: myhsu
Differential Revision: https://reviews.llvm.org/D151526
Added:
Modified:
llvm/utils/UpdateTestChecks/asm.py
Removed:
################################################################################
diff --git a/llvm/utils/UpdateTestChecks/asm.py b/llvm/utils/UpdateTestChecks/asm.py
index 72ff67b03d81e..3357906513217 100644
--- a/llvm/utils/UpdateTestChecks/asm.py
+++ b/llvm/utils/UpdateTestChecks/asm.py
@@ -71,10 +71,11 @@ class string:
ASM_FUNCTION_M68K_RE = re.compile(
r'^_?(?P<func>[^:]+):[ \t]*;[ \t]*@"?(?P=func)"?\n'
- r"(?P<body>.*?)\s*" # (body of the function)
- r".Lfunc_end[0-9]+:\n",
- flags=(re.M | re.S),
-)
+ r'(?:\.L(?P=func)\$local:\n)?' # drop .L<func>$local:
+ r'(?:[ \t]+\.type[ \t]+\.L(?P=func)\$local, at function\n)?' # drop .type .L<func>$local, at function
+ r'(?P<body>.*?)\s*' # (body of the function)
+ r'.Lfunc_end[0-9]+:\n',
+ flags=(re.M | re.S))
ASM_FUNCTION_MIPS_RE = re.compile(
r'^_?(?P<func>[^:]+):[ \t]*#+[ \t]*@"?(?P=func)"?\n[^:]*?' # f: (name of func)
More information about the llvm-commits
mailing list