================ @@ -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) ---------------- momchil-velikov wrote:
Done for the `\s+` part. Given we're not parsing hand-written LLVM IR, I think we can get away with a certain lack of flexibility. 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