[mlir][llvm] Use the tablegen error handling (NFC).
authorTobias Gysi <tobias.gysi@nextsilicon.com>
Mon, 17 Oct 2022 12:29:53 +0000 (15:29 +0300)
committerTobias Gysi <tobias.gysi@nextsilicon.com>
Mon, 17 Oct 2022 12:30:29 +0000 (15:30 +0300)
commitf471acfd03ce9c0c9cfdf8daf4d21b5b82fbf69e
tree6c524669a7cd393c1efd8f3bc5f9f92e790c89d0
parent699396131f745ec8b42ae33cb0e4553a783b6674
[mlir][llvm] Use the tablegen error handling (NFC).

Use PrintError to extend the error message with location information in
LLVMIRConversionGen.cpp. Additionally, promote potentially user facing
error messages from assertions to real errors.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D136057
mlir/tools/mlir-tblgen/LLVMIRConversionGen.cpp