[llvm] [UTC] Record TBAA semantics when autogenerating check lines (PR #147670)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 9 02:00:40 PDT 2025


================
@@ -620,6 +621,9 @@ def invoke_tool(exe, cmd_args, ir, preprocess_cmd=None, verbose=False):
 
 SEPARATOR = "."
 
+METADATA_NODES_RE = re.compile(r"^\s*!(\d+)\s*=\s*!{(.*)}", re.M)
----------------
nikic wrote:

```suggestion
METADATA_NODES_RE = re.compile(r"^\s*!(\d+)\s*=\s*!\{(.*)\}", re.M)
```
Kinda surprised this works. Does Pythons regex dialect interpret `{` literally if not followed by a digit?

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


More information about the llvm-commits mailing list