Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Toni-Graphics opened this issue May 22, 2024 · 4 comments
Closed

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

Toni-Graphics opened this issue May 22, 2024 · 4 comments

Comments

@Toni-Graphics
Copy link

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

@TheDan64
Copy link
Owner

Depends in what the request is

@Toni-Graphics
Copy link
Author

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
Copy link
Owner

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

@Toni-Graphics
Copy link
Author

Ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants