[MLIR] Register all extensions in CAPI's RegisterEverything
authorAshay Rane <ashay@users.noreply.github.com>
Fri, 16 Jun 2023 22:11:43 +0000 (17:11 -0500)
committerAshay Rane <ashay@users.noreply.github.com>
Sat, 17 Jun 2023 02:31:42 +0000 (21:31 -0500)
commit120cd5aafca2ccc8b04d208598e817ffc6d0b869
tree6605c71cd2297afca9109fead80fa87c462446e7
parent12fee611ca533231f12c0b6518bfc525c893f238
[MLIR] Register all extensions in CAPI's RegisterEverything

The patch for promised interfaces (a5ef51d7) doesn't register all
extensions in the CAPI's `mlirRegisterAllDialects()` function.  This is
used by the MLIR Python bindings, causing downstream users of the Python
bindings to terminate abruptly.  This patch adds the call to register
all extensions.

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D153174
mlir/lib/CAPI/RegisterEverything/CMakeLists.txt
mlir/lib/CAPI/RegisterEverything/RegisterEverything.cpp