TheDan64 / inkwell

It's a New Kind of Wrapper for Exposing LLVM (Safely)
https://thedan64.github.io/inkwell/
Apache License 2.0
2.22k stars 217 forks source link

Can I add an feature wich isn't in normal LLVM? #500

Closed Toni-Graphics closed 1 month ago

Toni-Graphics commented 1 month ago

Hi, can I add a feature which isn't in normal LLVM? Bye

TheDan64 commented 1 month ago

Depends in what the request is

Toni-Graphics commented 1 month ago

I want to add an easy api for the builder. As an example you can then do:

let mut ir: Vec<Box<dyn EasyIr> = vec![];
ir.push ( Return::new(5) );

EasyIr::gen(ir, &mut func, &mut context, &mut module); // Compile the the ir

It would be implemented like here and here

Bye

TheDan64 commented 1 month ago

This would probably be better suited in another library that wraps inkwell

Toni-Graphics commented 1 month ago

Ok