[Mlir-commits] [flang] [mlir] [mlir] add option to print SSA IDs using `NameLoc`s as prefixes (PR #119996)

Maksim Levental llvmlistbot at llvm.org
Sun Dec 15 22:56:24 PST 2024


================
@@ -195,6 +196,10 @@ struct AsmPrinterOptions {
       "mlir-print-unique-ssa-ids", llvm::cl::init(false),
       llvm::cl::desc("Print unique SSA ID numbers for values, block arguments "
                      "and naming conflicts across all regions")};
+
+  llvm::cl::opt<bool> useNameLocAsPrefix{
+      "mlir-use-nameloc-as-prefix", llvm::cl::init(false),
+      llvm::cl::desc("Print SSA IDs using NameLocs as prefixes")};
----------------
makslevental wrote:

It's all - this actually takes precedence over OpAsmInterface. I figured if you turn this on then you want even more legibility than OpAsmInterface provides.

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


More information about the Mlir-commits mailing list