This is an archive of the discontinued LLVM Phabricator instance.

[mlir][async] Mark exported symbols of runtime lib as visible.
ClosedPublic

Authored by ingomueller-net on Jun 20 2023, 7:15 AM.

Details

Summary

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.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptJun 20 2023, 7:15 AM
ingomueller-net requested review of this revision.Jun 20 2023, 7:15 AM

This is still part of my effort of making the handling of various runtime libraries consistent, see https://reviews.llvm.org/D153250.

mehdi_amini accepted this revision.Jun 20 2023, 7:25 AM

AOT compiled, these hidden symbols would not be found.

Just a nit but AOT compiled and statically linked: there wouldn't be any problem here.

This revision is now accepted and ready to land.Jun 20 2023, 7:25 AM