You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support weak imports in VM modules and a vm op for checking whether a function exists. #5731
To allow for patching, specialization, and backwards compatibility we should support IREE_VM_FUNCTION_LINKAGE_IMPORT_WEAK. This would allow an import to be missing during linking without failing the load. We can also add a new vm op to query whether a call is possible (vm.call.exists or something) to enable us to create branching code paths based on presence.
These two things together would give us the ability to do feature-detection-based polyfills of modules such as when new HAL features are added that may not exist on older runtimes. It also allows for all kinds of fun with overlaying optimized variants of functions into existing modules (the compiler always emits @_some_internal_thing and then runtimes that have an optimized version of that could provide their own version).
We'd still have to ensure signatures matched - this is strictly for symbol resolution during linking.
Activity