[mlir][RunnerUtils] Make symbols private + implement loading mechanism.
There are two ways to make symbols from a shared library visible in the execution engine: exporting the symbols with public visibility or implementing a loading/unloading mechansim that registers the exported symbols explicitly. The latter has only been available in the JIT runner until recently, but https://reviews.llvm.org/D153029 makes it available in any usage of the execution engine (including the Python bindings). This patch makes the runner utils library use the latter mechanism instead of the former, i.e., it makes all of its symbols private and implements the init/destroy functions of the loading mechanism to control explicitly which symbols it registers. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D153250
Loading
Please sign in to comment