tqchen opened a new pull request, #19939: URL: https://github.com/apache/tvm/pull/19939
Generated LLVM modules currently cache imported packed functions through an unsynchronized null check and plain store. Concurrent first calls can therefore race the lookup and cache update. This change: - routes newly generated C and LLVM lookups through `TVMFFIEnvModLookupFromImports` while preserving `TVMBackendGetFuncFromEnv` for compatibility; - gives each LLVM cached function a readable internal hidden initializer and publishes its module-owned result through `TVMFFIHandleInitOnce`; - removes the unused `TVMBackendRunOnce` export and dead LLVM static-init producer while preserving the live static-handle path. Validated with the existing LLVM, C-host, common codegen, static-init, and C++ test suites. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
