Fix MLIR bytecode reader for unregistered dialects
authorMehdi Amini <joker.eph@gmail.com>
Wed, 24 May 2023 23:13:02 +0000 (16:13 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Thu, 25 May 2023 07:27:59 +0000 (00:27 -0700)
commit3b0106fe9da9a3adf9bd4402c7bc6cfbb47f1ab8
treea05720e7c6c686b3dc7796245d6f7f030f075e4b
parentc0261eb02bb092d8842d3c57297e23f31d75cb96
Fix MLIR bytecode reader for unregistered dialects

At the moment we accept (in tests) unregistered dialects and in particular:

  "new_processor_id_and_range"()

where there is no `.` separator. We probably will remove support for this
from the parser, but for now we're adding compatibility support in the
reader.

Differential Revision: https://reviews.llvm.org/D151386
mlir/lib/Bytecode/Reader/BytecodeReader.cpp
mlir/test/Bytecode/unregistered_dialect.mlir [new file with mode: 0644]