inkwell icon indicating copy to clipboard operation
inkwell copied to clipboard

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

Open Cr0a3 opened this issue 1 year ago • 1 comments

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

Cr0a3 avatar May 22 '24 16:05 Cr0a3

Depends in what the request is

TheDan64 avatar May 23 '24 19:05 TheDan64

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

Cr0a3 avatar May 24 '24 10:05 Cr0a3

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

TheDan64 avatar May 24 '24 14:05 TheDan64

Ok

Cr0a3 avatar May 24 '24 15:05 Cr0a3