TheDan64 / inkwell

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

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

Closed Cr0a3 closed 6 months ago

Cr0a3 commented 6 months ago

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

TheDan64 commented 6 months ago

Depends in what the request is

Cr0a3 commented 6 months 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 6 months ago

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

Cr0a3 commented 6 months ago

Ok