anza-xyz / move

Move compiler targeting llvm supported backends
https://discord.gg/wFgfjG9J
Apache License 2.0
108 stars 34 forks source link

Refactor rtcall-related and lift into ModuleContext. #254

Closed nvjle closed 1 year ago

nvjle commented 1 year ago

This factors out from FunctionContext most of the rt-call-related routines and lifts them into ModuleContext. These have no FunctionContext dependencies and upcoming users need access without a FunctionContext.

Only emit_rtcall remains in FunctionContext since it relies on .locals. Clients in ModuleContext, cf course, won't need to use this version of emit_rtcall*.