Move the diagnostic verification functionality out of mlir-opt and into a new...
authorRiver Riddle <riverriddle@google.com>
Thu, 9 May 2019 23:08:51 +0000 (16:08 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Sat, 11 May 2019 02:26:51 +0000 (19:26 -0700)
commit5fd4ec1b7817c193554be99be283ef87da82a289
tree9f5c0e99019407e41339ed9f1eb35954548792af
parentb0be00c74682eeac83e3de92411319a3734339a7
Move the diagnostic verification functionality out of mlir-opt and into a new llvm::SourceMgr diagnostic handler 'SourceMgrDiagnosticVerifierHandler'. This will allow for other tools to reuse the 'expected-*' functionality.

--

PiperOrigin-RevId: 247514684
mlir/include/mlir/IR/Diagnostics.h
mlir/lib/IR/Diagnostics.cpp
mlir/tools/mlir-opt/mlir-opt.cpp