Harden MLIR detection of misconfiguration when missing dialect registration
authorMehdi Amini <joker.eph@gmail.com>
Thu, 28 May 2020 08:08:20 +0000 (08:08 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Thu, 28 May 2020 08:14:49 +0000 (08:14 +0000)
commit213c6cdf2e7a30d722cee4cd66b7d48fc396d44b
tree645ffa799968c3a6bb293c4bc53682c769527ba3
parent4b94cee650ce9753214d562826b7f1b9663c2268
Harden MLIR detection of misconfiguration when missing dialect registration

This changes will catch error where C++ op are used without being
registered, either through creation with the OpBuilder or when trying to
cast to the C++ op.

Differential Revision: https://reviews.llvm.org/D80651
mlir/include/mlir/IR/Builders.h
mlir/include/mlir/IR/MLIRContext.h
mlir/include/mlir/IR/OpDefinition.h
mlir/lib/IR/MLIRContext.cpp