Ygen now landed in godbolt
Hi,
After recently supporting 55% of llvm ir nodes, I worked on optimizing the generated assembly code and the wasm backend.
I also created a pr to godbolt so you can try out ygen live in your browser without needing to install anything: https://godbolt.org/z/1bY3eq4EE.
(I am only 13yrs old so the generated assembly code doesn't look that good)
Here's the GitHub: https://github.com/Cr0a3/ygen (please leave a ⭐)
Here are a few flags with which you can experiment a little:
- -O turns on optimizations
- -triple="wasm64-unkown" uses the experimental wasm backend
The ir is a little different from llvm so you can refer to the ir code from one of the tests as a good reference: https://github.com/Cr0a3/ygen/blob/main/tests%2Fshared_vars1.yl#L7-L33
(Sorry if the formatting is fucked up I am writing this from mobile)
Bye