[clang] [llvm] [clang][WebAssembly] support custom module name of import globals (PR #200722)

Derek Schuff via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 9 17:55:32 PDT 2026


dschuff wrote:

I see. So in the latter case the AOT compiler knows the value of the globals at compile time, but it can't see functions. So you've made your host API use globals instead of functions. It seems like if you have that kind of flexibility (i.e. if you're frozen your globals and can compile them with the guest code) maybe you could just go a step further and LTO your host code together with your guest code. Then you could inline things like `getOS()` across the boundary and you wouldn't have to contort your host API by using globals.

https://github.com/llvm/llvm-project/pull/200722


More information about the cfe-commits mailing list