fix(code_gen): incremental compilation#101
Conversation
This prevents usage of out of scope IR, e.g. due to copying of an LLVM module
39f396a to
ce7d9e0
Compare
Codecov Report
@@ Coverage Diff @@
## master #101 +/- ##
==========================================
- Coverage 76.84% 69.24% -7.61%
==========================================
Files 132 133 +1
Lines 10643 10763 +120
==========================================
- Hits 8179 7453 -726
- Misses 2464 3310 +846
Continue to review full report at Codecov.
|
baszalmstra
left a comment
There was a problem hiding this comment.
Very nice! This also cleans up the generated IR by a lot.
- IR of the group_ir currently doesnt have a regression test
- Im missing documentation on what the group IR is.
Side note: did you try if incremental compilation works?
What do you think is the best solution:
I don't currently have a solution for testing this. Do you have any ideas on how we could do it? This PR merely restores things to the status quo before PR #97. |
ce7d9e0 to
ca950ac
Compare
|
I've force pushed the requested additional comments. I also changed some of the file and struct names to better self-document, most notably I also changed the |
Good question, I think both? But if I'd have to choose one, then probably the first.
There is already one such test in https://github.com/mun-lang/mun/blob/master/crates/mun_hir/src/tests.rs . But I agree, maybe put that in a new PR. I do feel that it becomes more and more important as we go further. We want to make sure that we do not break incremental compilation. As we have seen that's very easy to do. |
ca950ac to
8d5f1d5
Compare
Resolves all three side-effects of PR #97.