[Mlir-commits] [mlir] [mlir] implement `-verify-diagnostics=only-expected` (PR #135131)
Maksim Levental
llvmlistbot at llvm.org
Thu Apr 10 11:04:37 PDT 2025
================
@@ -38,11 +38,20 @@ struct MlirTransformOptCLOptions {
cl::desc("Allow operations coming from an unregistered dialect"),
cl::init(false)};
- cl::opt<bool> verifyDiagnostics{
- "verify-diagnostics",
- cl::desc("Check that emitted diagnostics match expected-* lines "
- "on the corresponding line"),
- cl::init(false)};
+ cl::opt<mlir::SourceMgrDiagnosticVerifierHandler::Level> verifyDiagnostics{
+ "verify-diagnostics", llvm::cl::ValueOptional,
+ cl::desc("Check that emitted diagnostics match "
----------------
makslevental wrote:
clang-format but i can restore it by hand
https://github.com/llvm/llvm-project/pull/135131
More information about the Mlir-commits
mailing list