cdisselkoen / llvm-ir

LLVM IR in natural Rust data structures
MIT License
539 stars 45 forks source link

Producing LLVM IR files #46

Open eckertliam opened 1 year ago

eckertliam commented 1 year ago

I noticed your note about being open to contributions for .ll file generation. I'm interested in working on this feature - it would enable some useful capabilities. If you're still open to it being added, I'd be glad to contribute.

cdisselkoen commented 8 months ago

Sorry for the very late response. I'd be open to this being added. It probably would make sense to use the Display trait on all our various types -- for instance, we're already a lot of the way there for Instructions, whose Display is already pretty close to valid LLVM .ll format.