You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: