llvm-project
a1fa72ed - [Support] Extract SourceMgrDiagnosticVerifier from MLIR's verifier handler. NFC (#227565)

Commit
4 days ago
[Support] Extract SourceMgrDiagnosticVerifier from MLIR's verifier handler. NFC (#227565) Move the SourceMgr-based `expected-(error|warning|remark|note)` diagnostic parsing and matching logic out of `mlir/lib/IR/Diagnostics.cpp` into a reusable `llvm::SourceMgrDiagnosticVerifier` class in `LLVMSupport` so that non-MLIR tools (such as `llvm-mc -verify`) can share the same implementation. `mlir::SourceMgrDiagnosticVerifierHandler` is now a thin MLIR-specific adapter around `llvm::SourceMgrDiagnosticVerifier`. Assisted-by: AI tooling Pull-Request: https://github.com/llvm/llvm-project/pull/227565
Author
Parents
Loading