[mlir-translate] Teach these tools about --allow-unregistered-dialect
authorChris Lattner <clattner@nondot.org>
Thu, 3 Feb 2022 05:40:41 +0000 (21:40 -0800)
committerChris Lattner <clattner@nondot.org>
Thu, 3 Feb 2022 17:00:38 +0000 (09:00 -0800)
commit968280bc401292f1070f41eb1e03e94c331923f9
treedb48047067d2d16be268805145a16750b8559ef9
parent44601f4956062bee5fc2b481963ff06d24422767
[mlir-translate] Teach these tools about --allow-unregistered-dialect

Some translations do work with unregistered dialects, this allows one
to write testcases against them.  It works the same way as it does for
mlir-opt.

Differential Revision: https://reviews.llvm.org/D118872
mlir/lib/Translation/Translation.cpp
mlir/test/mlir-translate/unregistered-dialects.mlir [new file with mode: 0644]