[Mlir-commits] [mlir] [mlir] Add op printing flag to skip regions (PR #77726)

Jakub Kuderski llvmlistbot at llvm.org
Thu Jan 11 14:44:33 PST 2024


================
@@ -58,6 +58,12 @@ struct PassManagerOptions {
       llvm::cl::desc("When printing IR for print-ir-[before|after]{-all} "
                      "always print the top-level operation"),
       llvm::cl::init(false)};
+  llvm::cl::opt<bool> printSkipRegions{
+      "mlir-print-ir-skip-regions",
----------------
kuhar wrote:

I see your point. It's not exactly what I had in mind, but it does seem more consistent considering the existing options in AsmPrinter.

I moved the flag to `AsmPrinter` and renamed it to `--mlir-print-skip-regions`. 

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


More information about the Mlir-commits mailing list