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 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
