forked from OSchip/llvm-project
![]() Summary: LLVM importer to MLIR was implemented mostly as a prototype. As such, it did not deal handle errors in a consistent way, reporting them out stderr in some cases and continuing the execution in the error state until eventually crashing. This is not desirable for a user-facing tool. Make sure errors are returned from functions, consistently checked at call sites and propagated further. Functions returning nullable IR values return nullptr to denote the error state. Other functions return LogicalResult. LLVM importer in mlir-translate should no longer crash on unsupported inputs. The errors are reported without association with the source file (and therefore cannot be checked using -verify-diagnostics). Attaching them to the actual input file is left for future work. Differential Revision: https://reviews.llvm.org/D72839 |
||
---|---|---|
.. | ||
LLVMIR | ||
CMakeLists.txt |