[Mlir-commits] [mlir] 8676e10 - [MLIR] Improve doc for -mlir-print-local-scope and unhide

Uday Bondhugula llvmlistbot at llvm.org
Mon Jan 24 21:45:45 PST 2022


Author: Uday Bondhugula
Date: 2022-01-25T11:13:48+05:30
New Revision: 8676e10f744ce3500b491af16bd96713e9ce2803

URL: https://github.com/llvm/llvm-project/commit/8676e10f744ce3500b491af16bd96713e9ce2803
DIFF: https://github.com/llvm/llvm-project/commit/8676e10f744ce3500b491af16bd96713e9ce2803.diff

LOG: [MLIR] Improve doc for -mlir-print-local-scope and unhide

This is a pretty important debugging option to stay hidden. Also,
improve its cmd-line description; the current description gives no hint
that this is the one to use to have locations printed inline.
Out-of-line locations are also unproductive to work with in many cases
where the locations are actually compact, which is also why this option
should be more visible.  This revision doesn't change the default on it
though.

Reviewed By: rriddle, jpienaar

Differential Revision: https://reviews.llvm.org/D117186

Added: 
    

Modified: 
    mlir/lib/IR/AsmPrinter.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/IR/AsmPrinter.cpp b/mlir/lib/IR/AsmPrinter.cpp
index f69d147c51b38..992fd1f793923 100644
--- a/mlir/lib/IR/AsmPrinter.cpp
+++ b/mlir/lib/IR/AsmPrinter.cpp
@@ -143,8 +143,8 @@ struct AsmPrinterOptions {
 
   llvm::cl::opt<bool> printLocalScopeOpt{
       "mlir-print-local-scope", llvm::cl::init(false),
-      llvm::cl::desc("Print assuming in local scope by default"),
-      llvm::cl::Hidden};
+      llvm::cl::desc("Print with local scope and inline information (eliding "
+                     "aliases for attributes, types, and locations")};
 };
 } // namespace
 


        


More information about the Mlir-commits mailing list