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

Adding LLVM IR to an already created module #569

Open
jpham658 opened this issue Feb 12, 2025 · 0 comments
Open

Adding LLVM IR to an already created module #569

jpham658 opened this issue Feb 12, 2025 · 0 comments

Comments

@jpham658
Copy link

Hi all, I've been adding LLVM IR for predefined functions to my module by using Context::create_module_from_ir during my compiler set up but it tends to make my .ll files very bloated.

I'd like to only add the textual LLVM IR for a function when it is called - does anyone know a straightforward way to do so? The only way I can think of is by creating a new module from the IR I want to add and then linking it to my current module, but was wondering if there is a better way to do it.

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

1 participant