Open Memorytaco opened 1 year ago
region reference is one of techs for building an effect type system. It may suggest us adding a new stage for doing CFA analysis or similar things to build up information sufficient to serve the type system we created.
However, it is not clear what kind of effect system we need and it is also not clear on how to integrate it with MLF system.
A effect system may need a companion memory model which is under investigation. A good start point, in my opinion, is C++ object model.
add a region inference pass to compiler and allocate memory at that stage.
to solve object life time problem.