================
@@ -557,6 +557,10 @@ def invoke_tool(exe, cmd_args, ir, preprocess_cmd=None, 
verbose=False):
 UTC_AVOID = "NOTE: Do not autogenerate"
 UNUSED_NOTE = "NOTE: These prefixes are unused and the list is autogenerated. 
Do not add tests below this line:"
 
+DATA_LAYOUT_RE = re.compile(
+    r"target\sdatalayout\s=\s\"(?P<layout>.+)\"$", flags=(re.M | re.S)
----------------
SpencerAbson wrote:

We might want to be more flexible and use `\s*`/`\s+` here, also I'm not sure 
that data-layout strings can be multi-line.

https://github.com/llvm/llvm-project/pull/121800
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to