[mlir][async] Mark exported symbols of runtime lib as visible.
authorIngo Müller <ingomueller@google.com>
Tue, 20 Jun 2023 14:10:33 +0000 (14:10 +0000)
committerIngo Müller <ingomueller@google.com>
Tue, 20 Jun 2023 19:27:47 +0000 (19:27 +0000)
commitf9bce19e2e2be09768260d2a297d933f46bc3efd
tree35cfcbbba009bb453885b8c5aa99125f6b673488
parentb6979698ea5f0c13ed4af661c88c981b9525e17c
[mlir][async] Mark exported symbols of runtime lib as visible.

The async runtime library explicitly registers the symbols it exports
with the loading mechanism of the execution engine. This even works even
though these symbols were marked as hidden in the library. However, if
used outside the execution engine, such as with `lli --dlopen` or if AOT
compiled, these hidden symbols would not be found. This patch thus marks
all symbols that are part of the API as visible.

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D153348
mlir/include/mlir/ExecutionEngine/AsyncRuntime.h
mlir/lib/ExecutionEngine/AsyncRuntime.cpp