[mlir-translate] More specific error message for BlockAddress
authorArthur Lafrance <lafrancearthur@gmail.com>
Wed, 25 Jan 2023 21:02:16 +0000 (13:02 -0800)
committerMin-Yih Hsu <minyihh@uci.edu>
Wed, 25 Jan 2023 22:56:28 +0000 (14:56 -0800)
commitca5e2e3aaa3b631b23ae09e99c41da9b42bcce75
tree834c791303278f7275d412f8eea7398a4b4bc5da
parent46013fc10a6879f4c9b4c9b9fbd43e4dc70f3c8b
[mlir-translate] More specific error message for BlockAddress

BlockAddress is currently unimplemented in the LLVM dialect of MLIR;
when converting to LLVM dialect MLIR from LLVM IR, mlir-translate
currently terminates with an "unhandled constant" error message.
Instead, this message could be made more specific, to let the user know
that the specific issue is that BlockAddress is unimplemented in the
LLVM dialect.

Differential Revision: https://reviews.llvm.org/D142337
mlir/lib/Target/LLVMIR/ModuleImport.cpp
mlir/test/Target/LLVMIR/Import/import-failure.ll