nim-works / phy

compiler and vm experiments
MIT License
3 stars 2 forks source link

lang3: support aggregate assignments #42

Closed zerbina closed 1 month ago

zerbina commented 1 month ago

Summary

Add support for assigning, storing, and loading aggregate values to L3, and thus to all higher-level languages extending it. This is a prerequisite for removing the assignment lowering from source2il.

Details

Assignments and stores of aggregate values are lowered into memory copies (Copy) by pass3. pass3 is currently the best pass to implement this lowering in, since it also does the lowering of other aggregate-related operations.


Notes For Reviewers