It's a New Kind of Wrapper for Exposing LLVM (Safely)
I'm working on a compiler that uses the LLVM wrapper Inkwell for compilation. In order to compile something in inkwell, unless I'm missing something (which I very well might be), you need two structs:
Easy self-referential struct generation for Rust. (by joshua-maros)
I've also tried using ouroboros, but that makes interfacing with inkwell objects really difficult, as it only lets you access the fields via closures, which makes the code really messy.
Learn any GitHub repo in 59 seconds. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at www.getonboard.dev.
Compiler Optimization Learning Suggestions
2 projects | /r/Compilers | 4 Aug 2023
Finding LLVM location for use with the inkwell Rust crate
1 project | /r/Nix | 17 Jul 2023
Inkwell – New Kind of Wrapper for Exposing LLVM in Rust
1 project | news.ycombinator.com | 4 May 2023
How do I instrument LLVM IR for a Rust program?
1 project | /r/rust | 29 Jul 2022
Are there any repos of tutorials on writing a compiler in Rust?
2 projects | /r/rust | 15 May 2022