Fix mlir-reduce to explicitly register dialects and disable the global dialect regist...
authorMehdi Amini <joker.eph@gmail.com>
Mon, 31 Aug 2020 22:39:39 +0000 (22:39 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Mon, 31 Aug 2020 22:54:58 +0000 (22:54 +0000)
commitf54914081fd43fa5aca92df6630723be902adebd
tree3dc77716a3c8bfa026e061acc6e6df6380757534
parent474a5a665422f6df297f260921c0ff6507fbee9d
Fix mlir-reduce to explicitly register dialects and disable the global dialect registry by default

Clients who rely on the Context loading dialects from the global
registry can call `mlir::enableGlobalDialectRegistry(true);` before
creating an MLIRContext

Differential Revision: https://reviews.llvm.org/D86897
mlir/lib/IR/Dialect.cpp
mlir/tools/mlir-reduce/CMakeLists.txt
mlir/tools/mlir-reduce/mlir-reduce.cpp