[Mlir-commits] [mlir] [utils] Use stricter SSA regexp for CHECK-SAME. (PR #128083)

River Riddle llvmlistbot at llvm.org
Thu Feb 20 17:05:15 PST 2025


================
@@ -180,7 +180,14 @@ def process_line(line_chunks, variable_namer):
         else:
             # Otherwise, generate a new variable.
             variable = variable_namer.generate_name(ssa_name)
-            output_line += "%[[" + variable + ":.*]]"
+            if strict:
----------------
River707 wrote:

Can you use a more descriptive name here? Something like `strict_name_re`, just to be a bit more clear.

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


More information about the Mlir-commits mailing list