[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
This commit is contained in:
Uday Bondhugula 2022-01-23 07:39:01 +05:30
parent e697b97148
commit 8676e10f74
1 changed files with 2 additions and 2 deletions

View File

@ -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