[Mlir-commits] [mlir] [MLIR][mlir-opt] add support for disabling diagnostics (PR #117669)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Nov 27 09:11:25 PST 2024
================
@@ -108,6 +109,23 @@ struct MlirOptMainConfigCLOptions : public MlirOptMainConfig {
cl::desc("IRDL file to register before processing the input"),
cl::location(irdlFileFlag), cl::init(""), cl::value_desc("filename"));
+ static cl::opt<VerbosityLevel, /*ExternalStorage=*/true>
+ diagnosticVerbosityLevel(
+ "mlir-diagnostic-verbosity-level",
+ cl::desc("Choose level of diagnostic information"),
+ cl::location(diagnosticVerbosityLevelFlag),
+ cl::init(VerbosityLevel::ErrorsAndWarnings),
----------------
jeffniu-openai wrote:
The default should include remarks to not change existing behaviour
https://github.com/llvm/llvm-project/pull/117669
More information about the Mlir-commits
mailing list