GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
This would allow us to write IR to files and load them up at a later point in the analysis. It would be nice if we could do this with a parser generator in rust, such as lalrpop
I'd like to work on this.
So essentially I would write a function
fn parse_il(s: &str) -> SSAStorage
It also looks like a lot of information is dropped in emit_il. Should I also change it so that the IR can be round-tripped through its text representation?
@HMPerson1 Yes, that is the plan. I'd suggest making a simple version of it first, test it out. Then go top-down and add in missing information, enhance it, etc.