[all-commits] [llvm/llvm-project] 38b106: Improve error message when tring to export to LLVM...

Mehdi Amini via All-commits all-commits at lists.llvm.org
Thu Apr 8 16:21:51 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 38b106f6815716db4757a813d28ba4649d083c14
      https://github.com/llvm/llvm-project/commit/38b106f6815716db4757a813d28ba4649d083c14
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2021-04-08 (Thu, 08 Apr 2021)

  Changed paths:
    M mlir/lib/Target/LLVMIR/ModuleTranslation.cpp

  Log Message:
  -----------
  Improve error message when tring to export to LLVM IR with a dialect missing the interface

Dialects can be translated to LLVM IR when they have the
LLVMTranslationDialectInterface interface registered. In case the
interface isn't explicitly registered, even the LLVM dialect can't be
exported to LLVM IR. This make the error message more explicit on this.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D96729




More information about the All-commits mailing list