[llvm] [RemoveDIs] Update update_test_checks script to recognize dbg_records (PR #87388)

Nicolai Hähnle via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 16 09:51:13 PDT 2024


================
@@ -1079,6 +1079,7 @@ def get_value_use(self, var, match, var_prefix=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),
----------------
nhaehnle wrote:

It would be good to make the prefix expression a little more specific if possible. It can probably be replaced with `r" "`, right? Or `r"[( ]"`?

And given that, can you remove the `NamelessValue` with the "metadata " prefix? It seems that this is now redundant.

https://github.com/llvm/llvm-project/pull/87388


More information about the llvm-commits mailing list