aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/UpdateTestChecks/common.py
diff options
context:
space:
mode:
authorStephen Tozer <stephen.tozer@sony.com>2024-04-17 11:39:18 +0100
committerGitHub <noreply@github.com>2024-04-17 11:39:18 +0100
commita634f3ef39c0c547b87f1ee4ebe02ee3a256587f (patch)
treee8eb378257e1701814a5172d3353cee25e8101c4 /llvm/utils/UpdateTestChecks/common.py
parenta02019960b1a693320cd43b0ed6653d95877b94f (diff)
downloadllvm-a634f3ef39c0c547b87f1ee4ebe02ee3a256587f.zip
llvm-a634f3ef39c0c547b87f1ee4ebe02ee3a256587f.tar.gz
llvm-a634f3ef39c0c547b87f1ee4ebe02ee3a256587f.tar.bz2
[RemoveDIs] Update update_test_checks script to recognize dbg_records (#87388)
As we've added new IR elements for the RemoveDIs project, we need the update_test_checks script to understand them. For the records themselves this is already done automatically, but their metadata arguments are not recognized as such due to lacking the `metadata` prefix, which means they won't be checked by the script. This patch fixes this by adding a check for all `![0-9]+` patterns as long as they are not at the start of a line (which avoids matching global values).
Diffstat (limited to 'llvm/utils/UpdateTestChecks/common.py')
-rw-r--r--llvm/utils/UpdateTestChecks/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/UpdateTestChecks/common.py b/llvm/utils/UpdateTestChecks/common.py
index 15d3d5e..5595e6f 100644
--- a/llvm/utils/UpdateTestChecks/common.py
+++ b/llvm/utils/UpdateTestChecks/common.py
@@ -1082,10 +1082,10 @@ ir_nameless_values = [
NamelessValue(r"TBAA_STRUCT", "!", r"!tbaa.struct ", r"![0-9]+", None),
NamelessValue(r"RNG", "!", r"!range ", r"![0-9]+", None),
NamelessValue(r"LOOP", "!", r"!llvm.loop ", r"![0-9]+", None),
- NamelessValue(r"META", "!", r"metadata ", r"![0-9]+", None),
NamelessValue(r"META", "!", r"", r"![0-9]+", r"(?:distinct |)!.*"),
NamelessValue(r"ACC_GRP", "!", r"!llvm.access.group ", r"![0-9]+", None),
NamelessValue(r"META", "!", r"![a-z.]+ ", r"![0-9]+", None),
+ NamelessValue(r"META", "!", r"[, (]", r"![0-9]+", None),
]
global_nameless_values = [